mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-09 14:55:52 +08:00
#1162 Add unfinished experimental code for supporting LSP completion, clean up the tests, and make the completion cancelling better
This commit is contained in:
1 parent
2e50aadd56
commit
b1a6abdda6
9 files changed
+677
-384
No files matched your search
@@ -0,0 +1,19 @@
|
||||
Given typescript():
|
||||
let abc = y.
|
||||
let foo = ab
|
||||
let foo = (ab)
|
||||
|
||||
Execute(Completion should be done after dots in TypeScript):
|
||||
AssertEqual '.', ale#completion#GetPrefix(&filetype, 1, 13)
|
||||
|
||||
Execute(Completion should be done after words in TypeScript):
|
||||
AssertEqual 'ab', ale#completion#GetPrefix(&filetype, 2, 13)
|
||||
|
||||
Execute(Completion should be done after words in parens in TypeScript):
|
||||
AssertEqual 'ab', ale#completion#GetPrefix(&filetype, 3, 14)
|
||||
|
||||
Execute(Completion should not be done after parens in TypeScript):
|
||||
AssertEqual '', ale#completion#GetPrefix(&filetype, 3, 15)
|
||||
|
||||
Execute(Completion prefixes should work for other filetypes):
|
||||
AssertEqual 'ab', ale#completion#GetPrefix('xxxyyyzzz', 3, 14)
|
||||
Reference in new issue
Block a user