From 6c497cec73c68bddfcd50700c739319cd815e0b3 Mon Sep 17 00:00:00 2001 From: toyeshhm Date: Wed, 23 Sep 2026 09:39:33 -0500 Subject: [PATCH] Fix typos in comments and a test name - scripts/exec.{bash,zsh}: splitted -> split - source_file_test.exs: thet -> that - hover/docs_test.exs: vie -> via - plugins/ecto_test.exs: bult-in -> built-in --- apps/language_server/test/providers/hover/docs_test.exs | 2 +- apps/language_server/test/providers/plugins/ecto_test.exs | 2 +- apps/language_server/test/source_file_test.exs | 2 +- scripts/exec.bash | 2 +- scripts/exec.zsh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/language_server/test/providers/hover/docs_test.exs b/apps/language_server/test/providers/hover/docs_test.exs index d1b613adc..05f9fa6c0 100644 --- a/apps/language_server/test/providers/hover/docs_test.exs +++ b/apps/language_server/test/providers/hover/docs_test.exs @@ -1339,7 +1339,7 @@ defmodule ElixirLS.LanguageServer.Providers.Hover.DocsTest do } = doc end - test "retrieve function documentation from behaviour even if @doc is set to false vie @impl" do + test "retrieve function documentation from behaviour even if @doc is set to false via @impl" do buffer = """ defmodule MyModule do import ElixirSenseExample.ExampleBehaviourWithDocCallbackImpl diff --git a/apps/language_server/test/providers/plugins/ecto_test.exs b/apps/language_server/test/providers/plugins/ecto_test.exs index d2e3c6a87..d384b5211 100644 --- a/apps/language_server/test/providers/plugins/ecto_test.exs +++ b/apps/language_server/test/providers/plugins/ecto_test.exs @@ -52,7 +52,7 @@ defmodule ElixirLS.LanguageServer.Plugins.EctoTest do end describe "suggesting ecto types" do - # test "suggestion info for bult-in types" do + # test "suggestion info for built-in types" do # buffer = """ # import Ecto.Schema # field name, {: diff --git a/apps/language_server/test/source_file_test.exs b/apps/language_server/test/source_file_test.exs index 2b6ddd237..565d16495 100644 --- a/apps/language_server/test/source_file_test.exs +++ b/apps/language_server/test/source_file_test.exs @@ -44,7 +44,7 @@ defmodule ElixirLS.LanguageServer.SourceFileTest do describe "apply_content_changes" do # tests and helper functions ported from https://github.com/microsoft/vscode-languageserver-node - # note thet those functions are not production quality e.g. they don't deal with utf8/utf16 encoding issues + # note that those functions are not production quality e.g. they don't deal with utf8/utf16 encoding issues defp index_of(string, substring) do case String.split(string, substring, parts: 2) do [left, _] -> String.to_charlist(left) |> length diff --git a/scripts/exec.bash b/scripts/exec.bash index e5bb9dc7b..ca9e45af3 100755 --- a/scripts/exec.bash +++ b/scripts/exec.bash @@ -1,4 +1,4 @@ -# we need to make sure ELS_ELIXIR_OPTS gets splitted by word +# we need to make sure ELS_ELIXIR_OPTS gets split by word # parse it as bash array # shellcheck disable=SC3045 # shellcheck disable=SC3011 diff --git a/scripts/exec.zsh b/scripts/exec.zsh index 72708a0b6..e05707999 100755 --- a/scripts/exec.zsh +++ b/scripts/exec.zsh @@ -1,4 +1,4 @@ -# we need to make sure ELS_ELIXIR_OPTS gets splitted by word +# we need to make sure ELS_ELIXIR_OPTS gets split by word # parse it as zsh array # shellcheck disable=SC3030 # shellcheck disable=SC2296