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(lsp): lint diagnostics respect config file #12338

Merged
merged 6 commits into from
Oct 11, 2021

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Oct 5, 2021

This commit fixes problem with LSP where diagnostics coming
from "deno lint" don't respect configuration file.

LSP was changed to store "Option<ConfigFile>", "Option<LintConfig>"
and "Option<FmtConfig>" on "Inner"; as well as storing "Option<LintConfig>"
and "Option<FmtConfig>" on "StateSnapshot".

Fixes #12238

Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

Seeing it in action, I would suggest a different approach...

cli/lsp/analysis.rs Outdated Show resolved Hide resolved
cli/lsp/language_server.rs Outdated Show resolved Hide resolved
cli/tools/lint.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

LGTM. Cool! That feels a lot better...

@bartlomieju bartlomieju merged commit f332d72 into denoland:main Oct 11, 2021
@bartlomieju bartlomieju deleted the lsp_lint_config_file branch October 11, 2021 22:02
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.

Deno lint diagnostics don't use deno.json when configured on settings.json
2 participants