Autocomplete commands that don't require access to workspace in prompt library (#12674)
This is useful to autocomplete prompts when writing a new one in the prompt library. Release Notes: - N/A
This commit is contained in:
parent
ad2ddf1200
commit
27e9c68988
14 changed files with 88 additions and 196 deletions
|
@ -2580,9 +2580,9 @@ impl ConversationEditor {
|
|||
let slash_command_registry = conversation.read(cx).slash_command_registry.clone();
|
||||
|
||||
let completion_provider = SlashCommandCompletionProvider::new(
|
||||
cx.view().downgrade(),
|
||||
slash_command_registry.clone(),
|
||||
workspace.downgrade(),
|
||||
Some(cx.view().downgrade()),
|
||||
Some(workspace.downgrade()),
|
||||
);
|
||||
|
||||
let editor = cx.new_view(|cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue