aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/tests/heavy_tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_tests')
-rw-r--r--crates/ra_lsp_server/tests/heavy_tests/main.rs23
1 files changed, 14 insertions, 9 deletions
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 @@
1mod support; 1mod support;
2 2
3use languageserver_types::{
4 CodeActionContext, DocumentFormattingParams, FormattingOptions, Position, Range,
5};
6use ra_lsp_server::req::{
7 CodeActionParams, CodeActionRequest, Formatting, Runnables, RunnablesParams,
8};
3use serde_json::json; 9use serde_json::json;
4use ra_lsp_server::req::{Runnables, RunnablesParams, CodeActionRequest, CodeActionParams, Formatting};
5use languageserver_types::{Position, Range, CodeActionContext, DocumentFormattingParams, FormattingOptions};
6 10
7use crate::support::project; 11use crate::support::project;
8 12
@@ -203,14 +207,15 @@ fn main() {}
203 "arguments": [ 207 "arguments": [
204 { 208 {
205 "cursorPosition": null, 209 "cursorPosition": null,
206 "fileSystemEdits": [ 210 "workspaceEdit": {
207 { 211 "documentChanges": [
208 "type": "createFile", 212 {
213 "kind": "create",
209 "uri": "file:///[..]/src/bar.rs" 214 "uri": "file:///[..]/src/bar.rs"
210 } 215 }
211 ], 216 ]
212 "label": "create module", 217 },
213 "sourceFileEdits": [] 218 "label": "create module"
214 } 219 }
215 ], 220 ],
216 "command": "ra-lsp.applySourceChange", 221 "command": "ra-lsp.applySourceChange",