mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-22 12:34:39 +00:00
feat: allow running server with loading font once and on rootless files (#94)
* dev: change system config * docs: update config doc * dev: clean up tightly coupled world * dev: load font once * docs: add more comments to tinymist-query * dev: merge compiler layers * feat: allow run lsp on rootless files * build: bump ts * fix: workspace dep * build: bump preview * dev: correctly check inactive state * fix: weird cargo default features
This commit is contained in:
parent
f0a9c3e880
commit
76b4e91046
46 changed files with 974 additions and 638 deletions
|
|
@ -3,7 +3,7 @@ use lsp_types::TextEdit;
|
|||
|
||||
use crate::{
|
||||
find_definition, find_references, prelude::*, syntax::get_deref_target,
|
||||
validate_renaming_definition, SyntaxRequest,
|
||||
validate_renaming_definition, SemanticRequest,
|
||||
};
|
||||
|
||||
/// The [`textDocument/rename`] request is sent from the client to the server to
|
||||
|
|
@ -21,7 +21,7 @@ pub struct RenameRequest {
|
|||
pub new_name: String,
|
||||
}
|
||||
|
||||
impl SyntaxRequest for RenameRequest {
|
||||
impl SemanticRequest for RenameRequest {
|
||||
type Response = WorkspaceEdit;
|
||||
|
||||
fn request(self, ctx: &mut AnalysisContext) -> Option<Self::Response> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue