Skip to content

Commit ed3e8f9

Browse files
author
Christopher Giroir
committed
fix: remove full file read
1 parent 0a584c8 commit ed3e8f9

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
@@ -331,9 +331,8 @@ def inlay_hint(
331331
try:
332332
uri = URI(params.text_document.uri)
333333
self._ensure_context_for_document(uri)
334-
document = ls.workspace.get_text_document(params.text_document.uri)
335334
if self.lsp_context is None:
336-
raise RuntimeError(f"No context found for document: {document.path}")
335+
raise RuntimeError(f"No context found for document: {uri}")
337336

338337
start_line = params.range.start.line
339338
end_line = params.range.end.line

0 commit comments

Comments
 (0)