remote ssh: Make "get permalink to line" work (#19366)
This makes the `editor: copy permalink to line` and `editor: copy permalink to line` actions work in SSH remote projects. Previously it would only work in local projects. Demo: https://github.com/user-attachments/assets/a8012152-b631-4b34-9ff2-e4d033c97dee Release Notes: - N/A
This commit is contained in:
parent
c186e99a3d
commit
4be9da2641
9 changed files with 219 additions and 79 deletions
|
@ -3463,6 +3463,17 @@ impl Project {
|
|||
self.buffer_store.read(cx).blame_buffer(buffer, version, cx)
|
||||
}
|
||||
|
||||
pub fn get_permalink_to_line(
|
||||
&self,
|
||||
buffer: &Model<Buffer>,
|
||||
selection: Range<u32>,
|
||||
cx: &AppContext,
|
||||
) -> Task<Result<url::Url>> {
|
||||
self.buffer_store
|
||||
.read(cx)
|
||||
.get_permalink_to_line(buffer, selection, cx)
|
||||
}
|
||||
|
||||
// RPC message handlers
|
||||
|
||||
async fn handle_unshare_project(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue