Skip to content

Commit 879aed9

Browse files
authored
Fix typos (#594)
1 parent 3d7d8c3 commit 879aed9

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Bug Fixes:
8787
### v0.6.3: 30 January 2021
8888

8989
Improvements:
90-
- Add support for `textDocument/implementation` ("Go to Implmentations" and "Peek Implementations") (thanks [Łukasz Samson](https://github.com/lukaszsamson)) [#415](https://github.com/elixir-lsp/elixir-ls/pull/415)
90+
- Add support for `textDocument/implementation` ("Go to Implementations" and "Peek Implementations") (thanks [Łukasz Samson](https://github.com/lukaszsamson)) [#415](https://github.com/elixir-lsp/elixir-ls/pull/415)
9191
- More specific `CompletionItemKind` for autocomplete (thanks [Jason Axelson](https://github.com/axelson)) [#419](https://github.com/elixir-lsp/elixir-ls/pull/419)
9292
- Support ASDF installed via homebrew on macOS (thanks [Fabian Stegemann](https://github.com/zetaron)) [#428](https://github.com/elixir-lsp/elixir-ls/pull/428)
9393
- Make launcher script more robust and support symlinks (thanks [Joshua Trees](https://github.com/jtrees)) [#445](https://github.com/elixir-lsp/elixir-ls/pull/445)
@@ -213,7 +213,7 @@ Changes:
213213
Bug Fixes:
214214
- Formatting was returning invalid floating point number (thanks [Thanabodee Charoenpiriyakij](https://github.com/wingyplus)) [#250](https://github.com/elixir-lsp/elixir-ls/pull/250)
215215
- Fix detection of empty hover hints (thanks [Dmitry Gutov](https://github.com/dgutov)) [#279](https://github.com/elixir-lsp/elixir-ls/pull/279)
216-
- Debugger doesn't fail when modules cannot be interpretted (thanks [Łukasz Samson](https://github.com/lukaszsamson)) (such as nifs) [#283](https://github.com/elixir-lsp/elixir-ls/pull/283)
216+
- Debugger doesn't fail when modules cannot be interpreted (thanks [Łukasz Samson](https://github.com/lukaszsamson)) (such as nifs) [#283](https://github.com/elixir-lsp/elixir-ls/pull/283)
217217
- Do not advertise `workspaceFolders` support (thanks [Jason Axelson](https://github.com/axelson)) [#298](https://github.com/elixir-lsp/elixir-ls/pull/298)
218218
- Do not try to create gitignore when project dir not set (thanks [Łukasz Samson](https://github.com/lukaszsamson)) [#306](https://github.com/elixir-lsp/elixir-ls/pull/306)
219219
- Only call DocumentSymbols (outline pane) for .ex and .exs files (thanks [Marlus Saraiva](https://github.com/msaraiva)) [#262](https://github.com/elixir-lsp/elixir-ls/pull/262)
@@ -388,7 +388,7 @@ VSCode:
388388

389389
- Fix compatibility with Elixir 1.9
390390
- Fix bug where Mix file is not reloaded on change if it had errors
391-
- Remove unneccessary empty parens from suggested specs
391+
- Remove unnecessary empty parens from suggested specs
392392
- Add 'dialyzerFormat' setting to select which warning formatter to use. Options are `"dialyzer"` (default), `"dialyxir_short"`, `"dialyxir_long"`
393393
- (VS Code) Support syntax highlighting in Phoenix LiveView (.leex) files, including ~L sigil (Thanks to @rrichardsonv)
394394
- (VS Code) Improved syntax highlighting and other automatic behavior (Thanks to @crbelaus)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ In order to debug modules in `.exs` files (such as tests), they must be specifie
117117
}
118118
```
119119

120-
In order to debug a single test or a single test file it is currently necessary to modify `taskArgs` and make sure no other tests are requred in `requireFiles`.
120+
In order to debug a single test or a single test file it is currently necessary to modify `taskArgs` and make sure no other tests are required in `requireFiles`.
121121

122122
```
123123
{
@@ -186,7 +186,7 @@ The completions include:
186186
- modules
187187
- variables
188188
- struct fields (only if the struct type is explicitly stated or can be inferred from the variable binding)
189-
- atom map keys (if map keys can be infered from variable binding)
189+
- atom map keys (if map keys can be inferred from variable binding)
190190
- attributes
191191
- types (in typespecs)
192192
- behaviour callbacks (inside the body of implementing module)

apps/elixir_ls_debugger/test/debugger_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule ElixirLS.Debugger.ServerTest do
2727
end
2828

2929
describe "initialize" do
30-
test "succeedes", %{server: server} do
30+
test "succeeds", %{server: server} do
3131
Server.receive_packet(server, initialize_req(1, %{"clientID" => "some_id"}))
3232
assert_receive(response(_, 1, "initialize", %{"supportsConfigurationDoneRequest" => true}))
3333
assert :sys.get_state(server).client_info == %{"clientID" => "some_id"}
@@ -70,15 +70,15 @@ defmodule ElixirLS.Debugger.ServerTest do
7070
end
7171

7272
describe "disconnect" do
73-
test "succeedes when not initialized", %{server: server} do
73+
test "succeeds when not initialized", %{server: server} do
7474
Process.flag(:trap_exit, true)
7575
Server.receive_packet(server, request(1, "disconnect"))
7676
assert_receive(response(_, 1, "disconnect", %{}))
7777
assert_receive({:EXIT, ^server, {:exit_code, 0}})
7878
Process.flag(:trap_exit, false)
7979
end
8080

81-
test "succeedes when initialized", %{server: server} do
81+
test "succeeds when initialized", %{server: server} do
8282
Process.flag(:trap_exit, true)
8383
Server.receive_packet(server, initialize_req(1, %{"clientID" => "some_id"}))
8484
assert_receive(response(_, 1, "initialize", %{"supportsConfigurationDoneRequest" => true}))

apps/elixir_ls_utils/test/support/mix_test.case.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ defmodule ElixirLS.Utils.MixTest.Case do
153153
end
154154

155155
def capture_log_and_io(device, fun) when is_function(fun, 0) do
156-
# Logger gets stopped during some tests so restart it to be able to capture logs (and keept the
156+
# Logger gets stopped during some tests so restart it to be able to capture logs (and kept the
157157
# test output clean)
158158
Application.ensure_started(:logger)
159159

apps/language_server/lib/language_server/server.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule ElixirLS.LanguageServer.Server do
55
This server tracks open files, attempts to rebuild the project when a file changes, and handles
66
requests from the IDE (for things like autocompletion, hover, etc.)
77
8-
Notifications from the IDE are handled synchronously, whereas requests can be handled sychronously
8+
Notifications from the IDE are handled synchronously, whereas requests can be handled synchronously
99
or asynchronously.
1010
1111
When possible, handling the request asynchronously has several advantages. The asynchronous

apps/language_server/test/providers/document_symbols_test.exs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
20232023
text = ~S[
20242024
defmodule MyModuleTest do
20252025
use ExUnit.Case
2026-
describe "some descripton" do
2026+
describe "some description" do
20272027
test "does something", do: :ok
20282028
end
20292029
end
@@ -2050,7 +2050,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
20502050
}
20512051
],
20522052
kind: 12,
2053-
name: "describe \"some descripton\"",
2053+
name: "describe \"some description\"",
20542054
range: %{
20552055
end: %{character: 8, line: 3},
20562056
start: %{character: 8, line: 3}
@@ -2080,7 +2080,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
20802080
text = ~S[
20812081
defmodule MyModuleTest do
20822082
use ExUnit.Case
2083-
describe ~S(some "descripton") do
2083+
describe ~S(some "description") do
20842084
test "does" <> "something", do: :ok
20852085
end
20862086
end
@@ -2132,9 +2132,9 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
21322132
]} = DocumentSymbols.symbols(uri, text, true)
21332133

21342134
if System.version() |> Version.match?(">= 1.10.0") do
2135-
assert describe_sigil == "describe ~S(some \"descripton\")"
2135+
assert describe_sigil == "describe ~S(some \"description\")"
21362136
else
2137-
assert describe_sigil == "describe ~S'some \"descripton\"'"
2137+
assert describe_sigil == "describe ~S'some \"description\"'"
21382138
end
21392139
end
21402140

@@ -2143,7 +2143,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
21432143
text = ~S[
21442144
defmodule MyModuleTest do
21452145
use ExUnit.Case
2146-
describe "some descripton" do
2146+
describe "some description" do
21472147
test "does something", do: :ok
21482148
end
21492149
end
@@ -2159,7 +2159,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
21592159
}
21602160
},
21612161
%Protocol.SymbolInformation{
2162-
name: "describe \"some descripton\"",
2162+
name: "describe \"some description\"",
21632163
kind: 12,
21642164
location: %{
21652165
range: %{end: %{character: 8, line: 3}, start: %{character: 8, line: 3}}
@@ -2172,7 +2172,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
21722172
location: %{
21732173
range: %{end: %{character: 10, line: 4}, start: %{character: 10, line: 4}}
21742174
},
2175-
containerName: "describe \"some descripton\""
2175+
containerName: "describe \"some description\""
21762176
}
21772177
]} = DocumentSymbols.symbols(uri, text, false)
21782178
end
@@ -2182,7 +2182,7 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
21822182
text = ~S[
21832183
defmodule MyModuleTest do
21842184
use ExUnit.Case
2185-
describe ~S(some "descripton") do
2185+
describe ~S(some "description") do
21862186
test "does" <> "something", do: :ok
21872187
end
21882188
end
@@ -2216,9 +2216,9 @@ defmodule ElixirLS.LanguageServer.Providers.DocumentSymbolsTest do
22162216
]} = DocumentSymbols.symbols(uri, text, false)
22172217

22182218
if System.version() |> Version.match?(">= 1.10.0") do
2219-
assert describe_sigil == "describe ~S(some \"descripton\")"
2219+
assert describe_sigil == "describe ~S(some \"description\")"
22202220
else
2221-
assert describe_sigil == "describe ~S'some \"descripton\"'"
2221+
assert describe_sigil == "describe ~S'some \"description\"'"
22222222
end
22232223
end
22242224

apps/language_server/test/source_file_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ defmodule ElixirLS.LanguageServer.SourceFileTest do
569569
assert SourceFile.lines_with_endings("") == [{"", nil}]
570570
end
571571

572-
test "begining with endline" do
572+
test "beginning with endline" do
573573
assert SourceFile.lines_with_endings("\n") == [{"", "\n"}, {"", nil}]
574574
assert SourceFile.lines_with_endings("\nbasic") == [{"", "\n"}, {"basic", nil}]
575575
end

apps/language_server/test/support/text_loc.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule ElixirLS.Test.TextLoc do
1414
if actual == unquote(expected) do
1515
assert actual == unquote(expected)
1616
else
17-
IO.puts("Acutal is:")
17+
IO.puts("Actual is:")
1818
IO.puts(["\"\"\"", "\n", actual, "\"\"\""])
1919
assert actual == unquote(expected)
2020
end

guides/initialization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LSP Server initialization
22

3-
When launching the elixir_ls server using the scripts, the intialization steps are like:
3+
When launching the elixir_ls server using the scripts, the initialization steps are like:
44

55
1. Replace default IO with Json RPC notifications
66
2. Starts Mix
@@ -43,7 +43,7 @@ After this `GenServer` is started, the next in line is the `ElixirLS.LanguageSer
4343

4444
## Overrides default Mix.Shell
4545

46-
Mix might have some "yes or no" questions that would not be possible to reply in the LSP paradigm. So, the server replaces the default `Mix.Shell` for providing the yes/no questions through LSP request/reponses. This way the client can show them to the user through its interface and pass back the response to the server.
46+
Mix might have some "yes or no" questions that would not be possible to reply in the LSP paradigm. So, the server replaces the default `Mix.Shell` for providing the yes/no questions through LSP request/responses. This way the client can show them to the user through its interface and pass back the response to the server.
4747

4848
## Ensure the Hex version is accepted
4949

0 commit comments

Comments
 (0)