Skip to content

Commit 8645247

Browse files
author
Becca McHenry
committed
fix integration tests
1 parent 5559303 commit 8645247

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,11 @@ export class RoslynLanguageServer {
835835
}
836836

837837
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+
838843
const response = await this.sendRequest0(RoslynProtocol.BuildOnlyDiagnosticIdsRequest.type, token);
839844
if (response) {
840845
return response.ids;

0 commit comments

Comments
 (0)