Skip to content

Commit 6a20235

Browse files
committed
Merge remote-tracking branch 'upstream/main' into BumpRazor
2 parents 6878ca4 + 1c11b4e commit 6a20235

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

package.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"defaults": {
39-
"roslyn": "4.7.0-3.23326.2",
39+
"roslyn": "4.7.0-3.23328.5",
4040
"omniSharp": "1.39.6",
4141
"razor": "7.0.0-preview.23328.2"
4242
},
@@ -1293,6 +1293,38 @@
12931293
"description": "Show regular expressions in completion list.",
12941294
"order": 20
12951295
},
1296+
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": {
1297+
"type": "string",
1298+
"enum": [
1299+
"openFiles",
1300+
"fullSolution",
1301+
"none"
1302+
],
1303+
"default": "openFiles",
1304+
"enumDescriptions": [
1305+
"Open documents",
1306+
"Entire solution",
1307+
"None"
1308+
],
1309+
"description": "Run background code analysis for:",
1310+
"order": 30
1311+
},
1312+
"dotnet.backgroundAnalysis.compilerDiagnosticsScope": {
1313+
"type": "string",
1314+
"enum": [
1315+
"openFiles",
1316+
"fullSolution",
1317+
"none"
1318+
],
1319+
"default": "openFiles",
1320+
"enumDescriptions": [
1321+
"Open documents",
1322+
"Entire solution",
1323+
"None"
1324+
],
1325+
"description": "Show compiler errors and warnings for:",
1326+
"order": 30
1327+
},
12961328
"dotnet.highlighting.highlightRelatedRegexComponents": {
12971329
"type": "boolean",
12981330
"default": "true",

test/unitTests/lspToolHost/configurationMiddleware.test.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,26 @@ const testData = [
189189
vsCodeConfiguration: 'codeStyle.formatting.newLine.insertFinalNewline',
190190
declareInPackageJson: false,
191191
},
192+
{
193+
serverOption: 'csharp|background_analysis.dotnet_analyzer_diagnostics_scope',
194+
vsCodeConfiguration: 'dotnet.backgroundAnalysis.analyzerDiagnosticsScope',
195+
declareInPackageJson: true,
196+
},
197+
{
198+
serverOption: 'mystery_language|background_analysis.dotnet_analyzer_diagnostics_scope',
199+
vsCodeConfiguration: null,
200+
declareInPackageJson: false,
201+
},
202+
{
203+
serverOption: 'csharp|background_analysis.dotnet_compiler_diagnostics_scope',
204+
vsCodeConfiguration: 'dotnet.backgroundAnalysis.compilerDiagnosticsScope',
205+
declareInPackageJson: true,
206+
},
207+
{
208+
serverOption: 'mystery_language|background_analysis.dotnet_compiler_diagnostics_scope',
209+
vsCodeConfiguration: null,
210+
declareInPackageJson: false,
211+
},
192212
];
193213

194214
suite('Server option name to vscode configuration name test', () => {

0 commit comments

Comments
 (0)