@@ -30,6 +30,7 @@ import { WorkspaceChange, WorkspaceObserver } from './workspaceObserver';
30
30
import { registerTerminalLinkProvider } from './terminalLinkProvider' ;
31
31
import { RunHooks , TestConfig } from './playwrightTestTypes' ;
32
32
import { ansi2html } from './ansi2html' ;
33
+ import { LocatorsView } from './locatorsView' ;
33
34
34
35
const stackUtils = new StackUtils ( {
35
36
cwd : '/ensure_absolute_paths'
@@ -69,6 +70,7 @@ export class Extension implements RunHooks {
69
70
private _reusedBrowser : ReusedBrowser ;
70
71
private _settingsModel : SettingsModel ;
71
72
private _settingsView ! : SettingsView ;
73
+ private _locatorsView ! : LocatorsView ;
72
74
private _diagnostics : vscodeTypes . DiagnosticCollection ;
73
75
private _treeItemObserver : TreeItemObserver ;
74
76
private _runProfile : vscodeTypes . TestRunProfile ;
@@ -149,6 +151,7 @@ export class Extension implements RunHooks {
149
151
async activate ( ) {
150
152
const vscode = this . _vscode ;
151
153
this . _settingsView = new SettingsView ( vscode , this . _settingsModel , this . _models , this . _reusedBrowser , this . _context . extensionUri ) ;
154
+ this . _locatorsView = new LocatorsView ( vscode , this . _reusedBrowser , this . _context . extensionUri ) ;
152
155
const messageNoPlaywrightTestsFound = this . _vscode . l10n . t ( 'No Playwright tests found.' ) ;
153
156
this . _disposables = [
154
157
this . _debugHighlight ,
@@ -232,6 +235,7 @@ export class Extension implements RunHooks {
232
235
this . _models . onUpdated ( ( ) => this . _modelsUpdated ( ) ) ,
233
236
this . _treeItemObserver . onTreeItemSelected ( item => this . _treeItemSelected ( item ) ) ,
234
237
this . _settingsView ,
238
+ this . _locatorsView ,
235
239
this . _testController ,
236
240
this . _runProfile ,
237
241
this . _debugProfile ,
0 commit comments