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 5c684a8 commit a172a42Copy full SHA for a172a42
Extension/src/LanguageServer/persistentState.ts
@@ -19,6 +19,11 @@ class PersistentStateBase<T> {
19
this.defaultvalue = defaultValue;
20
this.state = state;
21
this.curvalue = defaultValue;
22
+
23
+ // Ensure the default is written to the state store.
24
+ if (this.state && this.state.get<T>(this.key) === undefined) {
25
+ void this.state.update(this.key, this.defaultvalue);
26
+ }
27
}
28
29
public get Value(): T {
0 commit comments