File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 7
7
// https://github.com/microsoft/vscode-extension-samples/tree/master/webview-sample
8
8
9
9
import vscode = require( 'vscode' ) ;
10
+ import { getGoConfig } from './config' ;
10
11
import { extensionId } from './const' ;
11
12
12
13
export class WelcomePanel {
@@ -123,6 +124,14 @@ export class WelcomePanel {
123
124
// Use a nonce to only allow specific scripts to be run
124
125
const nonce = getNonce ( ) ;
125
126
127
+ // Add an extra note if the user has already disabled gopls, asking
128
+ // them to enable it.
129
+ let alreadyDisabledGopls = '' ;
130
+ if ( getGoConfig ( ) ?. get ( 'useLanguageServer' ) === false ) {
131
+ alreadyDisabledGopls = `If you previously disabled gopls through the "go.useLanguageServer"
132
+ setting, we recommend removing that setting now.` ;
133
+ }
134
+
126
135
return `<!DOCTYPE html>
127
136
<html lang="en">
128
137
<head>
@@ -161,7 +170,7 @@ export class WelcomePanel {
161
170
Heads up! Gopls, the official Go language server, is now enabled in VS Code by default.
162
171
Gopls replaces several legacy tools to provide IDE features while editing Go code.
163
172
See <a href="https://github.com/golang/vscode-go/issues/1037">issue 1037</a> for more
164
- information.
173
+ information. ${ alreadyDisabledGopls }
165
174
</p>
166
175
</div>
167
176
You can’t perform that action at this time.
0 commit comments