Skip to content
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

Remove plain text file type association from default settings #25420

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

Conversation

MrSubidubi
Copy link
Contributor

Closes #20291

This PR removes the plain text file association from the default settings, as #21298 added a LanguageMatcher for Plain Text files, which now associates "Plain Text" with txt-files (see

pub static PLAIN_TEXT: LazyLock<Arc<Language>> = LazyLock::new(|| {
Arc::new(Language::new(
LanguageConfig {
name: "Plain Text".into(),
soft_wrap: Some(SoftWrap::EditorWidth),
matcher: LanguageMatcher {
path_suffixes: vec!["txt".to_owned()],
first_line_pattern: None,
},
..Default::default()
},
).

Thus, the association via the default settings is not required anymore, which fixes #20291 as described in #20291 (comment)

Release Notes:

  • Fixed default file type associations overriding associations provided by extensions for txt-files.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 23, 2025
@zed-industries-bot
Copy link

Messages
📖

This PR includes links to the following GitHub Issues: #20291
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 2ea397f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMakeLists.txt considered Plain Text file even with NeoCMake extension installed
2 participants