Skip to content

Commit

Permalink
starlark_lsp: don't autocomplete reserved words
Browse files Browse the repository at this point in the history
Summary: This isn't a useful behavior, ever.

Reviewed By: ndmitchell

Differential Revision: D53530733

fbshipit-source-id: 81407bf69e78fca71c7b2cd864e0f92cc12fd64d
  • Loading branch information
zsol authored and facebook-github-bot committed Feb 7, 2024
1 parent 842c239 commit a81425f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions starlark_lsp/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1008,10 +1008,7 @@ impl<T: LspContext> Backend<T> {
[
// Actual keywords
"and", "else", "load", "break", "for", "not", "continue", "if", "or", "def", "in",
"pass", "elif", "return", "lambda", //
// Reserved words
"as", "import", "is", "class", "nonlocal", "del", "raise", "except", "try", "finally",
"while", "from", "with", "global", "yield",
"pass", "elif", "return", "lambda",
]
.into_iter()
.map(|keyword| CompletionItem {
Expand Down

0 comments on commit a81425f

Please sign in to comment.