mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
status - push proposed API for statusbar id/name and adopt
This commit is contained in:
@@ -23,7 +23,12 @@ class ExcludeHintItem {
|
||||
constructor(
|
||||
private readonly telemetryReporter: TelemetryReporter
|
||||
) {
|
||||
this._item = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 98 /* to the right of typescript version status (99) */);
|
||||
this._item = vscode.window.createStatusBarItem({
|
||||
id: 'status.typescript.exclude',
|
||||
name: localize('statusExclude', "TypeScript: Configure Excludes"),
|
||||
alignment: vscode.StatusBarAlignment.Right,
|
||||
priority: 98 /* to the right of typescript version status (99) */
|
||||
});
|
||||
this._item.command = 'js.projectStatus.command';
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@ import * as vscode from 'vscode';
|
||||
import * as languageModeIds from './languageModeIds';
|
||||
import { TypeScriptVersion } from './versionProvider';
|
||||
import { Disposable } from './dispose';
|
||||
import * as nls from 'vscode-nls';
|
||||
|
||||
const localize = nls.loadMessageBundle();
|
||||
|
||||
export default class VersionStatus extends Disposable {
|
||||
private readonly _versionBarEntry: vscode.StatusBarItem;
|
||||
@@ -15,7 +18,12 @@ export default class VersionStatus extends Disposable {
|
||||
private readonly _normalizePath: (resource: vscode.Uri) => string | undefined
|
||||
) {
|
||||
super();
|
||||
this._versionBarEntry = this._register(vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 99 /* to the right of editor status (100) */));
|
||||
this._versionBarEntry = this._register(vscode.window.createStatusBarItem({
|
||||
id: 'status.typescript.version',
|
||||
name: localize('typescriptVersion', "TypeScript: Version"),
|
||||
alignment: vscode.StatusBarAlignment.Right,
|
||||
priority: 99 /* to the right of editor status (100) */
|
||||
}));
|
||||
vscode.window.onDidChangeActiveTextEditor(this.showHideStatus, this, this._disposables);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user