}
END
setline(1, lines)
- :sleep 500m
+ :sleep 1
cursor(24, 6)
:LspGotoDeclaration
- :sleep 500m
+ :sleep 1
assert_equal([6, 19], [line('.'), col('.')])
exe "normal! \<C-t>"
assert_equal([24, 6], [line('.'), col('.')])
:LspGotoDefinition
- :sleep 500m
+ :sleep 1
assert_equal([9, 12], [line('.'), col('.')])
exe "normal! \<C-t>"
assert_equal([24, 6], [line('.'), col('.')])
:LspGotoImpl
- :sleep 500m
+ :sleep 1
assert_equal([15, 11], [line('.'), col('.')])
exe "normal! \<C-t>"
assert_equal([24, 6], [line('.'), col('.')])
:messages clear
cursor(14, 5)
:LspGotoDeclaration
- sleep 500m
+ sleep 1
var m = execute('messages')->split("\n")
assert_equal('Error: declaration is not found', m[1])
:messages clear
:LspGotoDefinition
- sleep 500m
+ sleep 1
m = execute('messages')->split("\n")
assert_equal('Error: definition is not found', m[1])
:messages clear
:LspGotoImpl
- sleep 500m
+ sleep 1
m = execute('messages')->split("\n")
assert_equal('Error: implementation is not found', m[1])
:%bw!