File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ defmodule NextLS do
148
148
149
149
@ impl true
150
150
def handle_notification ( % Initialized { } , lsp ) do
151
- GenLSP . log ( lsp , "[NextLS] LSP Initialized !" )
151
+ GenLSP . log ( lsp , "[NextLS] NextLS v #{ version ( ) } has initialized !" )
152
152
153
153
working_dir = URI . parse ( lsp . assigns . root_uri ) . path
154
154
@@ -381,4 +381,11 @@ defmodule NextLS do
381
381
|> Base . url_encode64 ( padding: false )
382
382
|> binary_part ( 0 , 8 )
383
383
end
384
+
385
+ defp version ( ) do
386
+ case :application . get_key ( :next_ls , :vsn ) do
387
+ { :ok , version } -> to_string ( version )
388
+ _ -> "dev"
389
+ end
390
+ end
384
391
end
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ defmodule NextLSTest do
124
124
} )
125
125
126
126
assert_notification "window/logMessage" , % {
127
- "message" => "[NextLS] LSP Initialized!" ,
127
+ "message" => "[NextLS] NextLS v" <> _ ,
128
128
"type" => 4
129
129
}
130
130
You can’t perform that action at this time.
0 commit comments