Skip to content

Fix "convert tabs to space" quickfix for "indentation cannot be tabs" #1057

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 1 commit into
base: main
Choose a base branch
from

Conversation

datho7561
Copy link
Contributor

What does this PR do?

Fixes the error message that the code action provider expects so that the quickfix is generated once more.

I think the error message changed when switching validators. There is nothing more concrete (such as a diagnostic code) to identify the "indentation cannot be tabs" diagnostics.

What issues does this PR fix or reference?

Fixes #1052

Is it tested? How?

I've updated the unit tests. Perhaps an integration test would be helpful to avoid something similar happening in the future? I'd like a second opinion in this.

I think the error message changed when switching validators.
There is nothing more concrete (such as a diagnostic code) to identify
the "identation cannot be tabs" diagnostics.

Fixes redhat-developer#1052

Signed-off-by: David Thompson <[email protected]>
@coveralls
Copy link

Coverage Status

coverage: 84.178%. remained the same
when pulling 561f100 on datho7561:1052-fix-no-tabs-quickfix
into 2a2e614 on redhat-developer:main.

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.

No more quickfix for indent with tab
2 participants