[Bug] Repeated Quick Fixes
micahg opened this issue · comments
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
const value = /* set from `myEditor.getModel()`: */ `function hello() {
// let x = null;// uncomment this line === problem goes away
return;
x;
}`;
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
allowJs: true,
allowNonTsExtensions: true,
allowUnreachableCode: false,
checkJs: true,
})
// Hover on each property to see its docs!
const myEditor = monaco.editor.create(document.getElementById("container"), {
value,
language: "typescript",
});
Reproduction Steps
Actual (Problematic) Behavior
The "Ignore this error message" and "Disable checking for this file" quick fixes are repeated.
Expected Behavior
The "Ignore this error message" and "Disable checking for this file" quick fixes are not repeated.
Additional Context
The unreachable code must contain an undefined reference -- if the ref after the return
is defined, the problem goes away.