mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-13 15:35:20 +01:00
outputServices: null guard
This commit is contained in:
@@ -167,7 +167,7 @@ export class OutputService implements IOutputService {
|
||||
this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel, StorageScope.WORKSPACE);
|
||||
|
||||
return this.panelService.openPanel(OUTPUT_PANEL_ID, !preserveFocus).then((outputPanel: OutputPanel) => {
|
||||
return outputPanel.setInput(OutputEditorInput.getInstance(this.instantiationService, channel), EditorOptions.create({ preserveFocus: preserveFocus })).
|
||||
return outputPanel && outputPanel.setInput(OutputEditorInput.getInstance(this.instantiationService, channel), EditorOptions.create({ preserveFocus: preserveFocus })).
|
||||
then(() => outputPanel);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user