@@ -91,7 +91,7 @@ let server: ChildProcess | undefined;
9191let endpoint : string | undefined ;
9292let workspacePath : string | undefined ;
9393
94- export async function launch ( userDataDir : string , _workspacePath : string , codeServerPath = process . env . VSCODE_REMOTE_SERVER_PATH ) : Promise < void > {
94+ export async function launch ( userDataDir : string , _workspacePath : string , codeServerPath = process . env . VSCODE_REMOTE_SERVER_PATH , extPath : string ) : Promise < void > {
9595 workspacePath = _workspacePath ;
9696
9797 const agentFolder = userDataDir ;
@@ -111,7 +111,7 @@ export async function launch(userDataDir: string, _workspacePath: string, codeSe
111111 }
112112 server = spawn (
113113 serverLocation ,
114- [ '--browser' , 'none' , '--driver' , 'web' ] ,
114+ [ '--browser' , 'none' , '--driver' , 'web' , '--extensions-dir' , extPath ] ,
115115 { env }
116116 ) ;
117117 server . stderr ?. on ( 'data' , error => console . log ( `Server stderr: ${ error } ` ) ) ;
@@ -146,7 +146,8 @@ export function connect(browserType: 'chromium' | 'webkit' | 'firefox' = 'chromi
146146 const context = await browser . newContext ( ) ;
147147 const page = await context . newPage ( ) ;
148148 await page . setViewportSize ( { width, height } ) ;
149- await page . goto ( `${ endpoint } &folder=vscode-remote://localhost:9888${ URI . file ( workspacePath ! ) . path } ` ) ;
149+ const payloadParam = `[["enableProposedApi",""]]` ;
150+ await page . goto ( `${ endpoint } &folder=vscode-remote://localhost:9888${ URI . file ( workspacePath ! ) . path } &payload=${ payloadParam } ` ) ;
150151 const result = {
151152 client : { dispose : ( ) => browser . close ( ) && teardown ( ) } ,
152153 driver : buildDriver ( browser , page )
0 commit comments