Skip to content

Error: "vscode.Uri.file" is not a constructor #69533

@Gruntfuggly

Description

@Gruntfuggly

My extension uses vscode.Uri.file to construct a resource with a file path:

treeItem.resourceUri = new vscode.Uri.file( node.fsPath );

https://code.visualstudio.com/api/references/vscode-api#Uri

This works correctly in the stable build, but in the insiders build (1.32.0-insider, 7d0c9e6 ) I get the error:

vscode.Uri.file is not a constructor

Am I doing something wrong?

Metadata

Metadata

Assignees

Labels

*dev-questionVS Code Extension Development Question

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions