updated for model handle rename
This commit is contained in:
parent
5ff70f7dba
commit
c17b246bac
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ use crate::prompts::base::{PromptArguments, PromptTemplate};
|
||||||
use std::fmt::Write;
|
use std::fmt::Write;
|
||||||
use std::{ops::Range, path::PathBuf};
|
use std::{ops::Range, path::PathBuf};
|
||||||
|
|
||||||
use gpui2::{AsyncAppContext, Handle};
|
use gpui2::{AsyncAppContext, Model};
|
||||||
use language2::{Anchor, Buffer};
|
use language2::{Anchor, Buffer};
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
@ -14,7 +14,7 @@ pub struct PromptCodeSnippet {
|
||||||
|
|
||||||
impl PromptCodeSnippet {
|
impl PromptCodeSnippet {
|
||||||
pub fn new(
|
pub fn new(
|
||||||
buffer: Handle<Buffer>,
|
buffer: Model<Buffer>,
|
||||||
range: Range<Anchor>,
|
range: Range<Anchor>,
|
||||||
cx: &mut AsyncAppContext,
|
cx: &mut AsyncAppContext,
|
||||||
) -> anyhow::Result<Self> {
|
) -> anyhow::Result<Self> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue