@@ -74,7 +74,7 @@ import rego.v1
74
74
75
75
barURI := fileURIScheme + filepath .Join (tempDir , "bar.rego" )
76
76
77
- err = connClient .Call (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
77
+ err = connClient .Notify (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
78
78
TextDocument : types.TextDocumentIdentifier {
79
79
URI : barURI ,
80
80
},
@@ -111,7 +111,7 @@ import rego.v1
111
111
112
112
fooURI := fileURIScheme + filepath .Join (tempDir , "foo.rego" )
113
113
114
- err = connClient .Call (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
114
+ err = connClient .Notify (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
115
115
TextDocument : types.TextDocumentIdentifier {
116
116
URI : fooURI ,
117
117
},
@@ -249,7 +249,7 @@ import data.quz
249
249
}
250
250
251
251
// 2. check the aggregates for a file are updated after an update
252
- err = connClient .Call (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
252
+ err = connClient .Notify (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
253
253
TextDocument : types.TextDocumentIdentifier {
254
254
URI : fileURIScheme + filepath .Join (tempDir , "bar.rego" ),
255
255
},
@@ -355,7 +355,7 @@ import rego.v1
355
355
// update the contents of the bar.rego file to address the unresolved-import
356
356
barURI := fileURIScheme + filepath .Join (tempDir , "bar.rego" )
357
357
358
- err = connClient .Call (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
358
+ err = connClient .Notify (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
359
359
TextDocument : types.TextDocumentIdentifier {
360
360
URI : barURI ,
361
361
},
@@ -397,7 +397,7 @@ import rego.v1
397
397
}
398
398
399
399
// update the contents of the bar.rego to bring back the violation
400
- err = connClient .Call (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
400
+ err = connClient .Notify (ctx , "textDocument/didChange" , types.TextDocumentDidChangeParams {
401
401
TextDocument : types.TextDocumentIdentifier {
402
402
URI : barURI ,
403
403
},
0 commit comments