File tree 3 files changed +24
-7
lines changed
apps/language_server/lib/language_server/providers
3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1
1
defmodule ElixirLS.LanguageServer.Providers.CodeLens do
2
2
@ moduledoc """
3
- Collects the success typings inferred by Dialyzer, translates the syntax to Elixir, and shows them
4
- inline in the editor as @spec suggestions.
3
+ Provides different code lenses to the client.
5
4
6
- The server, unfortunately, has no way to force the client to refresh the @spec code lenses when new
7
- success typings, so we let this request block until we know we have up-to-date results from
8
- Dialyzer. We rely on the client being able to await this result while still making other requests
9
- in parallel. If the client is unable to perform requests in parallel, the client or user should
10
- disable this feature.
5
+ Supports the following code lenses:
6
+ * Suggestions for Dialyzer @spec definitions
7
+ * Shortcuts for executing tests
11
8
"""
12
9
13
10
alias ElixirLS.LanguageServer.Providers.CodeLens
Original file line number Diff line number Diff line change 1
1
defmodule DescribeBlock do
2
+ @ moduledoc """
3
+ Identifies test execution targets and provides code lenses for automatically executing them.
4
+
5
+ Supports the following execution targets:
6
+ * Test modules (any module that imports ExUnit.Case)
7
+ * Describe blocks (any call to describe/2 inside a test module)
8
+ * Test blocks (any call to test/2 or test/3 inside a test module)
9
+ """
10
+
2
11
alias ElixirSense.Core.State.Env
3
12
4
13
@ struct_keys [ :line , :name , :body_scope_id ]
Original file line number Diff line number Diff line change 1
1
defmodule ElixirLS.LanguageServer.Providers.CodeLens.TypeSpec do
2
+ @ moduledoc """
3
+ Collects the success typings inferred by Dialyzer, translates the syntax to Elixir, and shows them
4
+ inline in the editor as @spec suggestions.
5
+
6
+ The server, unfortunately, has no way to force the client to refresh the @spec code lenses when new
7
+ success typings, so we let this request block until we know we have up-to-date results from
8
+ Dialyzer. We rely on the client being able to await this result while still making other requests
9
+ in parallel. If the client is unable to perform requests in parallel, the client or user should
10
+ disable this feature.
11
+ """
12
+
2
13
alias ElixirLS.LanguageServer.Providers.CodeLens
3
14
alias ElixirLS.LanguageServer . { Server , SourceFile }
4
15
alias Erl2ex.Convert . { Context , ErlForms }
You can’t perform that action at this time.
0 commit comments