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

Explicitly set diagnosticCollectionName #1541

Closed
wants to merge 1 commit into from

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented Jul 18, 2023

In general VS Code is supposed to allow multiple extensions to provide diagnositics for a file without collision. There are reported cases where multiple extensions that claim support for the same language overwrite diagnositics. To avoid this, we can set diagnosticCollectionName explicitly and create our own collection.

While we haven't specifically seen this happen for us, it may have happened and we are not the only ones to set it explicitly.

Reference: https://github.com/microsoft/vscode-languageserver-node/blob/f2ff7d55464a1f58f978cb6635bd8865f050553c/client/src/common/client.ts#L1080-L1084

In general VS Code is supposed to allow multiple extensions to provide diagnositics for a file without collision. There are [reported cases](sourcery-ai/sourcery-vscode#121) where multiple extensions that claim support for the same language overwrite diagnositics. To avoid this, we can set diagnosticCollectionName explicitly and create our own collection.

While we haven't specifically seen this happen for us, it may have happened and we are not the only ones to set it explicitly.

Reference: https://github.com/microsoft/vscode-languageserver-node/blob/f2ff7d55464a1f58f978cb6635bd8865f050553c/client/src/common/client.ts#L1080-L1084
@jpogran jpogran self-assigned this Jul 18, 2023
@jpogran jpogran changed the base branch from f-tfc to main July 25, 2023 18:13
@jpogran jpogran changed the base branch from main to f-tfc July 25, 2023 18:14
@jpogran jpogran closed this Jul 25, 2023
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2023
@jpogran jpogran deleted the diagnostic_collection_name branch August 30, 2023 14:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant