File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,8 @@ export class TerminalMainContribution extends Disposable implements IWorkbenchCo
61
61
terminalGroupService : ITerminalGroupService ,
62
62
terminalInstanceService : ITerminalInstanceService
63
63
) {
64
- // Defer this for the local case only. This is important for the
65
- // window.createTerminal web embedder API to work before the workbench
66
- // is loaded on remote
67
- if ( workbenchEnvironmentService . remoteAuthority === undefined ) {
68
- await lifecycleService . when ( LifecyclePhase . Restored ) ;
69
- }
70
-
64
+ // IMPORTANT: This listener needs to be set up before the workbench is ready to support
65
+ // embedder terminals.
71
66
this . _register ( embedderTerminalService . onDidCreateTerminal ( async embedderTerminal => {
72
67
const terminal = await terminalService . createTerminal ( {
73
68
config : embedderTerminal ,
You can’t perform that action at this time.
0 commit comments