Useful vscode extension patterns - Update Notification
The article discusses effective patterns for notifying users about updates in Visual Studio Code extensions. It emphasizes the importance of not overwhelming users with notifications and suggests a method for managing version notifications. Additionally, it highlights the need for a simple changelog to accompany the extension.
- ▪The article presents a solution to notify users about updates without causing annoyance.
- ▪It suggests comparing the current version with the last notified version to determine if a notification is necessary.
- ▪A user preference can be implemented to allow users to choose their notification settings for different version types.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3785090) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Frederik Hudák Posted on May 30 Useful vscode extension patterns - Update Notification #javascript #tooling #tutorial #vscode Basic problem - when you ship a new version, you want users to know and look at what's changed. I will demonstrate a simple pattern you can reuse in your extension.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).