Skip to content

clearTimeout is imported from timers #30713

Closed
@csicky

Description

@csicky
  • VSCode Version: 1.32.3
  • OS Version: Windows 10

Steps to Reproduce:

  1. Write clearTimeout
  2. You get import { clearTimeout } from 'timers' imported without asking and error in the browser.

Reported here already:
microsoft/vscode#57822
microsoft/vscode#40001
microsoft/vscode#38911

Is it impossible for VS Code to know that I write code for a browser where these are available already, and should not import them?

Does this issue occur when all extensions are disabled?: Yes/No - no idea

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issueFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions