@@ -10,7 +10,7 @@ import { Event, EventEmitter, ViewColumn } from 'vscode';
1010import { traceInfo } from '../../../client/common/logger' ;
1111import { createDeferred } from '../../../client/common/utils/async' ;
1212import { IApplicationShell , IWebPanelProvider , IWorkspaceService } from '../../common/application/types' ;
13- import { EXTENSION_ROOT_DIR } from '../../common/constants' ;
13+ import { EXTENSION_ROOT_DIR , UseCustomEditorApi } from '../../common/constants' ;
1414import { WebHostNotebook } from '../../common/experimentGroups' ;
1515import { traceError } from '../../common/logger' ;
1616import { IFileSystem } from '../../common/platform/types' ;
@@ -35,7 +35,8 @@ export class PlotViewer extends WebViewHost<IPlotViewerMapping> implements IPlot
3535 @inject ( IWorkspaceService ) workspaceService : IWorkspaceService ,
3636 @inject ( IApplicationShell ) private applicationShell : IApplicationShell ,
3737 @inject ( IFileSystem ) private fileSystem : IFileSystem ,
38- @inject ( IExperimentsManager ) experimentsManager : IExperimentsManager
38+ @inject ( IExperimentsManager ) experimentsManager : IExperimentsManager ,
39+ @inject ( UseCustomEditorApi ) useCustomEditorApi : boolean
3940 ) {
4041 super (
4142 configuration ,
@@ -48,7 +49,8 @@ export class PlotViewer extends WebViewHost<IPlotViewerMapping> implements IPlot
4849 [ path . join ( plotDir , 'commons.initial.bundle.js' ) , path . join ( plotDir , 'plotViewer.js' ) ] ,
4950 localize . DataScience . plotViewerTitle ( ) ,
5051 ViewColumn . One ,
51- experimentsManager . inExperiment ( WebHostNotebook . experiment )
52+ experimentsManager . inExperiment ( WebHostNotebook . experiment ) ,
53+ useCustomEditorApi
5254 ) ;
5355 // Load the web panel using our current directory as we don't expect to load any other files
5456 super . loadWebPanel ( process . cwd ( ) ) . catch ( traceError ) ;
0 commit comments