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

Display diagnostics from sfdx-hardis linters in code #86

Open
przemekrcloudity opened this issue Mar 31, 2023 · 1 comment
Open

Display diagnostics from sfdx-hardis linters in code #86

przemekrcloudity opened this issue Mar 31, 2023 · 1 comment

Comments

@przemekrcloudity
Copy link

Using VS Code diagnostics API it is possible to display static analysis results in VS Code natively.
I think that it would be cool to use this API to display diagnostics directly in VS Code (for example from duplicate detector).
Of course, due to current "duplicate detector" implementation limitations, showing such diagnostics in exact line would be impossible as we don't know in which line the duplicate occurred, but it would still be useful to at least know that such duplicates exist in opened file.

@nvuillam
Copy link
Member

I already played with Diagnostics API in VsCode Groovy Lint

This should not be too complicated, and indeed already having the file could be the first step to have the position in file (that we may find using some regexes from error msg )

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

No branches or pull requests

2 participants