assistant2: Add support for referencing symbols as context (#27513)
TODO Release Notes: - N/A
This commit is contained in:
parent
da47013e56
commit
a916bbf00c
9 changed files with 838 additions and 20 deletions
|
@ -15494,9 +15494,9 @@ impl Editor {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn project_path(&self, cx: &mut Context<Self>) -> Option<ProjectPath> {
|
||||
pub fn project_path(&self, cx: &App) -> Option<ProjectPath> {
|
||||
if let Some(buffer) = self.buffer.read(cx).as_singleton() {
|
||||
buffer.read_with(cx, |buffer, cx| buffer.project_path(cx))
|
||||
buffer.read(cx).project_path(cx)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue