Skip to content

Commit bd4ab86

Browse files
authored
status - partially restore locations (microsoft#242180)
1 parent 153a3fa commit bd4ab86

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/vs/workbench/browser/parts/editor/editorStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ class ShowCurrentMarkerInStatusbarContribution extends Disposable {
994994
const line = splitLines(this.currentMarker.message)[0];
995995
const text = `${this.getType(this.currentMarker)} ${line}`;
996996
if (!this.statusBarEntryAccessor.value) {
997-
this.statusBarEntryAccessor.value = this.statusbarService.addEntry({ name: localize('currentProblem', "Current Problem"), text, ariaLabel: text }, 'statusbar.currentProblem', StatusbarAlignment.LEFT, { location: { id: 'status.problems', priority: 50 }, alignment: StatusbarAlignment.RIGHT });
997+
this.statusBarEntryAccessor.value = this.statusbarService.addEntry({ name: localize('currentProblem', "Current Problem"), text, ariaLabel: text }, 'statusbar.currentProblem', StatusbarAlignment.LEFT);
998998
} else {
999999
this.statusBarEntryAccessor.value.update({ name: localize('currentProblem', "Current Problem"), text, ariaLabel: text });
10001000
}

src/vs/workbench/common/notifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface INotificationsModel {
2929
//#endregion
3030

3131

32-
//#region Notifications as Status
32+
//#region Notifications as Status
3333

3434
readonly statusMessage: IStatusMessageViewItem | undefined;
3535

src/vs/workbench/services/progress/browser/progressService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class ProgressService extends Disposable implements IProgressService {
190190
if (this.windowProgressStatusEntry) {
191191
this.windowProgressStatusEntry.update(statusEntryProperties);
192192
} else {
193-
this.windowProgressStatusEntry = this.statusbarService.addEntry(statusEntryProperties, 'status.progress', StatusbarAlignment.LEFT, Number.NEGATIVE_INFINITY /* last entry */);
193+
this.windowProgressStatusEntry = this.statusbarService.addEntry(statusEntryProperties, 'status.progress', StatusbarAlignment.LEFT, -Number.MAX_VALUE /* almost last entry */);
194194
}
195195
}
196196

0 commit comments

Comments
 (0)