We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5559303 commit 8645247Copy full SHA for 8645247
src/lsptoolshost/roslynLanguageServer.ts
@@ -835,6 +835,11 @@ export class RoslynLanguageServer {
835
}
836
837
public async getBuildOnlyDiagnosticIds(token: vscode.CancellationToken): Promise<string[]> {
838
+ // If the server isn't running, no build diagnostics to get
839
+ if (!this.isRunning()) {
840
+ return [];
841
+ }
842
+
843
const response = await this.sendRequest0(RoslynProtocol.BuildOnlyDiagnosticIdsRequest.type, token);
844
if (response) {
845
return response.ids;
0 commit comments