close
The Wayback Machine - https://web.archive.org/web/20250204153150/https://github.com/Microsoft/vscode/pull/2136
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

Adding a global Env to the extension API #2136

Merged
merged 3 commits into from
Jan 21, 2016
Merged

Adding a global Env to the extension API #2136

merged 3 commits into from
Jan 21, 2016

Conversation

sofianhn
Copy link

This will add a global Env variable that can contain information about VSCode.

The Evn variable for now contains:

  • Version
  • Machine Id.
  • Session Id.
  • Locale (to be implemented).

/**
* The version of the editor.
*/
export var version: string;
Copy link
Member

Choose a reason for hiding this comment

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

that is API breakage which we cannot do

@sofianhn
Copy link
Author

Addressed feedback, merging.

sofianhn pushed a commit that referenced this pull request Jan 21, 2016
Adding a global Env to the extension API
@sofianhn sofianhn merged commit 4733c1f into microsoft:master Jan 21, 2016
this.env = {
machineId: info.machineId,
sessionId: info.sessionId,
locale: null
Copy link
Member

Choose a reason for hiding this comment

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

this is not good. either fill in or don't have it yet - i'll tackle

@dbaeumer
Copy link
Member

@sofianhn you can get to the locale in the redener using: window.navigator.language

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants