mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Add comment
This commit is contained in:
parent
6ac4cca6c1
commit
0f7a714c63
1 changed files with 4 additions and 0 deletions
|
@ -598,6 +598,10 @@ pub fn handle_code_action(
|
||||||
for source_edit in assists.chain(fixes) {
|
for source_edit in assists.chain(fixes) {
|
||||||
let title = source_edit.label.clone();
|
let title = source_edit.label.clone();
|
||||||
let edit = source_edit.try_conv_with(&world)?;
|
let edit = source_edit.try_conv_with(&world)?;
|
||||||
|
|
||||||
|
// We cannot use the 'editor.action.showReferences' command directly
|
||||||
|
// because that command requires vscode types which we convert in the handler
|
||||||
|
// on the client side.
|
||||||
let cmd = Command {
|
let cmd = Command {
|
||||||
title,
|
title,
|
||||||
command: "rust-analyzer.applySourceChange".to_string(),
|
command: "rust-analyzer.applySourceChange".to_string(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue