Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully support multi-root workspaces #3796

Merged
merged 1 commit into from
Dec 1, 2022
Merged

Conversation

andyleejordan
Copy link
Member

@andyleejordan andyleejordan commented Jan 28, 2022

Resolves #2153.

@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 as a code owner 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!

@@ -24,6 +24,9 @@ export function getPipePath(pipeName: string) {
// 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
3 participants