Skip to content
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

Fix: Stability issues with VS Code extension #3377

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

molant
Copy link
Member

@molant molant commented Nov 20, 2019

Pull request checklist

Make sure you:

For non-trivial changes, please make sure you also:

  • Added/Updated related documentation.
  • Added/Updated related tests.

Short description of the change(s)

The VS Code extension could end up breaking node_modules in the
workspace or the global shared folder. This was caused because we were
installing hint@latest in the workspace and because that process
took too long and the user might closed the editor before it was
ended.
To avoid that we now let the user manage their own hint installation
in the workspace, no more prompting about installation. If no version
can be loaded from the workspace, the shared one (hint@latest) will
be used.
Also, the shared version is updated after 2 minutes instead of
immediately and only if the shared version has been successfully
loaded.
If the user already has a workspace version there is no point in
updating the shared one as it will not be used.

@molant
Copy link
Member Author

molant commented Nov 20, 2019

vsix for testing (you'll have to remove the .zip extension and side load it)
vscode-webhint-1.4.1.vsix.zip

@sarvaje
Copy link
Contributor

sarvaje commented Nov 20, 2019

@molant there is a coverage error :(

The VS Code extension could end up breaking `node_modules` in the
workspace or the global shared folder. This was caused because we were
installing `hint@latest` in the workspace and because that process
took too long and the user might closed the editor before it was
ended.
To avoid that we now let the user manage their own `hint` installation
in the workspace, no more prompting about installation. If no version
can be loaded from the workspace, the shared one (`hint@latest`) will
be used.
Also, the shared version is updated after 2 minutes instead of
immediately and only if the shared version has been successfully
loaded.
If the user already has a workspace version there is no point in
updating the shared one as it will not be used.
@molant molant force-pushed the fix/extension-vscode-lifecycle branch from eeec027 to 87e602a Compare November 21, 2019 03:44
@molant molant merged commit 7e77a13 into webhintio:master Nov 22, 2019
@molant molant deleted the fix/extension-vscode-lifecycle branch March 7, 2020 00:24
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.

2 participants