File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/test/groovy/nextflow/lsp Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ class TestUtils {
4444 * Get a language service instance for Nextflow scripts.
4545 */
4646 static ScriptService getScriptService () {
47- def service = new ScriptService ()
47+ def service = new ScriptService (workspaceRoot . toUri() . toString() )
4848 def configuration = LanguageServerConfiguration . defaults()
4949 service. connect(new TestLanguageClient ())
50- service. initialize(workspaceRoot . toUri() . toString(), configuration)
50+ service. initialize(configuration)
5151 // skip workspace scan
5252 open(service, getUri(' main.nf' ), ' ' )
5353 service. updateNow()
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ class ConfigFormattingTest extends Specification {
4747 if ( ! Files . exists(workspaceRoot) )
4848 workspaceRoot. toFile(). mkdirs()
4949
50- def service = new ConfigService ()
50+ def service = new ConfigService (workspaceRoot . toUri() . toString() )
5151 def configuration = LanguageServerConfiguration . defaults()
5252 service. connect(new TestLanguageClient ())
53- service. initialize(workspaceRoot . toUri() . toString(), configuration)
53+ service. initialize(configuration)
5454
5555 when :
5656 def filePath = workspaceRoot. resolve(' nextflow.config' )
You can’t perform that action at this time.
0 commit comments