Test: Allow vscode.env.asExternalUri
to return valid results for workspace URIs
#127367
Closed
2 tasks done
Labels
Milestone
Refs: #124263
Complexity: 3
Create Issue
Create Issue
Up until now, the
vscode.env.asExternalUri
API has been limited tohttp:
,https:
and${appScheme}:
URIs. It would throw an error if you give it any other URI. With #124263, any other URI is assumed to be a workspace URI and VS Code should return a system-openable URI which opens that workspace. For example, give itfile:///path/to/existing/folder
and you get something which you can paste on a browser location bar and it should open that folder in VS Code.This API just went stable, so please test you can successfully use it without having
enableProposedApi: true
.Create a sample extension. Then invoke that API and:
http:
,https:
and${appScheme}:
works just as beforefile:
. A good sample isvscode.env.asExternalUri(vscode.workspace.workspaceFolders[0]!.uri)
, which should produce a system-wide URI which opens the current workspace.asdf:
The text was updated successfully, but these errors were encountered: