-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Dev Container uses the right workspace now #14557
Conversation
When there are more than one workspaces open the config json is picked from the right workspace. Solves #14307
The linting task still fails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For documentation purposes: There is no support for multi root workspaces yet. But thats something for another task
Works like a charm, and code looks good.
@@ -54,7 +49,7 @@ export class DevContainerFileService { | |||
} | |||
|
|||
protected async searchForDevontainerJsonFiles(directory: string, depth: number): Promise<string[]> { | |||
if (depth < 0) { | |||
if (depth < 0 || !fs.existsSync(directory)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use sync file system code in the backend - it blocks the whole server process and is bad practice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry overlooked that. PR here #14563
Just an FYI, this doesn’t seem to work on the Theia IDE Preview for 1.57 at the moment. We haven’t investigated yet: #14643 (comment) |
What it does
When there are more than one workspaces open the config json is picked from the right workspace.
Solves #14307
How to test
See #14307 and try to reproduce the issue. Should not be possible anymore. :-)
Review checklist
Reminder for reviewers