Skip to content

fix(cli): Don't recognize "typ" as typo in .typ files #1328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

not-my-profile
Copy link
Contributor

Before the file extension of Typst was recognized as a typo.

Fixes #1253.

Before the file extension of Typst was recognized as a typo.

Fixes crate-ci#1253.
@@ -315,6 +315,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
("ts", &["*.ts", "*.tsx", "*.cts", "*.mts"]),
("twig", &["*.twig"]),
("txt", &["*.txt"]),
("typ", &["*.typ"]),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is copied out of ripgrep
https://github.com/BurntSushi/ripgrep/blob/master/crates/ignore/src/default_types.rs

Changes to it could easily b lost when we do updates from ripgrep

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could add a test case to make you we don't regress?

@mdavis-xyz mdavis-xyz mentioned this pull request Jun 25, 2025
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

typ as Typst extension
2 participants