diff --git a/package.json b/package.json index 8cf6a2e592..0f1d6ce563 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ } }, "defaults": { - "roslyn": "4.7.0-3.23326.2", + "roslyn": "4.7.0-3.23328.5", "omniSharp": "1.39.6", "razor": "7.0.0-preview.23275.2" }, @@ -1285,6 +1285,38 @@ "description": "Show regular expressions in completion list.", "order": 20 }, + "dotnet.backgroundAnalysis.analyzerDiagnosticsScope": { + "type": "string", + "enum": [ + "openFiles", + "fullSolution", + "none" + ], + "default": "openFiles", + "enumDescriptions": [ + "Open documents", + "Entire solution", + "None" + ], + "description": "Run background code analysis for:", + "order": 30 + }, + "dotnet.backgroundAnalysis.compilerDiagnosticsScope": { + "type": "string", + "enum": [ + "openFiles", + "fullSolution", + "none" + ], + "default": "openFiles", + "enumDescriptions": [ + "Open documents", + "Entire solution", + "None" + ], + "description": "Show compiler errors and warnings for:", + "order": 30 + }, "dotnet.highlighting.highlightRelatedRegexComponents": { "type": "boolean", "default": "true", diff --git a/test/unitTests/lspToolHost/configurationMiddleware.test.ts b/test/unitTests/lspToolHost/configurationMiddleware.test.ts index 0b8c60c843..9df8042e1f 100644 --- a/test/unitTests/lspToolHost/configurationMiddleware.test.ts +++ b/test/unitTests/lspToolHost/configurationMiddleware.test.ts @@ -189,6 +189,26 @@ const testData = [ vsCodeConfiguration: 'codeStyle.formatting.newLine.insertFinalNewline', declareInPackageJson: false, }, + { + serverOption: 'csharp|background_analysis.dotnet_analyzer_diagnostics_scope', + vsCodeConfiguration: 'dotnet.backgroundAnalysis.analyzerDiagnosticsScope', + declareInPackageJson: true, + }, + { + serverOption: 'mystery_language|background_analysis.dotnet_analyzer_diagnostics_scope', + vsCodeConfiguration: null, + declareInPackageJson: false, + }, + { + serverOption: 'csharp|background_analysis.dotnet_compiler_diagnostics_scope', + vsCodeConfiguration: 'dotnet.backgroundAnalysis.compilerDiagnosticsScope', + declareInPackageJson: true, + }, + { + serverOption: 'mystery_language|background_analysis.dotnet_compiler_diagnostics_scope', + vsCodeConfiguration: null, + declareInPackageJson: false, + }, ]; suite('Server option name to vscode configuration name test', () => {