Skip to content

Commit

Permalink
starlark_lsp: remove some autocomplete trigger chars
Browse files Browse the repository at this point in the history
Summary:
Autocomplete after these characters is more annoying than useful.
Ideally this should be configurable during LSP initialization instead of hardcoded.

Reviewed By: ndmitchell

Differential Revision: D53530861

fbshipit-source-id: 772102fe82c8fbea48a0c5d3d934c3999457bd5f
  • Loading branch information
zsol authored and facebook-github-bot committed Feb 7, 2024
1 parent a81425f commit c04d1bb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions starlark_lsp/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,20 +410,10 @@ impl<T: LspContext> Backend<T> {
trigger_characters: Some(vec![
// e.g. function call
"(".to_owned(),
// e.g. list creation, function call
",".to_owned(),
// e.g. when typing a load path
"/".to_owned(),
// e.g. dict creation
":".to_owned(),
// e.g. variable assignment
"=".to_owned(),
// e.g. list creation
"[".to_owned(),
// e.g. string literal (load path, target name)
"\"".to_owned(),
// don't lose autocomplete when typing a space, e.g. after a comma
" ".to_owned(),
]),
..Default::default()
}),
Expand Down

0 comments on commit c04d1bb

Please sign in to comment.