提交 159509fd 编写于 作者: S Sofian Hnaide

bring back version to prevent breaking change to the api

上级 2f8e5840
......@@ -9,12 +9,12 @@
declare namespace vscode {
export const env: {
/**
* The version of the editor.
*/
version: string;
/**
* The version of the editor.
*/
export var version: string;
export const env: {
/**
* locale, like de-ch, en-us
*/
......
......@@ -57,6 +57,7 @@ export class ExtHostAPIImplementation {
private _pluginService: IPluginService;
private _telemetryService: ITelemetryService;
version: typeof vscode.version;
env: typeof vscode.env;
Uri: typeof vscode.Uri;
Location: typeof vscode.Location;
......@@ -102,9 +103,9 @@ export class ExtHostAPIImplementation {
this._telemetryService = telemetryService;
this._proxy = threadService.getRemotable(MainProcessVSCodeAPIHelper);
this.version = contextService.getConfiguration().env.version;
this._telemetryService.getTelemetryInfo().then((info) => {
this.env = {
version:contextService.getConfiguration().env.version,
machineId: info.machineId,
sessionId: info.sessionId,
locale: null
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册