Skip to content
Merged
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
8 changes: 8 additions & 0 deletions Extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,14 @@
"minimum": 256,
"maximum": 16384
},
"C_Cpp.intelliSenseUpdateDelay": {
"type": "number",
"default": 2000,
"description": "%c_cpp.configuration.intelliSenseUpdateDelay.description%",
"scope": "application",
"minimum": 500,
"maximum": 3000
},
"C_Cpp.default.includePath": {
"type": [
"array",
Expand Down
1 change: 1 addition & 0 deletions Extension/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"c_cpp.configuration.intelliSenseCachePath.description": "Defines the folder path for cached precompiled headers used by IntelliSense. The default cache path is \"%LocalAppData%/Microsoft/vscode-cpptools\" on Windows, \"$XDG_CACHE_HOME/vscode-cpptools/\" on Linux (or \"$HOME/.cache/vscode-cpptools/\" if XDG_CACHE_HOME is not defined), and \"$HOME/Library/Caches/vscode-cpptools/\" on Mac. The default path will be used if no path is specified or if a specified path is invalid.",
"c_cpp.configuration.intelliSenseCacheSize.description": "Maximum size of the per-workspace hard drive space in megabytes (MB) for cached precompiled headers; the actual usage may fluctuate around this value. The default size is 5120 MB. Precompiled header caching is disabled when the size is 0.",
"c_cpp.configuration.intelliSenseMemoryLimit.description": "Memory usage limit in megabytes (MB) of an IntelliSense process. The default limit is 4096 MB and the maximum limit is 16 GB. The extension will shutdown and restart an IntelliSense process when it exceeds the limit.",
"c_cpp.configuration.intelliSenseUpdateDelay.description": "Controls the delay in milliseconds before IntelliSense starts updating after a modification.",
"c_cpp.configuration.default.includePath.description": "The value to use in a configuration if \"includePath\" is not specified in c_cpp_properties.json. If \"includePath\" is specified, add \"${default}\" to the array to insert the values from this setting.",
"c_cpp.configuration.default.defines.description": "The value to use in a configuration if \"defines\" is not specified, or the values to insert if \"${default}\" is present in \"defines\".",
"c_cpp.configuration.default.macFrameworkPath.description": "The value to use in a configuration if \"macFrameworkPath\" is not specified, or the values to insert if \"${default}\" is present in \"macFrameworkPath\".",
Expand Down
7 changes: 4 additions & 3 deletions Extension/src/LanguageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ export class DefaultClient implements Client {
const settings_spaceWithinInitializerListBraces: boolean[] = [];
const settings_spacePreserveInInitializerList: boolean[] = [];
const settings_spaceBeforeOpenSquareBracket: boolean[] = [];
const settings_spaceWithinSquareBracketse: boolean[] = [];
const settings_spaceWithinSquareBrackets: boolean[] = [];
const settings_spaceBeforeEmptySquareBrackets: boolean[] = [];
const settings_spaceBetweenEmptySquareBrackets: boolean[] = [];
const settings_spaceGroupSquareBrackets: boolean[] = [];
Expand Down Expand Up @@ -1037,7 +1037,7 @@ export class DefaultClient implements Client {
settings_spaceWithinInitializerListBraces.push(setting.vcFormatSpaceWithinInitializerListBraces);
settings_spacePreserveInInitializerList.push(setting.vcFormatSpacePreserveInInitializerList);
settings_spaceBeforeOpenSquareBracket.push(setting.vcFormatSpaceBeforeOpenSquareBracket);
settings_spaceWithinSquareBracketse.push(setting.vcFormatSpaceWithinSquareBrackets);
settings_spaceWithinSquareBrackets.push(setting.vcFormatSpaceWithinSquareBrackets);
settings_spaceBeforeEmptySquareBrackets.push(setting.vcFormatSpaceBeforeEmptySquareBrackets);
settings_spaceBetweenEmptySquareBrackets.push(setting.vcFormatSpaceBetweenEmptySquareBrackets);
settings_spaceGroupSquareBrackets.push(setting.vcFormatSpaceGroupSquareBrackets);
Expand Down Expand Up @@ -1156,7 +1156,7 @@ export class DefaultClient implements Client {
withinInitializerListBraces : settings_spaceWithinInitializerListBraces,
preserveInInitializerList : settings_spacePreserveInInitializerList,
beforeOpenSquareBracket : settings_spaceBeforeOpenSquareBracket,
withinSquareBrackets : settings_spaceWithinSquareBracketse,
withinSquareBrackets : settings_spaceWithinSquareBrackets,
beforeEmptySquareBrackets : settings_spaceBeforeEmptySquareBrackets,
betweenEmptySquareBrackets : settings_spaceBetweenEmptySquareBrackets,
groupSquareBrackets : settings_spaceGroupSquareBrackets,
Expand Down Expand Up @@ -1196,6 +1196,7 @@ export class DefaultClient implements Client {
intelliSenseCachePath : settings_intelliSenseCachePath,
intelliSenseCacheSize : settings_intelliSenseCacheSize,
intelliSenseMemoryLimit : settings_intelliSenseMemoryLimit,
intelliSenseUpdateDelay: workspaceSettings.intelliSenseUpdateDelay,
autocomplete: settings_autoComplete,
errorSquiggles: settings_errorSquiggles,
dimInactiveRegions: settings_dimInactiveRegions,
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 @@ -116,6 +116,7 @@ export class CppSettings extends Settings {
public get intelliSenseCachePath(): string | undefined { return super.Section.get<string>("intelliSenseCachePath"); }
public get intelliSenseCacheSize(): number | undefined { return super.Section.get<number>("intelliSenseCacheSize"); }
public get intelliSenseMemoryLimit(): number | undefined { return super.Section.get<number>("intelliSenseMemoryLimit"); }
public get intelliSenseUpdateDelay(): number | undefined { return super.Section.get<number>("intelliSenseUpdateDelay"); }
public get errorSquiggles(): string | undefined { return super.Section.get<string>("errorSquiggles"); }
public get inactiveRegionOpacity(): number | undefined { return super.Section.get<number>("inactiveRegionOpacity"); }
public get inactiveRegionForegroundColor(): string | undefined { return super.Section.get<string>("inactiveRegionForegroundColor"); }
Expand Down