Skip to content

Commit

Permalink
anounce once debug console and output get cleared via actions
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jul 24, 2018
1 parent ca4f1be commit 46f0f8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/parts/debug/browser/debugActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as lifecycle from 'vs/base/common/lifecycle';
import { TPromise } from 'vs/base/common/winjs.base';
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
import { ICommandService } from 'vs/platform/commands/common/commands';
import * as aria from 'vs/base/browser/ui/aria/aria';
import { IWorkspaceContextService, WorkbenchState } from 'vs/platform/workspace/common/workspace';
import { IFileService } from 'vs/platform/files/common/files';
import { IDebugService, State, ISession, IThread, IEnablement, IBreakpoint, IStackFrame, REPL_ID, SessionState }
Expand Down Expand Up @@ -691,6 +692,7 @@ export class ClearReplAction extends AbstractDebugAction {

public run(): TPromise<any> {
this.debugService.removeReplExpressions();
aria.status(nls.localize('debugConsoleCleared', "Debug console was cleared"));

// focus back to repl
return this.panelService.openPanel(REPL_ID, true);
Expand Down
2 changes: 2 additions & 0 deletions src/vs/workbench/parts/output/browser/outputActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import { TPromise } from 'vs/base/common/winjs.base';
import * as nls from 'vs/nls';
import * as aria from 'vs/base/browser/ui/aria/aria';
import { IAction, Action } from 'vs/base/common/actions';
import { IOutputService, OUTPUT_PANEL_ID, IOutputChannelRegistry, Extensions as OutputExt, IOutputChannelIdentifier, COMMAND_OPEN_LOG_VIEWER } from 'vs/workbench/parts/output/common/output';
import { SelectActionItem } from 'vs/base/browser/ui/actionbar/actionbar';
Expand Down Expand Up @@ -49,6 +50,7 @@ export class ClearOutputAction extends Action {

public run(): TPromise<boolean> {
this.outputService.getActiveChannel().clear();
aria.status(nls.localize('outputCleared', "Output was cleared"));

return TPromise.as(true);
}
Expand Down

0 comments on commit 46f0f8b

Please sign in to comment.