Skip to content

Commit fd3bb4f

Browse files
committed
Avoid using 'solution crawler' terminology in the VSCode option name
1 parent f2a826d commit fd3bb4f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@
12741274
"description": "Show regular expressions in completion list.",
12751275
"order": 20
12761276
},
1277-
"dotnet.backgroundAnalysis.solutionCrawlerBackgroundAnalysisScope": {
1277+
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": {
12781278
"type": "string",
12791279
"enum": [
12801280
"openFiles",

src/lsptoolshost/OptionNameConverter.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export function convertServerOptionNameToClientConfigurationName(section: string
3030
let optionNamePrefix = getPrefix(optionName, prefixes);
3131

3232
let featureName = optionNamePrefix == '' ? optionName: optionName.substring(optionNamePrefix.length + 1);
33+
34+
// Handle special case for background analysis option: we want to avoid
35+
// 'solution crawler' terminology in the user facing VSCode option.
36+
if (featureName =="solution_crawler_background_analysis_scope") {
37+
featureName = "analyzer_diagnostics_scope";
38+
}
3339

3440
// Finally, convert everything to camel case and put them together.
3541
let camelCaseGroupName = convertToCamelCase(optionGroupName, '_');

test/unitTests/lspToolHost/configurationMiddleware.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const testData = [
4545
{ serverOption: "csharp|code_style.formatting.indentation_and_spacing.indent_style", vsCodeConfiguration: "codeStyle.formatting.indentationAndSpacing.indentStyle", declareInPackageJson: false},
4646
{ serverOption: "csharp|code_style.formatting.new_line.end_of_line", vsCodeConfiguration: "codeStyle.formatting.newLine.endOfLine", declareInPackageJson: false},
4747
{ serverOption: "code_style.formatting.new_line.insert_final_newline", vsCodeConfiguration: "codeStyle.formatting.newLine.insertFinalNewline", declareInPackageJson: false},
48-
{ serverOption: "mystery_language|background_analysis.dotnet_solution_crawler_background_analysis_scope", vsCodeConfiguration: "dotnet.backgroundAnalysis.solutionCrawlerBackgroundAnalysisScope", declareInPackageJson: true},
48+
{ serverOption: "mystery_language|background_analysis.dotnet_solution_crawler_background_analysis_scope", vsCodeConfiguration: "dotnet.backgroundAnalysis.analyzerDiagnosticsScope", declareInPackageJson: true},
4949
{ serverOption: "mystery_language|background_analysis.dotnet_compiler_diagnostics_scope", vsCodeConfiguration: "dotnet.backgroundAnalysis.compilerDiagnosticsScope", declareInPackageJson: true},
5050
];
5151

0 commit comments

Comments
 (0)