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

Fix vscode.env.appRoot path #13285

Merged
merged 2 commits into from
Jan 24, 2024
Merged

Fix vscode.env.appRoot path #13285

merged 2 commits into from
Jan 24, 2024

Conversation

msujew
Copy link
Member

@msujew msujew commented Jan 18, 2024

What it does

Closes #11477

Extends the ApplicationServer to also return the appRoot. We now use this new field to provide the plugin host with an accurate app root directory.

How to test

  1. Install the plugin from plugin: add proper support for appRoot #11477
  2. Confirm that the notification shows the expected application root. (i.e. .../theia/examples/browser or .../theia/examples/electron)

Review checklist

Reminder for reviewers

@msujew msujew added the vscode issues related to VSCode compatibility label Jan 18, 2024
@rschnekenbu
Copy link
Contributor

@msujew, I tried to reproduce the steps you provided, but I always get 'undefined' as an app root, both browser and electron.

Shouldn't envExt#setAppRoot be called on plugin manager $init (https://github.com/eclipse-theia/theia/blob/msujew/vscode-env-appRoot/packages/plugin-ext/src/plugin/plugin-manager.ts#L461) and the headless plugin manager?

@msujew
Copy link
Member Author

msujew commented Jan 24, 2024

@rschnekenbu Thanks, it broke during the latest rebase on the headless plugin host commit. I've fixed it again.

Copy link
Contributor

@rschnekenbu rschnekenbu left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Contributor

@jfaltermeier jfaltermeier left a comment

Choose a reason for hiding this comment

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

LGTM: vscode.env.appRoot: /home/johannes/Git/theia/examples/electron

@msujew msujew merged commit 725a7d2 into master Jan 24, 2024
14 checks passed
@msujew msujew deleted the msujew/vscode-env-appRoot branch January 24, 2024 15:26
@github-actions github-actions bot added this to the 1.46.0 milestone Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode issues related to VSCode compatibility
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

plugin: add proper support for appRoot
3 participants