diff --git a/completions/bash/brew b/completions/bash/brew index 6c6e5e0c5c..9402f26144 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -2316,6 +2316,7 @@ _brew_tc() { --fix --help --ignore + --lsp --quiet --suggest-typed --update @@ -2384,6 +2385,7 @@ _brew_typecheck() { --fix --help --ignore + --lsp --quiet --suggest-typed --update diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index bd8ee9a6b0..48ac7e41e7 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -1519,6 +1519,7 @@ __fish_brew_complete_arg 'tc' -l file -d 'Typecheck a single file' __fish_brew_complete_arg 'tc' -l fix -d 'Automatically fix type errors' __fish_brew_complete_arg 'tc' -l help -d 'Show this message' __fish_brew_complete_arg 'tc' -l ignore -d 'Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)' +__fish_brew_complete_arg 'tc' -l lsp -d 'Start the Sorbet LSP server' __fish_brew_complete_arg 'tc' -l quiet -d 'Silence all non-critical errors' __fish_brew_complete_arg 'tc' -l suggest-typed -d 'Try upgrading `typed` sigils' __fish_brew_complete_arg 'tc' -l update -d 'Update RBI files' @@ -1560,6 +1561,7 @@ __fish_brew_complete_arg 'typecheck' -l file -d 'Typecheck a single file' __fish_brew_complete_arg 'typecheck' -l fix -d 'Automatically fix type errors' __fish_brew_complete_arg 'typecheck' -l help -d 'Show this message' __fish_brew_complete_arg 'typecheck' -l ignore -d 'Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)' +__fish_brew_complete_arg 'typecheck' -l lsp -d 'Start the Sorbet LSP server' __fish_brew_complete_arg 'typecheck' -l quiet -d 'Silence all non-critical errors' __fish_brew_complete_arg 'typecheck' -l suggest-typed -d 'Try upgrading `typed` sigils' __fish_brew_complete_arg 'typecheck' -l update -d 'Update RBI files' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index af508972c8..8869a50497 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -1881,13 +1881,14 @@ _brew_tc() { '--debug[Display any debugging information]' \ '(--file)--dir[Typecheck all files in a specific directory]' \ '(--dir)--file[Typecheck a single file]' \ - '--fix[Automatically fix type errors]' \ + '(--lsp)--fix[Automatically fix type errors]' \ '--help[Show this message]' \ '--ignore[Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)]' \ + '(--update --update-all --fix)--lsp[Start the Sorbet LSP server]' \ '--quiet[Silence all non-critical errors]' \ '--suggest-typed[Try upgrading `typed` sigils]' \ - '--update[Update RBI files]' \ - '--update-all[Update all RBI files rather than just updated gems]' \ + '(--lsp)--update[Update RBI files]' \ + '(--lsp)--update-all[Update all RBI files rather than just updated gems]' \ '--verbose[Make some output more verbose]' } @@ -1929,13 +1930,14 @@ _brew_typecheck() { '--debug[Display any debugging information]' \ '(--file)--dir[Typecheck all files in a specific directory]' \ '(--dir)--file[Typecheck a single file]' \ - '--fix[Automatically fix type errors]' \ + '(--lsp)--fix[Automatically fix type errors]' \ '--help[Show this message]' \ '--ignore[Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)]' \ + '(--update --update-all --fix)--lsp[Start the Sorbet LSP server]' \ '--quiet[Silence all non-critical errors]' \ '--suggest-typed[Try upgrading `typed` sigils]' \ - '--update[Update RBI files]' \ - '--update-all[Update all RBI files rather than just updated gems]' \ + '(--lsp)--update[Update RBI files]' \ + '(--lsp)--update-all[Update all RBI files rather than just updated gems]' \ '--verbose[Make some output more verbose]' } diff --git a/docs/Manpage.md b/docs/Manpage.md index d029bcebbf..449e9d2d4c 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -2775,6 +2775,10 @@ Check for typechecking errors using Sorbet. : Try upgrading `typed` sigils. +`--lsp` + +: Start the Sorbet LSP server. + `--dir` : Typecheck all files in a specific directory. diff --git a/manpages/brew.1 b/manpages/brew.1 index 5a58e9ab39..2cc3121769 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -1775,6 +1775,9 @@ Update all RBI files rather than just updated gems\. \fB\-\-suggest\-typed\fP Try upgrading \fBtyped\fP sigils\. .TP +\fB\-\-lsp\fP +Start the Sorbet LSP server\. +.TP \fB\-\-dir\fP Typecheck all files in a specific directory\. .TP