feat: allow to disable lint or lint on save (#1658)

* feat: allow to disable lint or lint on save

* fix: description
This commit is contained in:
Myriad-Dreamin 2025-04-16 03:15:56 +08:00 committed by GitHub
parent 39d13c83f6
commit 2709aaf429
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 140 additions and 33 deletions

View file

@ -12,7 +12,7 @@ use tinymist_analysis::stats::AllocStats;
use tinymist_analysis::ty::term_value;
use tinymist_analysis::{analyze_expr_, analyze_import_};
use tinymist_lint::LintInfo;
use tinymist_project::{LspComputeGraph, LspWorld};
use tinymist_project::{LspComputeGraph, LspWorld, TaskWhen};
use tinymist_std::hash::{hash128, FxDashMap};
use tinymist_std::typst::TypstDocument;
use tinymist_world::debug_loc::DataSource;
@ -69,6 +69,8 @@ pub struct Analysis {
pub completion_feat: CompletionFeat,
/// The editor's color theme.
pub color_theme: ColorTheme,
/// When to trigger the lint.
pub lint: TaskWhen,
/// The periscope provider.
pub periscope: Option<Arc<dyn PeriscopeProvider + Send + Sync>>,
/// The global worker resources for analysis.