Deploy code runner menu from correct display row (#32594)
This fixes a bug introduced in #32579 where the code runner menu would be deployed from the most recent cursor position instead of the row that the runner icon was rendered on. Release Notes: - N/A
This commit is contained in:
parent
106b98fbcb
commit
c7ee635853
1 changed files with 1 additions and 1 deletions
|
@ -5717,7 +5717,7 @@ impl Editor {
|
||||||
self.discard_inline_completion(false, cx);
|
self.discard_inline_completion(false, cx);
|
||||||
|
|
||||||
let multibuffer_point = match &action.deployed_from {
|
let multibuffer_point = match &action.deployed_from {
|
||||||
Some(CodeActionSource::Indicator(row)) => {
|
Some(CodeActionSource::Indicator(row)) | Some(CodeActionSource::RunMenu(row)) => {
|
||||||
DisplayPoint::new(*row, 0).to_point(&snapshot)
|
DisplayPoint::new(*row, 0).to_point(&snapshot)
|
||||||
}
|
}
|
||||||
_ => self.selections.newest::<Point>(cx).head(),
|
_ => self.selections.newest::<Point>(cx).head(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue