Skip to content

Commit fc8bc92

Browse files
authored
fix(vscode): python fix for cll (#4500)
1 parent ec92d47 commit fc8bc92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sqlmesh/lsp/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ def api(ls: LanguageServer, request: ApiRequest) -> t.Dict[str, t.Any]:
119119
# /api/lineage/{model}/{column}
120120
model_name = urllib.parse.unquote(path_parts[2])
121121
column = urllib.parse.unquote(path_parts[3])
122-
logging.info(f"Column lineage request: {model_name} {column}")
122+
models_only = False
123+
if hasattr(request, "params"):
124+
models_only = bool(getattr(request.params, "models_only", False))
123125
column_lineage_response = column_lineage(
124-
model_name, column, False, self.lsp_context.context
126+
model_name, column, models_only, self.lsp_context.context
125127
)
126128
return ApiResponseGetColumnLineage(data=column_lineage_response).model_dump(
127129
mode="json"

0 commit comments

Comments
 (0)