Skip to content

Commit c963d9d

Browse files
author
Christopher Giroir
committed
fix: remove full file read
1 parent 43ff673 commit c963d9d

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
@@ -334,9 +334,8 @@ def inlay_hint(
334334
try:
335335
uri = URI(params.text_document.uri)
336336
self._ensure_context_for_document(uri)
337-
document = ls.workspace.get_text_document(params.text_document.uri)
338337
if self.lsp_context is None:
339-
raise RuntimeError(f"No context found for document: {document.path}")
338+
raise RuntimeError(f"No context found for document: {uri}")
340339

341340
start_line = params.range.start.line
342341
end_line = params.range.end.line

0 commit comments

Comments
 (0)