We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92aecda commit 97f2b85Copy full SHA for 97f2b85
src/languageSupport/languages/flux/lsp/connection.ts
@@ -393,7 +393,13 @@ export class ConnectionManager {
393
this._first_load = false
394
break
395
case 'false|true|true':
396
- // re-sync just turned on.
+ // 1) re-sync just turned on or
397
+ // 2) measurement selection is changed when fields
398
+ // and/or tag values were previously selected
399
+ if (!toAdd.bucket) {
400
+ // bucket is needed for initialization
401
+ toAdd.bucket = schema.bucket
402
+ }
403
if (shouldRemoveDefaultMsg) {
404
this._removeDefaultAndUpdateLsp(() => this._initLspComposition(toAdd))
405
} else {
0 commit comments