@@ -35,6 +35,7 @@ import { WebviewInput } from 'vs/workbench/contrib/webviewPanel/browser/webviewE
3535import { IWebviewWorkbenchService } from 'vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService' ;
3636import { editorGroupToColumn } from 'vs/workbench/services/editor/common/editorGroupColumn' ;
3737import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService' ;
38+ import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
3839import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService' ;
3940import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions' ;
4041import { IExtHostContext } from 'vs/workbench/services/extensions/common/extHostCustomers' ;
@@ -71,6 +72,7 @@ export class MainThreadCustomEditors extends Disposable implements extHostProtoc
7172 @IEditorGroupsService private readonly _editorGroupService : IEditorGroupsService ,
7273 @IWebviewWorkbenchService private readonly _webviewWorkbenchService : IWebviewWorkbenchService ,
7374 @IInstantiationService private readonly _instantiationService : IInstantiationService ,
75+ @IEditorService private readonly _editorService : IEditorService ,
7476 ) {
7577 super ( ) ;
7678
@@ -199,6 +201,7 @@ export class MainThreadCustomEditors extends Disposable implements extHostProtoc
199201 title : webviewInput . getTitle ( ) ,
200202 contentOptions : webviewInput . webview . contentOptions ,
201203 options : webviewInput . webview . options ,
204+ active : webviewInput === this . _editorService . activeEditor ,
202205 } , editorGroupToColumn ( this . _editorGroupService , webviewInput . group || 0 ) , cancellation ) ;
203206 } catch ( error ) {
204207 onUnexpectedError ( error ) ;
0 commit comments