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

andschwa
Copy link
Member

@andschwa andschwa commented Jan 28, 2022

Resolves #2153.

@andschwa andschwa changed the title WIP: Starting to support multi-root workspaces Fully support multi-root workspaces Dec 1, 2022
@andschwa andschwa marked this pull request as ready for review December 1, 2022 21:02
@andschwa andschwa requested a review from a team as a code owner December 1, 2022 21:02
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.

@andschwa andschwa enabled auto-merge (squash) December 1, 2022 21:36
@andschwa andschwa merged commit 6152c60 into main Dec 1, 2022
13 checks passed
@andschwa andschwa deleted the andschwa/multi-workspace branch December 1, 2022 21:44
@andschwa andschwa restored the andschwa/multi-workspace branch December 1, 2022 21:47
@andschwa andschwa 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid using workspace.rootPath
3 participants