Skip to content

Add configuration option to disable workspace update notifications #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add configuration option to disable workspace update notifications
Adds coder.disableUpdateNotifications setting to allow users to disable
the popup notifications when workspace template updates are available.

Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
  • Loading branch information
blink-so[bot] and kylecarbs committed Jul 17, 2025
commit 17d34d66c20e6c39949c60a03b506b93eff63b53
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
"markdownDescription": "Automatically log into the default URL when the extension is activated. coder.defaultUrl is preferred, otherwise the CODER_URL environment variable will be used. This setting has no effect if neither is set.",
"type": "boolean",
"default": false
},
"coder.disableUpdateNotifications": {
"markdownDescription": "Disable notifications when workspace template updates are available.",
"type": "boolean",
"default": false
}
}
},
Expand Down
7 changes: 7 additions & 0 deletions src/workspaceMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@
private maybeNotifyOutdated(workspace: Workspace) {
if (!this.notifiedOutdated && workspace.outdated) {
this.notifiedOutdated = true;

Check failure on line 175 in src/workspaceMonitor.ts

View workflow job for this annotation

GitHub Actions / test

Delete `↹↹↹`
// Check if update notifications are disabled
const disableNotifications = vscode.workspace.getConfiguration("coder").get<boolean>("disableUpdateNotifications", false);

Check failure on line 177 in src/workspaceMonitor.ts

View workflow job for this annotation

GitHub Actions / test

Replace `.getConfiguration("coder")` with `⏎↹↹↹↹.getConfiguration("coder")⏎↹↹↹↹`
if (disableNotifications) {
return;
}

Check failure on line 181 in src/workspaceMonitor.ts

View workflow job for this annotation

GitHub Actions / test

Delete `↹↹↹`
this.restClient
.getTemplate(workspace.template_id)
.then((template) => {
Expand Down
Loading