Skip to content

Commit 1c11b4e

Browse files
authored
Merge pull request #5868 from mavasani/BackgroundAnalysisOptions
Enable full solution background analysis
2 parents 03c84c8 + 6804b88 commit 1c11b4e

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.23275.2"
4242
},
@@ -1284,6 +1284,38 @@
12841284
"description": "Show regular expressions in completion list.",
12851285
"order": 20
12861286
},
1287+
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": {
1288+
"type": "string",
1289+
"enum": [
1290+
"openFiles",
1291+
"fullSolution",
1292+
"none"
1293+
],
1294+
"default": "openFiles",
1295+
"enumDescriptions": [
1296+
"Open documents",
1297+
"Entire solution",
1298+
"None"
1299+
],
1300+
"description": "Run background code analysis for:",
1301+
"order": 30
1302+
},
1303+
"dotnet.backgroundAnalysis.compilerDiagnosticsScope": {
1304+
"type": "string",
1305+
"enum": [
1306+
"openFiles",
1307+
"fullSolution",
1308+
"none"
1309+
],
1310+
"default": "openFiles",
1311+
"enumDescriptions": [
1312+
"Open documents",
1313+
"Entire solution",
1314+
"None"
1315+
],
1316+
"description": "Show compiler errors and warnings for:",
1317+
"order": 30
1318+
},
12871319
"dotnet.highlighting.highlightRelatedRegexComponents": {
12881320
"type": "boolean",
12891321
"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)