hide message bar when quick open shows
This commit is contained in:
parent
8f28a80ba8
commit
14c5007e2b
2 changed files with 15 additions and 0 deletions
|
@ -297,6 +297,18 @@ export class MessageList {
|
|||
this.hideMessage();
|
||||
}
|
||||
|
||||
public show(): void {
|
||||
if (this.messageListContainer && this.messageListContainer.isHidden()) {
|
||||
this.messageListContainer.show();
|
||||
}
|
||||
}
|
||||
|
||||
public hide(): void {
|
||||
if (this.messageListContainer && !this.messageListContainer.isHidden()) {
|
||||
this.messageListContainer.hide();
|
||||
}
|
||||
}
|
||||
|
||||
private hideMessage(messageText?: string): void;
|
||||
private hideMessage(messageObj?: any): void {
|
||||
let messageFound = false;
|
||||
|
|
|
@ -23,6 +23,7 @@ interface IBufferedMessage {
|
|||
}
|
||||
|
||||
export class WorkbenchMessageService implements IMessageService {
|
||||
|
||||
public static GLOBAL_MESSAGES_SHOWING_CONTEXT = 'globalMessageVisible';
|
||||
|
||||
public serviceId = IMessageService;
|
||||
|
@ -74,10 +75,12 @@ export class WorkbenchMessageService implements IMessageService {
|
|||
|
||||
private onQuickOpenShowing(): void {
|
||||
this.canShowMessages = false; // when quick open is open, dont show messages behind
|
||||
this.handler.hide(); // hide messages when quick open is visible
|
||||
}
|
||||
|
||||
private onQuickOpenHiding(): void {
|
||||
this.canShowMessages = true;
|
||||
this.handler.show(); // make sure the handler is visible
|
||||
|
||||
// Release messages from buffer
|
||||
while (this.messageBuffer.length) {
|
||||
|
|
Loading…
Reference in a new issue