We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f3501 commit f47bd6aCopy full SHA for f47bd6a
bundled/tool/lsp_server.py
@@ -369,13 +369,15 @@ def _get_settings_by_document(document: workspace.Document | None):
369
def _run_tool_on_document(
370
document: workspace.Document,
371
use_stdin: bool = False,
372
- extra_args: Sequence[str] = [],
+ extra_args: Optional[Sequence[str]] = None,
373
) -> utils.RunResult | None:
374
"""Runs tool on the given document.
375
376
if use_stdin is true then contents of the document is passed to the
377
tool via stdin.
378
"""
379
+ if extra_args is None:
380
+ extra_args = []
381
if str(document.uri).startswith("vscode-notebook-cell"):
382
# TODO: Decide on if you want to skip notebook cells.
383
# Skip notebook cells
0 commit comments