Merge Zed task context providing logic (#10544)

Before, `tasks_ui` set most of the context with `SymbolContextProvider`
providing the symbol data part of the context. Now, there's a
`BasicContextProvider` that forms all standard Zed context and it
automatically serves as a base, with no need for other providers like
`RustContextProvider` to call it as before.

Also, stop adding `SelectedText` task variable into the context for
blank text selection.

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-04-15 10:52:15 +02:00 committed by GitHub
parent 97c5cffbe3
commit 573ba83034
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 173 additions and 124 deletions

View file

@ -87,7 +87,7 @@ pub fn init(
Ok((
config.clone(),
load_queries($name),
Some(Arc::new(language::SymbolContextProvider)),
Some(Arc::new(language::BasicContextProvider)),
))
},
);
@ -107,7 +107,7 @@ pub fn init(
Ok((
config.clone(),
load_queries($name),
Some(Arc::new(language::SymbolContextProvider)),
Some(Arc::new(language::BasicContextProvider)),
))
},
);