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