-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add missing vscode api in env namespace #11446
Add missing vscode api in env namespace #11446
Conversation
Added appHost, isNewAppInstall, isTelemetryEnabled, onDidChangeTelemetryEnabled, and remoteName API to our missing vscode API implementation. For isNewAppInstall, we use the creation date of a random theia file as installation date. Moreover, since theia doesn't support telemetry, we implemented stubs for the API related to telemetry.
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.
@yiningwang11 Thank you for your first contribution!
Please make sure to sign the ECA with the same email as your commit in order for us to accept your changes.
packages/plugin-ext/src/hosted/browser/worker/worker-env-ext.ts
Outdated
Show resolved
Hide resolved
…se to keep compatibility with vscode.
@yiningwang11 Is this ready for a re-review? I see that the ECA succeeds now. |
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.
The changes look good to me and work well 👍
I confirm for both the browser and electron the values are correct.
@vince-fugnitto : Can we merge this for the release still? |
@JonasHelming the changes were low risk enough to be merged in our opinion, yes :) |
What it does
Fixes: #10662
The pull-request adds support for the
env
namespace according to the vscode API:appHost
isNewAppInstall
isTelemetryEnabled
onDidChangeTelemetryEnabled
removeName
How to test
Using the electron app, notifications indicating the value of those APIs would pop up.The appHost is set to 'desktop', the remoteName is set to 'undefined'. For isNewAppInstall, we use the creation date of a random theia file as the installation date. Moreover, since theia doesn't support telemetry, we implemented stubs for the API related to telemetry. The isTelemetryEnabled API is set to false. The onDidChangeTelemetryEnabled always fires an empty event.
Review checklist
Reminder for reviewers