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

all suggestions being applied on save #947

Closed
henriiik opened this issue Apr 16, 2020 · 4 comments
Closed

all suggestions being applied on save #947

henriiik opened this issue Apr 16, 2020 · 4 comments
Milestone

Comments

@henriiik
Copy link

Hello!

Since i upgraded vscode-eslint to 2.1.3 it seems like all suggestions are being applied on save. So for instance if i have an unused variable in a file, it will add a comment to the line above and open up the documentation for the rule.

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const foo = "bar";

my settings looks like this:

{
	"[typescriptreact]": {
		"editor.codeActionsOnSave": {
			"source.organizeImports": true
		}
	},
	"editor.codeActionsOnSave": {
		"source.fixAll.eslint": true
	},
}

but i change it to the following, the problem goes away:

{
	"[typescriptreact]": {
		"editor.codeActionsOnSave": {
			"source.organizeImports": true,
			"source.fixAll.eslint": true
		}
	},
}
@dbaeumer
Copy link
Member

I am able to reproduce this. Looking into a fix. In the worst case downgrade to 2.1.2.

@dbaeumer dbaeumer added this to the 2.1.4 milestone Apr 17, 2020
dbaeumer added a commit that referenced this issue Apr 17, 2020
@dbaeumer
Copy link
Member

@henriiik I have created a new preview version which should address the problem. Can you please give it a try and let me know if it works for you. It is available here: https://github.com/microsoft/vscode-eslint/releases/tag/release%2F2.1.4-next.1 and you can install it using the Install Extension from VSIX command.

Thanks.

@henriiik
Copy link
Author

I tried it and it does fix the problem, thanks! 🙂

@dbaeumer
Copy link
Member

Thanks for testing it.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants