mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
refactor: refactor hover, analysis/global, and docs crates (#755)
* dev: refactor hover.rs * refactor refactor AnalysisContext * refactor: refactor docs crate
This commit is contained in:
parent
1c1bc19caf
commit
8f3566366e
44 changed files with 694 additions and 790 deletions
|
@ -9,7 +9,7 @@ use core::fmt;
|
|||
|
||||
use base64::Engine;
|
||||
use reflexo_vec2svg::{ExportFeature, SvgExporter, SvgText};
|
||||
use tinymist_query::{AnalysisContext, FramePosition, VersionedDocument};
|
||||
use tinymist_query::{FramePosition, LocalContext, VersionedDocument};
|
||||
|
||||
struct PeriscopeExportFeature {}
|
||||
|
||||
|
@ -72,7 +72,7 @@ impl PeriscopeRenderer {
|
|||
/// Render the periscope image for the given document into markdown format.
|
||||
pub fn render_marked(
|
||||
&self,
|
||||
ctx: &mut AnalysisContext,
|
||||
ctx: &mut LocalContext,
|
||||
doc: VersionedDocument,
|
||||
pos: FramePosition,
|
||||
) -> Option<String> {
|
||||
|
@ -93,7 +93,7 @@ impl PeriscopeRenderer {
|
|||
/// Render the periscope image for the given document.
|
||||
pub fn render(
|
||||
&self,
|
||||
_ctx: &mut AnalysisContext,
|
||||
_ctx: &mut LocalContext,
|
||||
doc: VersionedDocument,
|
||||
pos: FramePosition,
|
||||
) -> Option<(String, f32, f32)> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue