Skip to content

Commit 46b55d8

Browse files
committed
Only send build only diagnostic ids requests for opening C# files
1 parent 54ca34b commit 46b55d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lsptoolshost/server/roslynLanguageServer.ts

+3
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,9 @@ export class RoslynLanguageServer {
895895
// When a file is opened process any build diagnostics that may be shown
896896
this._languageClient.addDisposable(
897897
vscode.workspace.onDidOpenTextDocument(async (event) => {
898+
if (event.languageId !== 'csharp') {
899+
return;
900+
}
898901
try {
899902
const buildIds = await this.getBuildOnlyDiagnosticIds(CancellationToken.None);
900903
await this._buildDiagnosticService._onFileOpened(event, buildIds);

0 commit comments

Comments
 (0)