mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
fix tests
This commit is contained in:
parent
3ab328b49a
commit
7d9e02e5a2
1 changed files with 14 additions and 9 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue