mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
test(lsp): remove the deprecated feed_command
This commit is contained in:
@ -8,7 +8,6 @@ local dedent = t.dedent
|
|||||||
local eq = t.eq
|
local eq = t.eq
|
||||||
local exec_lua = n.exec_lua
|
local exec_lua = n.exec_lua
|
||||||
local feed = n.feed
|
local feed = n.feed
|
||||||
local feed_command = n.feed_command
|
|
||||||
local insert = n.insert
|
local insert = n.insert
|
||||||
local matches = t.matches
|
local matches = t.matches
|
||||||
local api = n.api
|
local api = n.api
|
||||||
@ -475,8 +474,8 @@ describe('semantic token highlighting', function()
|
|||||||
|
|
|
|
||||||
]],
|
]],
|
||||||
}
|
}
|
||||||
feed_command('%s/int x/int x()/')
|
feed(':%s/int x/int x()/<CR>')
|
||||||
feed_command('noh')
|
feed(':noh<CR>')
|
||||||
screen:expect {
|
screen:expect {
|
||||||
grid = [[
|
grid = [[
|
||||||
#include <iostream> |
|
#include <iostream> |
|
||||||
@ -720,8 +719,8 @@ describe('semantic token highlighting', function()
|
|||||||
|
|
|
|
||||||
]],
|
]],
|
||||||
}
|
}
|
||||||
feed_command('%s/int x/int x()/')
|
feed(':%s/int x/int x()/<CR>')
|
||||||
feed_command('noh')
|
feed(':noh<CR>')
|
||||||
|
|
||||||
-- the highlights don't change because our fake server sent the exact
|
-- the highlights don't change because our fake server sent the exact
|
||||||
-- same result for the same method (the full request). "x" would have
|
-- same result for the same method (the full request). "x" would have
|
||||||
|
Reference in New Issue
Block a user