Skip to content
Merged
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
17 changes: 0 additions & 17 deletions src/extensions/gopls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ pub mod command {
// so probably a good idea to maintain both for a while.
pub(super) const TEST: &str = "test";
pub(super) const GOPLS_TEST: &str = "gopls.test";
pub(super) const GENERATE: &str = "generate";
pub(super) const GOPLS_GENERATE: &str = "gopls.generate";
}

impl LanguageClient {
Expand Down Expand Up @@ -44,21 +42,6 @@ impl LanguageClient {
}
}
}
command::GENERATE | command::GOPLS_GENERATE => {
if let Some(arguments) = &cmd.arguments {
if let Some(package) = arguments.get(0) {
let package = String::deserialize(package)?;
let recursive =
bool::deserialize(arguments.get(1).unwrap_or(&Value::Bool(false)))?;
let cmd = match (package, recursive) {
(package, false) => format!("term go generate -x {}", package),
(_, true) => "term go generate -x ./...".into(),
};
self.vim()?.command(cmd)?;
}
}
}

_ => return Ok(false),
}

Expand Down