Current section
29 Versions
Jump to
Current section
29 Versions
Compare versions
3
files changed
+10
additions
-3
deletions
| @@ -23,4 +23,4 @@ | |
| 23 23 | {<<"optional">>,false}, |
| 24 24 | {<<"repository">>,<<"hexpm">>}, |
| 25 25 | {<<"requirement">>,<<"~> 0.2.1">>}]]}. |
| 26 | - {<<"version">>,<<"0.2.2">>}. |
| 26 | + {<<"version">>,<<"0.2.3">>}. |
| @@ -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 |
| @@ -5,7 +5,7 @@ defmodule NextLS.MixProject do | |
| 5 5 | [ |
| 6 6 | app: :next_ls, |
| 7 7 | description: "The langauge server for Elixir that just works", |
| 8 | - version: "0.2.2", |
| 8 | + version: "0.2.3", |
| 9 9 | elixir: "~> 1.13", |
| 10 10 | start_permanent: Mix.env() == :prod, |
| 11 11 | package: package(), |