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 Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zed_angular"
version = "0.0.5"
version = "0.0.6"
edition = "2021"
publish = false
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion extension.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id = "angular"
name = "Angular"
description = "Angular Language support"
version = "0.0.5"
version = "0.0.6"
schema_version = 1
authors = ["nathansbradshaw"]
repository = "https://github.com/nathansbradshaw/zed-angular"
Expand Down
10 changes: 5 additions & 5 deletions src/angular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ impl zed::Extension for AngularExtension {
) -> Result<zed::Command> {
let user_settings: UserSettings =
LspSettings::for_worktree(&language_server_id.to_string(), worktree)?
.initialization_options
.map(serde_json::from_value)
.transpose()
.map_err(|e| format!("Failed to parse initialization_options: {}", e))?
.unwrap_or_default();
.initialization_options
.map(serde_json::from_value)
.transpose()
.map_err(|e| format!("Failed to parse initialization_options: {}", e))?
.unwrap_or_default();

let server_path = self.server_script_path(language_server_id)?;
let current_dir = env::current_dir().unwrap_or_else(|_| PathBuf::new());
Expand Down
Loading