From 7d9e02e5a201fe997f98b6908daadd820d4a6593 Mon Sep 17 00:00:00 2001 From: Bernardo Date: Thu, 3 Jan 2019 14:43:47 +0100 Subject: fix tests --- crates/ra_lsp_server/tests/heavy_tests/main.rs | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'crates') diff --git a/crates/ra_lsp_server/tests/heavy_tests/main.rs b/crates/ra_lsp_server/tests/heavy_tests/main.rs index b0e1e65b6..4cae44eab 100644 --- a/crates/ra_lsp_server/tests/heavy_tests/main.rs +++ b/crates/ra_lsp_server/tests/heavy_tests/main.rs @@ -1,8 +1,12 @@ 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 ra_lsp_server::req::{Runnables, RunnablesParams, CodeActionRequest, CodeActionParams, Formatting}; -use languageserver_types::{Position, Range, CodeActionContext, DocumentFormattingParams, FormattingOptions}; use crate::support::project; @@ -203,14 +207,15 @@ fn main() {} "arguments": [ { "cursorPosition": null, - "fileSystemEdits": [ - { - "type": "createFile", + "workspaceEdit": { + "documentChanges": [ + { + "kind": "create", "uri": "file:///[..]/src/bar.rs" - } - ], - "label": "create module", - "sourceFileEdits": [] + } + ] + }, + "label": "create module" } ], "command": "ra-lsp.applySourceChange", -- cgit v1.2.3