fix tests

This commit is contained in:
Bernardo 2019-01-03 14:43:47 +01:00
parent 3ab328b49a
commit 7d9e02e5a2

View File

@ -1,8 +1,12 @@
mod support; mod support;
use languageserver_types::{
CodeActionContext, DocumentFormattingParams, FormattingOptions, Position, Range,
};
use ra_lsp_server::req::{
CodeActionParams, CodeActionRequest, Formatting, Runnables, RunnablesParams,
};
use serde_json::json; use serde_json::json;
use ra_lsp_server::req::{Runnables, RunnablesParams, CodeActionRequest, CodeActionParams, Formatting};
use languageserver_types::{Position, Range, CodeActionContext, DocumentFormattingParams, FormattingOptions};
use crate::support::project; use crate::support::project;
@ -203,14 +207,15 @@ fn main() {}
"arguments": [ "arguments": [
{ {
"cursorPosition": null, "cursorPosition": null,
"fileSystemEdits": [ "workspaceEdit": {
{ "documentChanges": [
"type": "createFile", {
"kind": "create",
"uri": "file:///[..]/src/bar.rs" "uri": "file:///[..]/src/bar.rs"
} }
], ]
"label": "create module", },
"sourceFileEdits": [] "label": "create module"
} }
], ],
"command": "ra-lsp.applySourceChange", "command": "ra-lsp.applySourceChange",