Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
Monaco Editor Playground
Monaco Editor Playground Code
const value = /* set from `tm`: */ `
def fibonacci(n):
a = 0
b = 1
# Check if n is less than 0
if n < 0:
print("Incorrect input")
# Check if n is equal to 0
elif n == 0:
return 0
# Check if n is equal to 1
elif n == 1:
return b
else:
for i in range(1, n):
c = a + b
a = b
b = c
return b
print(fibonacci(9))
fibonacci(4)`;
monaco.languages.register({ id: 'python' });
const tm = monaco.editor.createModel(value, 'python',
monaco.Uri.parse('file:///d:/dev/MixedCase.py')
);
const editor = monaco.editor.create(document.getElementById('container'), {
model: tm,
language: 'python',
theme: 'vs-dark',
});
// In this playground, we cannot directly load the worker
const PYRIGHT_WORKER_URL = "https://cdn.jsdelivr.net/npm/@typefox/pyright-browser@1.1.299/dist/pyright.worker.js";
const bootstrap = `importScripts(${JSON.stringify(PYRIGHT_WORKER_URL)});`;
const blob = new Blob([bootstrap], { type: "application/javascript" });
const workerUrl = URL.createObjectURL(blob);
const worker = new Worker(workerUrl);
worker.postMessage({ type: 'browser/boot', mode: 'foreground' });
const s = monaco.lsp.createTransportToWorker(worker).log();
new monaco.lsp.MonacoLspClient(s);
Reproduction Steps
- Open Developer Tools and Reload Playground Page
- Debugger stops at statement
Actual (Problematic) Behavior
Expected Behavior
Just removing the debugger; statement
Additional Context
No response
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
Monaco Editor Playground
Monaco Editor Playground Code
Reproduction Steps
Actual (Problematic) Behavior
monaco-editor/monaco-lsp-client/src/adapters/languageFeatures/LspDiagnosticsFeature.ts
Line 34 in 613524b
Expected Behavior
Just removing the
debugger;statementAdditional Context
No response