Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/extension_api/wit/since_v0.8.0/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use std::{collections::HashMap, num::NonZeroU32};
pub struct LanguageSettings {
/// How many columns a tab should occupy.
pub tab_size: NonZeroU32,
/// Whether to indent with hard tabs (true) or spaces (false).
pub hard_tabs: bool,
/// The preferred line length (column at which to wrap).
pub preferred_line_length: u32,
}
Expand Down
1 change: 1 addition & 0 deletions crates/extension_host/src/wasm_host/wit/since_v0_8_0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,7 @@ impl ExtensionImports for WasmState {
);
Ok(serde_json::to_string(&settings::LanguageSettings {
tab_size: settings.tab_size,
hard_tabs: settings.hard_tabs,
preferred_line_length: settings.preferred_line_length,
})?)
}
Expand Down
Loading