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: 1 addition & 1 deletion crates/extension_api/src/settings.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Provides access to Zed settings.

#[path = "../wit/since_v0.2.0/settings.rs"]
#[path = "../wit/since_v0.8.0/settings.rs"]
mod types;

use crate::{Project, Result, SettingsLocation, Worktree, wit};
Expand Down
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,
/// The preferred line length (column at which to wrap).
pub preferred_line_length: u32,
}

/// The settings for a particular language server.
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 @@ -941,6 +941,7 @@ impl ExtensionImports for WasmState {
);
Ok(serde_json::to_string(&settings::LanguageSettings {
tab_size: settings.tab_size,
preferred_line_length: settings.preferred_line_length,
})?)
}
"lsp" => {
Expand Down
Loading