You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
944 B
VimL
29 lines
944 B
VimL
scriptencoding utf-8
|
|
|
|
Context Vesting.run()
|
|
|
|
let s:V = vital#of('tsuquyomi')
|
|
let s:Filepath = s:V.import('System.Filepath')
|
|
let s:script_dir = tsuquyomi#rootDir()
|
|
|
|
It checks interface of responce of 'completionEntryDetails' command.
|
|
let file = s:Filepath.join(s:script_dir, 'test/tsClient/vest/resources/SimpleModule_writing.ts')
|
|
call tsuquyomi#tsClient#tsOpen(file)
|
|
let res_list = tsuquyomi#tsClient#tsCompletionEntryDetails(file, 19, 9, ['say', 'greeting'])
|
|
Should len(res_list) == 2
|
|
|
|
let display_texts = []
|
|
for result in res_list
|
|
let display = ''
|
|
for part in result.displayParts
|
|
let display = display.part.text
|
|
endfor
|
|
call add(display_texts, display)
|
|
endfor
|
|
Should display_texts[0] == '(method) SimpleModule.MyClass.say(): string'
|
|
Should display_texts[1] == '(property) SimpleModule.MyClass.greeting: string'
|
|
call tsuquyomi#tsClient#stopTssSync()
|
|
End
|
|
End
|
|
Fin
|