Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Extension/bin/msvc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"defaults": [
"cpfe",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--no_warnings is added if the warningSquiggles is "Disabled". The other removed flags are added only for C++ translation units.

"--wchar_t_keyword",
"--no_warnings",
"--rtti",
"--edge",
"--exceptions",
"--error_limit",
"25000",
"-D_EDG_COMPILER",
Expand Down
10 changes: 10 additions & 0 deletions Extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@
"description": "Controls whether suspected compile errors detected by the IntelliSense engine will be reported back to the editor. Warnings about #includes that could not be located will always be reported to the editor. This setting is ignored by the Tag Parser engine.",
"scope": "resource"
},
"C_Cpp.warningSquiggles": {
"type": "string",
"enum": [
"Enabled",
"Disabled"
],
"default": "Disabled",
"description": "Controls whether compiler warnings are also shown when errorSquiggles is \"Enabled\".",
"scope": "resource"
},
"C_Cpp.dimInactiveRegions": {
"type": "boolean",
"default": true,
Expand Down
1 change: 1 addition & 0 deletions Extension/src/LanguageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ class DefaultClient implements Client {
intelliSenseEngineFallback: settings.intelliSenseEngineFallback,
autocomplete: settings.autoComplete,
errorSquiggles: settings.errorSquiggles,
warningSquiggles: settings.warningSquiggles,
dimInactiveRegions: settings.dimInactiveRegions,
loggingLevel: settings.loggingLevel,
workspaceParsingPriority: settings.workspaceParsingPriority,
Expand Down
1 change: 1 addition & 0 deletions Extension/src/LanguageServer/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class CppSettings extends Settings {
public get intelliSenseEngine(): string { return super.Section.get<string>("intelliSenseEngine"); }
public get intelliSenseEngineFallback(): string { return super.Section.get<string>("intelliSenseEngineFallback"); }
public get errorSquiggles(): string { return super.Section.get<string>("errorSquiggles"); }
public get warningSquiggles(): string { return super.Section.get<string>("warningSquiggles"); }
public get dimInactiveRegions(): boolean { return super.Section.get<boolean>("dimInactiveRegions"); }
public get inactiveRegionOpacity(): number { return super.Section.get<number>("inactiveRegionOpacity"); }
public get inactiveRegionForegroundColor(): string { return super.Section.get<string>("inactiveRegionForegroundColor"); }
Expand Down