mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-31 17:12:53 +00:00
fix tests
This commit is contained in:
parent
3ab328b49a
commit
7d9e02e5a2
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user