Add settings for cached pre-compiled headers
This commit is contained in:
@@ -308,6 +308,19 @@
|
||||
"description": "Determines whether pop up notifications will be shown when a configuration provider extension is unable to provide a configuration for a source file.",
|
||||
"scope": "resource"
|
||||
},
|
||||
"C_Cpp.intelliSense.cachePath": {
|
||||
"type": "string",
|
||||
"default": "${workspaceFolder}/.vscode/ipch",
|
||||
"description": "Defines the folder path for cached precompiled headers. The default path is \"${workspaceFolder}/.vscode/ipch\" folder",
|
||||
"scope": "resource"
|
||||
},
|
||||
"C_Cpp.intelliSense.cacheSize": {
|
||||
"type": "number",
|
||||
"default": 5120,
|
||||
"description": "Maximum size of the per-workspace hard drive space in megabytes 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.",
|
||||
"scope": "resource",
|
||||
"minimum": 0
|
||||
},
|
||||
"C_Cpp.default.includePath": {
|
||||
"type": [
|
||||
"array",
|
||||
|
||||
@@ -398,6 +398,8 @@ class DefaultClient implements Client {
|
||||
tab_size: other.editorTabSize,
|
||||
intelliSenseEngine: settings.intelliSenseEngine,
|
||||
intelliSenseEngineFallback: settings.intelliSenseEngineFallback,
|
||||
cachePath: settings.cachePath,
|
||||
cacheSize: settings.cacheSize,
|
||||
autocomplete: settings.autoComplete,
|
||||
errorSquiggles: settings.errorSquiggles,
|
||||
dimInactiveRegions: settings.dimInactiveRegions,
|
||||
|
||||
@@ -39,6 +39,8 @@ export class CppSettings extends Settings {
|
||||
public get suggestSnippets(): boolean { return super.Section.get<boolean>("suggestSnippets"); }
|
||||
public get intelliSenseEngine(): string { return super.Section.get<string>("intelliSenseEngine"); }
|
||||
public get intelliSenseEngineFallback(): string { return super.Section.get<string>("intelliSenseEngineFallback"); }
|
||||
public get cachePath(): string { return super.Section.get<string>("intelliSense.cachePath"); }
|
||||
public get cacheSize(): number { return super.Section.get<number>("intelliSense.cacheSize"); }
|
||||
public get errorSquiggles(): string { return super.Section.get<string>("errorSquiggles"); }
|
||||
public get dimInactiveRegions(): boolean { return super.Section.get<boolean>("dimInactiveRegions"); }
|
||||
public get inactiveRegionOpacity(): number { return super.Section.get<number>("inactiveRegionOpacity"); }
|
||||
|
||||
Reference in New Issue
Block a user