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

Add reload command. #845

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
Add reload command
threehams committed Dec 18, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 83ccea89c50c1f65f95e88d690695249cce56249
5 changes: 5 additions & 0 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
@@ -1221,6 +1221,11 @@ function realActivate(context: ExtensionContext): void {
});
}),
Commands.registerCommand('eslint.showOutputChannel', () => { client.outputChannel.show(); }),
Commands.registerCommand('eslint.reload', () => {
client.stop().then(() => {
client.start();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

async () => {
await client.stop();
await client.start();
}

});
}),
statusBarItem
);
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -357,6 +357,11 @@
"title": "Show Output Channel",
"category": "ESLint",
"command": "eslint.showOutputChannel"
},
{
"title": "Reload ESLint",
"category": "ESLint",
"command": "eslint.reload"
}
],
"taskDefinitions": [