Whitespace map more (#38827)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2025-09-24 23:11:40 +00:00
committed by GitHub
parent 03f9cf4414
commit ce7b02e3a1
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -545,8 +545,8 @@ impl settings::Settings for AllLanguageSettings {
edit_predictions_disabled_in: settings.edit_predictions_disabled_in.unwrap(),
show_whitespaces: settings.show_whitespaces.unwrap(),
whitespace_map: WhitespaceMap {
space: SharedString::new(whitespace_map.space.to_string()),
tab: SharedString::new(whitespace_map.tab.to_string()),
space: SharedString::new(whitespace_map.space.unwrap().to_string()),
tab: SharedString::new(whitespace_map.tab.unwrap().to_string()),
},
extend_comment_on_newline: settings.extend_comment_on_newline.unwrap(),
inlay_hints: InlayHintSettings {
@@ -355,8 +355,8 @@ pub enum ShowWhitespaceSetting {
#[skip_serializing_none]
#[derive(Clone, Debug, Default, Serialize, Deserialize, JsonSchema, MergeFrom, PartialEq)]
pub struct WhitespaceMapContent {
pub space: char,
pub tab: char,
pub space: Option<char>,
pub tab: Option<char>,
}
/// The behavior of `editor::Rewrap`.