Skip to content

Commit

Permalink
fix: store notification choices globally
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Aug 2, 2022
1 parent a3febb6 commit 87c07c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/Notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ class Notifier {
if (shouldStoreChoice === this.DONT_ASK_AGAIN) choice = this.DONT_ASK_AGAIN;
if (shouldStoreChoice) {
const config = this.pymakr.config.get().get("misc.notifications");
this.pymakr.config.get().update(`misc.notifications`, { ...config, [id]: choice });
this.pymakr.config
.get()
.update(`misc.notifications`, { ...config, [id]: choice }, vscode.ConfigurationTarget.Global);
}
}

Expand Down

0 comments on commit 87c07c7

Please sign in to comment.