File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
cli/src/main/scala/scala/cli/commands
integration/src/test/scala/scala/cli/integration Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,11 @@ object SetupIde extends ScalaCommand[SetupIdeOptions] {
116
116
}
117
117
118
118
val inputArgs = inputs.elements.collect {
119
- case d : Inputs .OnDisk => d.path.toString
119
+ case d : Inputs .OnDisk =>
120
+ val path = d.path
121
+ if (os.isFile(path))
122
+ path.toString().stripSuffix(s " ${path.last}" )
123
+ else path.toString
120
124
}
121
125
122
126
val bspArgs =
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ abstract class BspTestDefinitions(val scalaVersionOpt: Option[String])
225
225
" bsp" ,
226
226
" --json-options" ,
227
227
(root / " directory" / " .scala" / " ide-options.json" ).toString,
228
- (root / " directory" / " simple.sc " ).toString
228
+ s " ${ (root / " directory" ).toString} / "
229
229
)
230
230
expect(details.argv == expectedArgv)
231
231
}
You can’t perform that action at this time.
0 commit comments