-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only trigger language server auto update once (#623)
Previously the extension would trigger a new auto-update whenever it was activated. However this can causes issues when a user deactivates-activates the language server quickly multiple times, as it cause multiple timeouts to be created. Additionally, when disabled, it would not clear any active timeouts. This commit adds a small wrapper around the setTimeout function to track usage. In particular, it will silently ignore calls to add a timeout if a timeout is already active. This commit also clears any timeouts when the language server is disabled.
- Loading branch information
1 parent
c1bdbf7
commit 967ea7b
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters