Merge branch 'helix-editor:master' into file_watcher

pull/13432/head
Bekobi 2025-04-28 22:46:39 +02:00 committed by GitHub
commit a3fcc460ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 15 additions and 11 deletions

View File

@ -9,7 +9,7 @@ on:
- cron: "00 01 * * *" - cron: "00 01 * * *"
env: env:
MSRV: "1.76" MSRV: "1.82"
# This key can be changed to bust the cache of tree-sitter grammars. # This key can be changed to bust the cache of tree-sitter grammars.
GRAMMAR_CACHE_VERSION: "" GRAMMAR_CACHE_VERSION: ""

View File

@ -56,4 +56,4 @@ categories = ["editor"]
repository = "https://github.com/helix-editor/helix" repository = "https://github.com/helix-editor/helix"
homepage = "https://helix-editor.com" homepage = "https://helix-editor.com"
license = "MPL-2.0" license = "MPL-2.0"
rust-version = "1.76" rust-version = "1.82"

View File

@ -56,6 +56,7 @@ fn smoke_test() {
} }
#[test] #[test]
#[allow(dead_code)]
fn dynamic() { fn dynamic() {
events! { events! {
Event3 {} Event3 {}

View File

@ -2568,9 +2568,9 @@ pub enum Documentation {
/// ///
/// The pair of a language and a value is an equivalent to markdown: /// The pair of a language and a value is an equivalent to markdown:
/// ///
/// ```${language} /// <pre><code>```${language}
/// ${value} /// ${value}
/// ``` /// ```</code></pre>
#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)] #[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
#[serde(untagged)] #[serde(untagged)]
pub enum MarkedString { pub enum MarkedString {

View File

@ -356,7 +356,14 @@ impl Client {
capabilities.inlay_hint_provider, capabilities.inlay_hint_provider,
Some(OneOf::Left(true) | OneOf::Right(InlayHintServerCapabilities::Options(_))) Some(OneOf::Left(true) | OneOf::Right(InlayHintServerCapabilities::Options(_)))
), ),
LanguageServerFeature::DocumentColors => capabilities.color_provider.is_some(), LanguageServerFeature::DocumentColors => matches!(
capabilities.color_provider,
Some(
ColorProviderCapability::Simple(true)
| ColorProviderCapability::ColorProvider(_)
| ColorProviderCapability::Options(_)
)
),
} }
} }

View File

@ -1,10 +1,6 @@
#![cfg(windows)] #![cfg(windows)]
use std::{ use std::{env::set_current_dir, error::Error, path::Component};
env::set_current_dir,
error::Error,
path::{Component, Path, PathBuf},
};
use helix_stdx::path; use helix_stdx::path;
use tempfile::Builder; use tempfile::Builder;

View File

@ -1,3 +1,3 @@
[toolchain] [toolchain]
channel = "1.76.0" channel = "1.82.0"
components = ["rustfmt", "rust-src", "clippy"] components = ["rustfmt", "rust-src", "clippy"]