Ask questionsIncorrectly marking a declaration as unused

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: --> <!-- Please search existing issues to avoid creating duplicates. --> <!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: -->

Apologies if this is the wrong repo for this.

<!-- Use Help > Report Issue to prefill these. -->

  • VSCode Version: 1.45.1
  • OS Version: Windows 10 & macOS

Steps to Reproduce:

The issue can be observed on CodeSandbox which I guess uses the same underlying code.

CancelToken is being marked as an unused declaration when it clearly isn't and applying the quick fix breaks the code.

<!-- Launch with code --disable-extensions to check. --> Does this issue occur when all extensions are disabled?: Yes


Answer questions mjbvz

Does this reproduce in the latest VS Code insiders build with all extensions disabled?


Related questions

the terminal process terminated with exit code #259 hot 7
The terminal shell CWD &#34;/c:/User...&#34; does not exist - vscode hot 4
Bad message: Cannot launch program 'c:\...'; setting the 'outFiles' attribute might help. hot 3
Show offending file path, when "Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`." hot 3
XHR Failed on trying to install plugins via Visual Studio code hot 2
format code alt + shift + f hot 2
Corrupt ZIP: end of central directory record signature not found hot 2
"Initializing JS/TS Language Features" appears every time I open a JS file hot 2
Logitech MX Master: Horizontal scrolling via scroll wheel doesn't work hot 2
VS Code doesn't read Git packed-refs hot 2
Is it possible to use wsl bash php for php.validate.executablePath hot 2
Virtual Space is not implemented. hot 2
EISDIR: illegal operation on a directory, read error when trying to REMOTE-SSH hot 2
Failed to save ...: The content of the file is newer. Please compare your version with the file contents. hot 2
Insiders - We cannot connect to the Extensions Marketplace hot 2
Github User Rank List