Skip to content

fix(vscode): duplicate returned diagnostics#4553

Merged
benfdking merged 2 commits intomainfrom
fix_for_lsp
May 27, 2025
Merged

fix(vscode): duplicate returned diagnostics#4553
benfdking merged 2 commits intomainfrom
fix_for_lsp

Conversation

@benfdking
Copy link
Contributor

@benfdking benfdking commented May 27, 2025

  • filters out identical diagnostics which is very possible in blueprints

@benfdking benfdking requested a review from Copilot May 27, 2025 10:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue in VS Code by removing duplicate diagnostics that can occur in blueprints.

  • Updates the diagnostic conversion function to eliminate duplicates using a dictionary.
  • Adds a new configuration option "nomissingowner" in the sushi example configuration.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sqlmesh/lsp/main.py Updated diagnostic conversion logic to eliminate duplicate entries.
examples/sushi/config.py Added a new configuration diagnostic option.

@benfdking benfdking merged commit 6ab6963 into main May 27, 2025
23 checks passed
@benfdking benfdking deleted the fix_for_lsp branch May 27, 2025 11:39
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.

3 participants