Skip to content

Commit 8fc4183

Browse files
committed
src/goLanguageServer: enable survey for the go extension users
We ran the survey only for go-nightly so far. Now remove the condition and activate survey for all go extensions. We will prompt user surveys for 1% of users (excluding users who responded in the last year or got prompted in the last 90days). Change-Id: I763daf4ee44f98b6d2418d9d32f9484b69d760d4 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/262352 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
1 parent 6703469 commit 8fc4183

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/goLanguageServer.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ let defaultLanguageProviders: vscode.Disposable[] = [];
8686
// server.
8787
let restartCommand: vscode.Disposable;
8888

89-
// When enabled, users may be prompted to fill out the gopls survey.
90-
// For now, we turn it on in the Nightly extension to test it.
91-
const goplsSurveyOn: boolean = extensionId === 'golang.go-nightly';
92-
9389
// lastUserAction is the time of the last user-triggered change.
9490
// A user-triggered change is a didOpen, didChange, didSave, or didClose event.
9591
let lastUserAction: Date = new Date();
@@ -142,7 +138,7 @@ function scheduleGoplsSuggestions(tool: Tool) {
142138
setTimeout(survey, timeDay);
143139

144140
const cfg = buildLanguageServerConfig();
145-
if (!goplsSurveyOn || !cfg.enabled) {
141+
if (!cfg.enabled) {
146142
return;
147143
}
148144
maybePromptForGoplsSurvey();

0 commit comments

Comments
 (0)