Skip to content

Commit 22ab09a

Browse files
benfdkingCopilot
andauthored
Update sqlmesh/lsp/context.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cecb573 commit 22ab09a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sqlmesh/lsp/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ def diagnostic_to_lsp_diagnostic(
330330

331331
# Get rule definition location for diagnostics link
332332
rule_location = diagnostic.rule.get_definition_location()
333-
rule_uri_wihout_extension = URI.from_path(rule_location.file_path)
334-
rule_uri = f"{rule_uri_wihout_extension.value}#L{rule_location.start_line}"
333+
rule_uri_without_extension = URI.from_path(rule_location.file_path)
334+
rule_uri = f"{rule_uri_without_extension.value}#L{rule_location.start_line}"
335335

336336
# Use URI format to create a link for "related information"
337337
return types.Diagnostic(

0 commit comments

Comments
 (0)