Skip to content

Conversation

@andyleejordan
Copy link
Member

@andyleejordan andyleejordan commented Jan 28, 2022

Resolves #2153.

@andyleejordan andyleejordan force-pushed the andschwa/multi-workspace branch from 5aa078b to 710f6d8 Compare December 1, 2022 21:01
@andyleejordan andyleejordan changed the title WIP: Starting to support multi-root workspaces Fully support multi-root workspaces Dec 1, 2022
@andyleejordan andyleejordan marked this pull request as ready for review December 1, 2022 21:02
@andyleejordan andyleejordan requested a review from a team December 1, 2022 21:02
@ghost ghost added Area-Workspaces Issue-Enhancement A feature request (enhancement). labels Dec 1, 2022
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andyleejordan andyleejordan force-pushed the andschwa/multi-workspace branch from 710f6d8 to 46e0e77 Compare December 1, 2022 21:34
// Check that the file or directory exists in an asynchronous manner that relies
// solely on the VS Code API, not Node's fs library, ignoring symlinks.
async function checkIfFileOrDirectoryExists(targetPath: string | vscode.Uri, type: vscode.FileType): Promise<boolean> {
if (targetPath === "") {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SeeminglyScience since the settings overhaul PR, the default cwd was "" which conspicuously vscode.workspace.fs.stat was totally fine saying it existed.

@andyleejordan andyleejordan enabled auto-merge (squash) December 1, 2022 21:36
@andyleejordan andyleejordan merged commit 6152c60 into main Dec 1, 2022
@andyleejordan andyleejordan deleted the andschwa/multi-workspace branch December 1, 2022 21:44
@andyleejordan andyleejordan restored the andschwa/multi-workspace branch December 1, 2022 21:47
@andyleejordan andyleejordan deleted the andschwa/multi-workspace branch December 1, 2022 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Workspaces Issue-Enhancement A feature request (enhancement).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid using workspace.rootPath

4 participants