@@ -40,6 +40,24 @@ it.layer(NodeServices.layer)("resolveEditorLaunch", (it) => {
4040 args : [ "/tmp/workspace" ] ,
4141 } ) ;
4242
43+ const vscodeInsidersLaunch = yield * resolveEditorLaunch (
44+ { cwd : "/tmp/workspace" , editor : "vscode-insiders" } ,
45+ "darwin" ,
46+ ) ;
47+ assert . deepEqual ( vscodeInsidersLaunch , {
48+ command : "code-insiders" ,
49+ args : [ "/tmp/workspace" ] ,
50+ } ) ;
51+
52+ const vscodiumLaunch = yield * resolveEditorLaunch (
53+ { cwd : "/tmp/workspace" , editor : "vscodium" } ,
54+ "darwin" ,
55+ ) ;
56+ assert . deepEqual ( vscodiumLaunch , {
57+ command : "codium" ,
58+ args : [ "/tmp/workspace" ] ,
59+ } ) ;
60+
4361 const zedLaunch = yield * resolveEditorLaunch (
4462 { cwd : "/tmp/workspace" , editor : "zed" } ,
4563 "darwin" ,
@@ -80,6 +98,24 @@ it.layer(NodeServices.layer)("resolveEditorLaunch", (it) => {
8098 args : [ "--goto" , "/tmp/workspace/src/open.ts:71:5" ] ,
8199 } ) ;
82100
101+ const vscodeInsidersLineAndColumn = yield * resolveEditorLaunch (
102+ { cwd : "/tmp/workspace/src/open.ts:71:5" , editor : "vscode-insiders" } ,
103+ "darwin" ,
104+ ) ;
105+ assert . deepEqual ( vscodeInsidersLineAndColumn , {
106+ command : "code-insiders" ,
107+ args : [ "--goto" , "/tmp/workspace/src/open.ts:71:5" ] ,
108+ } ) ;
109+
110+ const vscodiumLineAndColumn = yield * resolveEditorLaunch (
111+ { cwd : "/tmp/workspace/src/open.ts:71:5" , editor : "vscodium" } ,
112+ "darwin" ,
113+ ) ;
114+ assert . deepEqual ( vscodiumLineAndColumn , {
115+ command : "codium" ,
116+ args : [ "--goto" , "/tmp/workspace/src/open.ts:71:5" ] ,
117+ } ) ;
118+
83119 const zedLineAndColumn = yield * resolveEditorLaunch (
84120 { cwd : "/tmp/workspace/src/open.ts:71:5" , editor : "zed" } ,
85121 "darwin" ,
@@ -220,13 +256,14 @@ it.layer(NodeServices.layer)("resolveAvailableEditors", (it) => {
220256 const path = yield * Path . Path ;
221257 const dir = yield * fs . makeTempDirectoryScoped ( { prefix : "t3-editors-" } ) ;
222258
223- yield * fs . writeFileString ( path . join ( dir , "cursor.CMD" ) , "@echo off\r\n" ) ;
259+ yield * fs . writeFileString ( path . join ( dir , "code-insiders.CMD" ) , "@echo off\r\n" ) ;
260+ yield * fs . writeFileString ( path . join ( dir , "codium.CMD" ) , "@echo off\r\n" ) ;
224261 yield * fs . writeFileString ( path . join ( dir , "explorer.CMD" ) , "MZ" ) ;
225262 const editors = resolveAvailableEditors ( "win32" , {
226263 PATH : dir ,
227264 PATHEXT : ".COM;.EXE;.BAT;.CMD" ,
228265 } ) ;
229- assert . deepEqual ( editors , [ "cursor " , "file-manager" ] ) ;
266+ assert . deepEqual ( editors , [ "vscode-insiders" , "vscodium ", "file-manager" ] ) ;
230267 } ) ,
231268 ) ;
232269} ) ;
0 commit comments