5327: Mark fixes from check as preferred r=matklad a=kjeremy

This allows us to run the auto fix command from vscode to automatically fix diagnostics in the file.

They are also distinguished in the UI.

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
This commit is contained in:
bors[bot]
2020-07-17 11:12:40 +00:00
committed by GitHub
9 changed files with 20 additions and 0 deletions

View File

@@ -689,6 +689,7 @@ pub(crate) fn unresolved_code_action(
group: assist.group.filter(|_| snap.config.client_caps.code_action_group).map(|gr| gr.0),
kind: Some(code_action_kind(assist.id.1)),
edit: None,
is_preferred: None,
};
Ok(res)
}