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
There is a new API vscode.workspace.workspaceFile as proposed API:
exportnamespaceworkspace{/** * The location of the workspace file, for example: * * file:///Users/name/Development/myProject.code-workspace` * * or * * `untitled:1555503116870` * * for a workspace that is untitled and not yet saved. * * Depending on the workspace that is opened, the value will be: * * `undefined` when no workspace or a single folder is opened * * the path of the workspace file as `Uri` otherwise. if the workspace * is untitled, the returned URI will use the `untitled:` scheme * * The location can e.g. be used with the `vscode.openFolder` command to * open the workspace again after it has been closed. * * **Example:** * * vscode.commands.executeCommand('vscode.openFolder', uriOfWorkspace); * * * **Note:** it is not advised to use `workspace.workspaceFile` to write * configuration data into the file. You can use `workspace.getConfiguration().update()` * for that purpose which will work both when a single folder is opened as * well as an untitled or saved workspace. */exportconstworkspaceFile: Uri|undefined;}
Verify this API works as advertised.
The text was updated successfully, but these errors were encountered:
Refs: #37421
Complexity: 2
There is a new API
vscode.workspace.workspaceFile
as proposed API:Verify this API works as advertised.
The text was updated successfully, but these errors were encountered: