mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-07 10:21:05 +08:00
Close #1162 - Implement completion support with LSP servers
This commit is contained in:
@@ -17,3 +17,20 @@ Execute(Completion should not be done after parens in TypeScript):
|
||||
|
||||
Execute(Completion prefixes should work for other filetypes):
|
||||
AssertEqual 'ab', ale#completion#GetPrefix('xxxyyyzzz', 3, 14)
|
||||
|
||||
Given rust():
|
||||
let abc = y.
|
||||
let abc = String::
|
||||
let foo = (ab)
|
||||
|
||||
Execute(Completion should be done after dots in Rust):
|
||||
AssertEqual '.', ale#completion#GetPrefix(&filetype, 1, 13)
|
||||
|
||||
Execute(Completion should be done after colons in Rust):
|
||||
AssertEqual '::', ale#completion#GetPrefix(&filetype, 2, 19)
|
||||
|
||||
Execute(Completion should be done after words in parens in Rust):
|
||||
AssertEqual 'ab', ale#completion#GetPrefix(&filetype, 3, 14)
|
||||
|
||||
Execute(Completion should not be done after parens in Rust):
|
||||
AssertEqual '', ale#completion#GetPrefix(&filetype, 3, 15)
|
||||
|
||||
Reference in New Issue
Block a user