-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: literal str and join str inner completion (#1092)
* feat: Remove the special judgment for literal strings during completion, and change the search for the nearest symbol during completion to the symbol one or two characters before the trigger. Signed-off-by: he1pa <[email protected]> * fmt code Signed-off-by: he1pa <[email protected]> * fix joined_string complete Signed-off-by: he1pa <[email protected]> --------- Signed-off-by: he1pa <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
kclvm/tools/src/LSP/src/test_data/completion_test/dot/lit_str/lit_str.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
a = "aaa" | ||
"aaa" | ||
a | ||
# a | ||
# a | ||
|
||
join_str = "hello world ${}" | ||
join_recover_str = "hello world ${" |