Skip to content

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

Merged
msivasubramaniaan merged 2 commits into
redhat-developer:mainfrom
datho7561:1052-fix-no-tabs-quickfix
May 6, 2025
Merged

Fix "convert tabs to space" quickfix for "indentation cannot be tabs"#1057
msivasubramaniaan merged 2 commits into
redhat-developer:mainfrom
datho7561:1052-fix-no-tabs-quickfix

Conversation

@datho7561
Copy link
Copy Markdown
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.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 28, 2025

Coverage Status

coverage: 84.201%. remained the same
when pulling c04b43d on datho7561:1052-fix-no-tabs-quickfix
into 4a5c6ca on redhat-developer:main.

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 <davthomp@redhat.com>
@datho7561 datho7561 force-pushed the 1052-fix-no-tabs-quickfix branch from 561f100 to d68f2d5 Compare May 2, 2025 12:45
Copy link
Copy Markdown
Contributor

@msivasubramaniaan msivasubramaniaan left a comment

Choose a reason for hiding this comment

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

LGTM

@msivasubramaniaan msivasubramaniaan merged commit 159d215 into redhat-developer:main May 6, 2025
4 checks passed
@datho7561 datho7561 deleted the 1052-fix-no-tabs-quickfix branch May 6, 2025 12:42
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

3 participants