|
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 |
| - |
11 | 2 | alias ElixirSense.Core.State.Env
|
12 | 3 |
|
13 | 4 | @struct_keys [:line, :name, :body_scope_id]
|
@@ -68,13 +59,22 @@ defmodule TestBlock do
|
68 | 59 | end
|
69 | 60 |
|
70 | 61 | defmodule ElixirLS.LanguageServer.Providers.CodeLens.Test do
|
| 62 | + @moduledoc """ |
| 63 | + Identifies test execution targets and provides code lenses for automatically executing them. |
| 64 | +
|
| 65 | + Supports the following execution targets: |
| 66 | + * Test modules (any module that imports ExUnit.Case) |
| 67 | + * Describe blocks (any call to describe/2 inside a test module) |
| 68 | + * Test blocks (any call to test/2 or test/3 inside a test module) |
| 69 | + """ |
| 70 | + |
71 | 71 | alias ElixirLS.LanguageServer.Providers.CodeLens
|
72 | 72 | alias ElixirLS.LanguageServer.SourceFile
|
73 | 73 | alias ElixirSense.Core.Parser
|
74 | 74 | alias ElixirSense.Core.Metadata
|
75 | 75 | alias ElixirSense.Core.State.Env
|
76 | 76 |
|
77 |
| - @run_test_command "elixir.test.run" |
| 77 | + @run_test_command "elixir.lens.test.run" |
78 | 78 |
|
79 | 79 | def code_lens(uri, text) do
|
80 | 80 | with {:ok, buffer_file_metadata} <- parse_source(text) do
|
|
0 commit comments