-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test case for publishDiagnostic with -1 line position
- Loading branch information
1 parent
ae40661
commit 5b0dabc
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
.../language_server/test/fixtures/argument_error_in_compile/lib/argument_error_in_compile.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
defmodule ElixirLS.LanguageServer.Fixtures.BuildErrors.ArgumentErrorInCompile do | ||
# gives: | ||
# (ArgumentError) each element in tuple list has to be a {function_name :: atom, arity :: 0..255} tuple, got: [hello: 0] | ||
defoverridable [[hello: 0]] | ||
end |
11 changes: 11 additions & 0 deletions
11
apps/language_server/test/fixtures/argument_error_in_compile/mix.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
defmodule ElixirLS.LanguageServer.Fixtures.ArgumentErrorInCompile.Mixfile do | ||
use Mix.Project | ||
|
||
def project do | ||
[app: :els_argument_error_in_compile_test, version: "0.1.0"] | ||
end | ||
|
||
def application do | ||
[] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters