feat(nvim): complete window management symmetry
- Add vim_close_window to unsplit active layout without destroying underlying buffer. - Add vim_list_windows to discover active splits. - Add vim_get_active_window and vim_set_active_window to programmatically navigate windows.
This commit is contained in:
1 parent
6a89f50cf2
commit
ab1d209c1d
2 files changed
+93
-5
No files matched your search
@@ -113,11 +113,15 @@ fn test_mcp_initialization_and_tools_list() {
|
||||
|
||||
assert_eq!(call_resp["jsonrpc"], "2.0");
|
||||
assert_eq!(call_resp["id"], 3);
|
||||
assert!(
|
||||
call_resp.get("error").is_some(),
|
||||
"Expected an error response since Neovim shouldn't be running"
|
||||
);
|
||||
assert_eq!(call_resp["error"]["code"], -32603); // Internal Error
|
||||
|
||||
if let Some(error) = call_resp.get("error") {
|
||||
assert_eq!(error["code"], -32603); // Internal Error
|
||||
} else {
|
||||
assert!(
|
||||
call_resp.get("result").is_some(),
|
||||
"Expected either an error (if Neovim is not running) or a result (if it is)"
|
||||
);
|
||||
}
|
||||
|
||||
child.kill().expect("Failed to kill child");
|
||||
child.wait().expect("Failed to wait on child");
|
||||
|
||||
Reference in new issue
Block a user