Skip to content

Commit f0ad023

Browse files
committed
remove support for go-langserver
1 parent 76207ea commit f0ad023

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/goLanguageServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ Please set "gopls" instead, and then reload the VS Code window.`);
327327

328328
// Installation of gopls and go-langserver is supported.
329329
// Other language servers must be installed manually.
330-
if (languageServerOfChoice !== 'gopls' && languageServerOfChoice !== 'go-langserver') {
330+
if (languageServerOfChoice !== 'gopls') {
331331
vscode.window.showErrorMessage(
332332
`Cannot find the language server ${languageServerOfChoice}. Please install it and reload this VS Code window.`
333333
);

src/goTools.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ export function getConfiguredTools(goVersion: GoVersion): Tool[] {
124124
// Add the language server for Go versions > 1.10 if user has choosen to do so.
125125
// Respect the go.alternateTools setting.
126126
if (goConfig['useLanguageServer'] && goVersion.gt('1.10')) {
127-
if (goConfig['alternateTools']['gopls']) {
128-
maybeAddTool(goConfig['alternateTools']['gopls']);
129-
} else {
130-
maybeAddTool('gopls');
131-
}
127+
maybeAddTool('gopls');
132128
}
133129

134130
if (goLiveErrorsEnabled()) {

0 commit comments

Comments
 (0)