File tree 3 files changed +16
-4
lines changed
src/vs/workbench/contrib/terminal/browser
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import { dispose , toDisposable } from 'vs/base/common/lifecycle' ;
7
7
import { URI } from 'vs/base/common/uri' ;
8
- import { IEditorInput } from 'vs/workbench/common/editor' ;
8
+ import { IEditorInput , IUntypedEditorInput } from 'vs/workbench/common/editor' ;
9
9
import { IThemeService , ThemeIcon } from 'vs/platform/theme/common/themeService' ;
10
10
import { EditorInput } from 'vs/workbench/common/editor/editorInput' ;
11
11
import { ITerminalInstance , ITerminalInstanceService } from 'vs/workbench/contrib/terminal/browser/terminal' ;
@@ -194,4 +194,15 @@ export class TerminalEditorInput extends EditorInput {
194
194
this . _isDetached = true ;
195
195
}
196
196
}
197
+
198
+ public override toUntyped ( ) : IUntypedEditorInput {
199
+ return {
200
+ resource : this . resource ,
201
+ options : {
202
+ override : TerminalEditor . ID ,
203
+ pinned : true ,
204
+ forceReload : true
205
+ }
206
+ } ;
207
+ }
197
208
}
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ export class TerminalEditorService extends Disposable implements ITerminalEditor
162
162
const resource = this . resolveResource ( instance ) ;
163
163
if ( resource ) {
164
164
await this . _editorService . openEditor ( {
165
- resource : URI . revive ( resource ) ,
165
+ resource,
166
166
options :
167
167
{
168
168
pinned : true ,
Original file line number Diff line number Diff line change @@ -200,13 +200,14 @@ export class TerminalService implements ITerminalService {
200
200
}
201
201
}
202
202
const resolvedResource = this . _terminalEditorService . resolveResource ( instance || resource ) ;
203
- const editor = this . _terminalEditorService . getInputFromResource ( resolvedResource ) || { editor : URI . revive ( resolvedResource ) } ;
203
+ const editor = this . _terminalEditorService . getInputFromResource ( resolvedResource ) || { editor : resolvedResource } ;
204
204
return {
205
205
editor,
206
206
options : {
207
207
...options ,
208
208
pinned : true ,
209
- forceReload : true
209
+ forceReload : true ,
210
+ override : TerminalEditor . ID
210
211
}
211
212
} ;
212
213
} ) ;
You can’t perform that action at this time.
0 commit comments