Skip to content

Restart only when extension configuration updated #46

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

notherno
Copy link

@notherno notherno commented Apr 5, 2023

What I changed

Compare changes of ExtensionConfiguration object and call extensionController.configurationChanged only when ExtensionConfiguration is updated.

This change includes a refactor of ExtensionConfiguration.

Why

VS Code's ConfigurationChangeEvent is triggered every time when the configuration of workspace updates.

This may cause the unintentional extension restart, for example: workbench.action.zoomIn triggers this kind of event and the extension restarts when executed by a button-press.

Restarts of the extension is necessary when the configuration of the extension, thus this change compares a change of ExtensionConfiguration and trigger restarts only when the extension configuration is updated.

Related issues

fixes #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimap Toggle command deactivates plugin for window
1 participant