Skip to content

Commit 85eb79c

Browse files
author
Christopher Giroir
committed
fix: remove full file read
1 parent 5575e9e commit 85eb79c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sqlmesh/lsp/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,8 @@ def inlay_hint(
343343
try:
344344
uri = URI(params.text_document.uri)
345345
self._ensure_context_for_document(uri)
346-
document = ls.workspace.get_text_document(params.text_document.uri)
347346
if self.lsp_context is None:
348-
raise RuntimeError(f"No context found for document: {document.path}")
347+
raise RuntimeError(f"No context found for document: {uri}")
349348

350349
start_line = params.range.start.line
351350
end_line = params.range.end.line

0 commit comments

Comments
 (0)