Skip to content

Cannot find module 'vscode' – where is vscode.d.ts now installed? #2810

Description

@jednano

The January Release Notes – Extension Authoring section says I should be able to update my package.json file to include the following:

{
  "engines": {
    "vscode": "^0.10.8"
  },
  "devDependencies": {
    "typescript": "^1.7.5",
    "vscode": "^0.11.x"
  }
}  

It also notes the following:

  • The vscode.d.ts is no longer shipping within the vscode npm module.
  • The value of the engine field in your extension is used to determine which version of vscode.d.ts to use.

It does not, however, tell me where vscode.d.ts is installed. I used to be able to do imports like:

import { TextEditor } from 'vscode';

However, now I'm getting an error:

Cannot find module 'vscode'.

It's not clear to me, the new way to do these imports and I've tried tracking down vscode.d.ts to no avail, so I'm at a loss.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions