mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 13:13:43 +00:00
feat: add basic color providers (#171)
* feat: provide document color api * feat: provide color presentation api. * dev: update snapshot * dev: update snapshot
This commit is contained in:
parent
8a3fdbc642
commit
4afe4b30d9
18 changed files with 390 additions and 10 deletions
|
@ -24,6 +24,10 @@ pub(crate) mod code_lens;
|
|||
pub use code_lens::*;
|
||||
pub(crate) mod completion;
|
||||
pub use completion::*;
|
||||
pub(crate) mod color_presentation;
|
||||
pub use color_presentation::*;
|
||||
pub(crate) mod document_color;
|
||||
pub use document_color::*;
|
||||
pub(crate) mod document_symbol;
|
||||
pub use document_symbol::*;
|
||||
pub(crate) mod document_metrics;
|
||||
|
@ -197,6 +201,8 @@ mod polymorphic {
|
|||
GotoDeclaration(GotoDeclarationRequest),
|
||||
References(ReferencesRequest),
|
||||
InlayHint(InlayHintRequest),
|
||||
DocumentColor(DocumentColorRequest),
|
||||
ColorPresentation(ColorPresentationRequest),
|
||||
CodeLens(CodeLensRequest),
|
||||
Completion(CompletionRequest),
|
||||
SignatureHelp(SignatureHelpRequest),
|
||||
|
@ -225,6 +231,8 @@ mod polymorphic {
|
|||
CompilerQueryRequest::GotoDeclaration(..) => PinnedFirst,
|
||||
CompilerQueryRequest::References(..) => PinnedFirst,
|
||||
CompilerQueryRequest::InlayHint(..) => Unique,
|
||||
CompilerQueryRequest::DocumentColor(..) => PinnedFirst,
|
||||
CompilerQueryRequest::ColorPresentation(..) => ContextFreeUnique,
|
||||
CompilerQueryRequest::CodeLens(..) => Unique,
|
||||
CompilerQueryRequest::Completion(..) => Mergable,
|
||||
CompilerQueryRequest::SignatureHelp(..) => PinnedFirst,
|
||||
|
@ -252,6 +260,8 @@ mod polymorphic {
|
|||
CompilerQueryRequest::GotoDeclaration(req) => &req.path,
|
||||
CompilerQueryRequest::References(req) => &req.path,
|
||||
CompilerQueryRequest::InlayHint(req) => &req.path,
|
||||
CompilerQueryRequest::DocumentColor(req) => &req.path,
|
||||
CompilerQueryRequest::ColorPresentation(req) => &req.path,
|
||||
CompilerQueryRequest::CodeLens(req) => &req.path,
|
||||
CompilerQueryRequest::Completion(req) => &req.path,
|
||||
CompilerQueryRequest::SignatureHelp(req) => &req.path,
|
||||
|
@ -280,6 +290,8 @@ mod polymorphic {
|
|||
GotoDeclaration(Option<GotoDeclarationResponse>),
|
||||
References(Option<Vec<LspLocation>>),
|
||||
InlayHint(Option<Vec<InlayHint>>),
|
||||
DocumentColor(Option<Vec<ColorInformation>>),
|
||||
ColorPresentation(Option<Vec<ColorPresentation>>),
|
||||
CodeLens(Option<Vec<CodeLens>>),
|
||||
Completion(Option<CompletionResponse>),
|
||||
SignatureHelp(Option<SignatureHelp>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue