Compare commits

...

3 Commits

Author SHA1 Message Date
Bekobi a3fcc460ae
Merge branch 'helix-editor:master' into file_watcher 2025-04-28 22:46:39 +02:00
RoloEdits fbc4e5798e
chore(msrv): bump from 1.76 to 1.82 (#13275)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-04-28 09:48:54 -05:00
Michael Davis 47cdd23e50
LSP: Fix `Client::supports_feature` check for 'colorProvider'
The old check would allow sending textDocument/documentColor requests
when the server declared `{"colorProvider": false}` in its capabilities
as this was `Some`:

    Some(ColorProviderCapability::Simple(false))

The Julia language server sets this explicitly to `false` in the wild.
2025-04-28 09:44:25 -04:00
7 changed files with 15 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -356,7 +356,14 @@ impl Client {
capabilities.inlay_hint_provider,
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)]
use std::{
env::set_current_dir,
error::Error,
path::{Component, Path, PathBuf},
};
use std::{env::set_current_dir, error::Error, path::Component};
use helix_stdx::path;
use tempfile::Builder;

View File

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