Skip to content

Commit 86ce85f

Browse files
committed
chore(vscode): use with open correctly
1 parent e773b59 commit 86ce85f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlmesh/lsp/reference.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def get_model_definitions_for_a_path(
132132
if len(tables) == 0:
133133
return []
134134

135-
read_file = open(file_path, "r").readlines()
135+
with open(file_path, "r", encoding="utf-8") as file:
136+
read_file = file.readlines()
136137

137138
for table in tables:
138139
# Normalize the table reference

0 commit comments

Comments
 (0)