mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-16 23:14:27 +08:00
Close #1553 - Support some tsserver completion for strings
This commit is contained in:
@@ -2,6 +2,8 @@ Given typescript():
|
||||
let abc = y.
|
||||
let foo = ab
|
||||
let foo = (ab)
|
||||
let string1 = '
|
||||
let string2 = "
|
||||
|
||||
Execute(Completion should be done after dots in TypeScript):
|
||||
AssertEqual '.', ale#completion#GetPrefix(&filetype, 1, 13)
|
||||
@@ -15,6 +17,13 @@ Execute(Completion should be done after words in parens in TypeScript):
|
||||
Execute(Completion should not be done after parens in TypeScript):
|
||||
AssertEqual '', ale#completion#GetPrefix(&filetype, 3, 15)
|
||||
|
||||
Execute(Completion should be done after strings in TypeScript):
|
||||
AssertEqual '''', ale#completion#GetPrefix(&filetype, 4, 16)
|
||||
AssertEqual '"', ale#completion#GetPrefix(&filetype, 5, 16)
|
||||
|
||||
Execute(Completion prefixes should work for other filetypes):
|
||||
AssertEqual 'ab', ale#completion#GetPrefix('xxxyyyzzz', 3, 14)
|
||||
|
||||
Execute(Completion prefixes should work for other filetypes):
|
||||
AssertEqual 'ab', ale#completion#GetPrefix('xxxyyyzzz', 3, 14)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user