@@ -35,6 +35,7 @@ import { WebviewInput } from 'vs/workbench/contrib/webviewPanel/browser/webviewE
35
35
import { IWebviewWorkbenchService } from 'vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService' ;
36
36
import { editorGroupToColumn } from 'vs/workbench/services/editor/common/editorGroupColumn' ;
37
37
import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService' ;
38
+ import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
38
39
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService' ;
39
40
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions' ;
40
41
import { IExtHostContext } from 'vs/workbench/services/extensions/common/extHostCustomers' ;
@@ -71,6 +72,7 @@ export class MainThreadCustomEditors extends Disposable implements extHostProtoc
71
72
@IEditorGroupsService private readonly _editorGroupService : IEditorGroupsService ,
72
73
@IWebviewWorkbenchService private readonly _webviewWorkbenchService : IWebviewWorkbenchService ,
73
74
@IInstantiationService private readonly _instantiationService : IInstantiationService ,
75
+ @IEditorService private readonly _editorService : IEditorService ,
74
76
) {
75
77
super ( ) ;
76
78
@@ -199,6 +201,7 @@ export class MainThreadCustomEditors extends Disposable implements extHostProtoc
199
201
title : webviewInput . getTitle ( ) ,
200
202
contentOptions : webviewInput . webview . contentOptions ,
201
203
options : webviewInput . webview . options ,
204
+ active : webviewInput === this . _editorService . activeEditor ,
202
205
} , editorGroupToColumn ( this . _editorGroupService , webviewInput . group || 0 ) , cancellation ) ;
203
206
} catch ( error ) {
204
207
onUnexpectedError ( error ) ;
0 commit comments