Skip to content

Commit fae8cb9

Browse files
committed
src/goMain: stop trying to diagnose when gopls is not running
Since v0.40.0, the extension does not need to attempt to produce diagnostics when gopls is not running. Delete the code that triggers the legacy check during activation. Change-Id: Iff507421e073b2e30c1e0959a5db280f82e20224 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/545916 TryBot-Result: kokoro <[email protected]> Commit-Queue: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
1 parent 308c6c0 commit fae8cb9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/goMain.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,6 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<ExtensionA
109109
initCoverageDecorators(ctx);
110110

111111
registerCommand('go.builds.run', commands.runBuilds);
112-
113-
const activeDoc = vscode.window.activeTextEditor?.document;
114-
if (!goCtx.languageServerIsRunning && activeDoc?.languageId === 'go' && isGoPathSet()) {
115-
// Check mod status so that cache is updated and then run build/lint/vet
116-
isModSupported(activeDoc.uri).then(() => {
117-
vscode.commands.executeCommand('go.builds.run', activeDoc, getGoConfig(activeDoc.uri));
118-
});
119-
}
120-
121112
registerCommand('go.environment.status', expandGoStatusBar);
122113

123114
GoRunTestCodeLensProvider.activate(ctx, goCtx);

0 commit comments

Comments
 (0)