@@ -42,6 +42,16 @@ it.layer(NodeServices.layer)("resolveEditorLaunch", (it) => {
4242 args : [ "/tmp/workspace" ] ,
4343 } ) ;
4444
45+ const kiroLaunch = yield * resolveEditorLaunch (
46+ { cwd : "/tmp/workspace" , editor : "kiro" } ,
47+ "darwin" ,
48+ { PATH : "" } ,
49+ ) ;
50+ assert . deepEqual ( kiroLaunch , {
51+ command : "kiro" ,
52+ args : [ "ide" , "/tmp/workspace" ] ,
53+ } ) ;
54+
4555 const vscodeLaunch = yield * resolveEditorLaunch (
4656 { cwd : "/tmp/workspace" , editor : "vscode" } ,
4757 "darwin" ,
@@ -122,6 +132,16 @@ it.layer(NodeServices.layer)("resolveEditorLaunch", (it) => {
122132 args : [ "--goto" , "/tmp/workspace/src/open.ts:71:5" ] ,
123133 } ) ;
124134
135+ const kiroLineAndColumn = yield * resolveEditorLaunch (
136+ { cwd : "/tmp/workspace/src/open.ts:71:5" , editor : "kiro" } ,
137+ "darwin" ,
138+ { PATH : "" } ,
139+ ) ;
140+ assert . deepEqual ( kiroLineAndColumn , {
141+ command : "kiro" ,
142+ args : [ "ide" , "--goto" , "/tmp/workspace/src/open.ts:71:5" ] ,
143+ } ) ;
144+
125145 const vscodeLineAndColumn = yield * resolveEditorLaunch (
126146 { cwd : "/tmp/workspace/src/open.ts:71:5" , editor : "vscode" } ,
127147 "darwin" ,
@@ -354,14 +374,15 @@ it.layer(NodeServices.layer)("resolveAvailableEditors", (it) => {
354374 const dir = yield * fs . makeTempDirectoryScoped ( { prefix : "marcode-editors-" } ) ;
355375
356376 yield * fs . writeFileString ( path . join ( dir , "trae.CMD" ) , "@echo off\r\n" ) ;
377+ yield * fs . writeFileString ( path . join ( dir , "kiro.CMD" ) , "@echo off\r\n" ) ;
357378 yield * fs . writeFileString ( path . join ( dir , "code-insiders.CMD" ) , "@echo off\r\n" ) ;
358379 yield * fs . writeFileString ( path . join ( dir , "codium.CMD" ) , "@echo off\r\n" ) ;
359380 yield * fs . writeFileString ( path . join ( dir , "explorer.CMD" ) , "MZ" ) ;
360381 const editors = resolveAvailableEditors ( "win32" , {
361382 PATH : dir ,
362383 PATHEXT : ".COM;.EXE;.BAT;.CMD" ,
363384 } ) ;
364- assert . deepEqual ( editors , [ "trae" , "vscode-insiders" , "vscodium" , "file-manager" ] ) ;
385+ assert . deepEqual ( editors , [ "trae" , "kiro" , " vscode-insiders", "vscodium" , "file-manager" ] ) ;
365386 } ) ,
366387 ) ;
367388
0 commit comments