You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a great developer community over on slack where extension authors help each other. This is a great place for you to ask questions and find support.
This works correctly in the stable build, but in the insiders build (1.32.0-insider, 7d0c9e6 )
This is likely because we now compile to ES6, meaning the URI-class is now actually a class and not functions/prototypes anymore. The latter, functions, allow using new in more relaxed ways but it's likely not what you wanted. The ES6 world is more strict.
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?
The text was updated successfully, but these errors were encountered: