notifications - better status bar alignment

This commit is contained in:
Benjamin Pasero
2018-02-15 07:48:42 +01:00
parent f208dc523b
commit 32018e28c1
8 changed files with 22 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ class ExcludeHintItem {
constructor(
private readonly telemetryReporter: TelemetryReporter
) {
this._item = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, Number.MIN_VALUE);
this._item = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 98 /* to the right of typescript version status (99) */);
this._item.command = 'js.projectStatus.command';
}

View File

@@ -14,7 +14,7 @@ export default class VersionStatus {
constructor(
private readonly normalizePath: (resource: vscode.Uri) => string | null
) {
this.versionBarEntry = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, Number.MIN_VALUE);
this.versionBarEntry = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 99 /* to the right of editor status (100) */);
this.onChangeEditorSub = vscode.window.onDidChangeActiveTextEditor(this.showHideStatus, this);
}