diff --git a/Extension/package.json b/Extension/package.json index c014ddb7c3..ce6285c3c6 100644 --- a/Extension/package.json +++ b/Extension/package.json @@ -3078,6 +3078,14 @@ "maximum": 65536, "scope": "machine" }, + "C_Cpp.maxSymbolSearchResults": { + "type": "integer", + "markdownDescription": "%c_cpp.configuration.maxSymbolSearchResults.markdownDescription%", + "default": 5000, + "minimum": 500, + "maximum": 10000, + "scope": "window" + }, "C_Cpp.intelliSense.maxCachedProcesses": { "type": [ "integer", diff --git a/Extension/package.nls.json b/Extension/package.nls.json index 67e1d9e218..7745216295 100644 --- a/Extension/package.nls.json +++ b/Extension/package.nls.json @@ -66,6 +66,12 @@ "Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered." ] }, + "c_cpp.configuration.maxSymbolSearchResults.markdownDescription": { + "message": "The maximum number of results to show for 'Go to Symbol in Workspace'. The default is `5000`.", + "comment": [ + "Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered." + ] + }, "c_cpp.configuration.intelliSense.maxCachedProcesses.markdownDescription": { "message": "The maximum number of IntelliSense processes to keep running. The default of `null` (empty) uses value inherited from `#C_Cpp.maxCachedProcesses#`.", "comment": [ diff --git a/Extension/src/LanguageServer/client.ts b/Extension/src/LanguageServer/client.ts index affaa7a30c..e379855e71 100644 --- a/Extension/src/LanguageServer/client.ts +++ b/Extension/src/LanguageServer/client.ts @@ -1458,6 +1458,7 @@ export class DefaultClient implements Client { maxConcurrentThreads: workspaceSettings.maxConcurrentThreads, maxCachedProcesses: workspaceSettings.maxCachedProcesses, maxMemory: workspaceSettings.maxMemory, + maxSymbolSearchResults: workspaceSettings.maxSymbolSearchResults, loggingLevel: workspaceSettings.loggingLevel, workspaceParsingPriority: workspaceSettings.workspaceParsingPriority, workspaceSymbols: workspaceSettings.workspaceSymbols, diff --git a/Extension/src/LanguageServer/settings.ts b/Extension/src/LanguageServer/settings.ts index c5c096f391..48e1548564 100644 --- a/Extension/src/LanguageServer/settings.ts +++ b/Extension/src/LanguageServer/settings.ts @@ -142,6 +142,7 @@ export interface SettingsParams { maxConcurrentThreads: number | null | undefined; maxCachedProcesses: number | null | undefined; maxMemory: number | null | undefined; + maxSymbolSearchResults: number | null | undefined; loggingLevel: string | undefined; workspaceParsingPriority: string | undefined; workspaceSymbols: string | undefined; @@ -313,6 +314,7 @@ export class CppSettings extends Settings { public get maxConcurrentThreads(): number | undefined | null { return super.Section.get("maxConcurrentThreads"); } public get maxMemory(): number | undefined | null { return super.Section.get("maxMemory"); } + public get maxSymbolSearchResults(): number | undefined { return super.Section.get("maxSymbolSearchResults"); } public get maxCachedProcesses(): number | undefined | null { return super.Section.get("maxCachedProcesses"); } public get intelliSenseMaxCachedProcesses(): number | undefined | null { return super.Section.get("intelliSense.maxCachedProcesses"); } public get intelliSenseMaxMemory(): number | undefined | null { return super.Section.get("intelliSense.maxMemory"); }