Skip to content

Commit f0b026c

Browse files
dimblebyautozimu
authored andcommitted
Update lsp-types and url
1 parent 815e44a commit f0b026c

File tree

3 files changed

+70
-42
lines changed

3 files changed

+70
-42
lines changed

Cargo.lock

Lines changed: 63 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ serde_json = "1"
2020
crossbeam-channel = "0.3"
2121

2222
jsonrpc-core = "13"
23-
lsp-types = "0.58"
24-
url = "1"
23+
lsp-types = "0.60"
24+
url = "2"
2525
pathdiff = "0"
2626
diff = "0"
2727
regex = "1"

src/language_server_protocol.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,10 +1145,12 @@ impl LanguageClient {
11451145
let result = self.get_client(&Some(languageId.clone()))?.call(
11461146
lsp::request::Rename::METHOD,
11471147
RenameParams {
1148-
text_document: TextDocumentIdentifier {
1149-
uri: filename.to_url()?,
1148+
text_document_position: TextDocumentPositionParams {
1149+
text_document: TextDocumentIdentifier {
1150+
uri: filename.to_url()?,
1151+
},
1152+
position,
11501153
},
1151-
position,
11521154
new_name,
11531155
},
11541156
)?;

0 commit comments

Comments
 (0)