File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
[
2
2
{ "lib/next_ls/lsp_supervisor.ex" , :exact_eq } ,
3
- { "lib/next_ls/runtime.ex" , :exact_eq }
3
+ { "lib/next_ls/runtime.ex" , :exact_eq } ,
4
+ { "lib/next_ls/progress.ex" , :pattern_match }
4
5
]
Original file line number Diff line number Diff line change 1
1
defmodule NextLS.Progress do
2
2
@ moduledoc false
3
+ @ env Mix . env ( )
3
4
def start ( lsp , token , msg ) do
5
+ # FIXME: gen_lsp should allow stubbing requests so we don't have to
6
+ # set this in every test. For now, don't send it in the test env
7
+ if @ env != :test do
8
+ GenLSP . request ( lsp , % GenLSP.Requests.WindowWorkDoneProgressCreate {
9
+ id: System . unique_integer ( [ :positive ] ) ,
10
+ params: % GenLSP.Structures.WorkDoneProgressCreateParams {
11
+ token: token
12
+ }
13
+ } )
14
+ end
15
+
4
16
GenLSP . notify ( lsp , % GenLSP.Notifications.DollarProgress {
5
17
params: % GenLSP.Structures.ProgressParams {
6
18
token: token ,
You can’t perform that action at this time.
0 commit comments