summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-06-22 21:48:01 -0400
committerGitHub <noreply@github.com>2021-06-22 21:48:01 -0400
commit477273085f8e5f578ea3ee12c2183c44133af05d (patch)
tree3d38c3fb69d4dc71f6998810270ff15c5b0a9e8e /cli/main.rs
parent02f7a52235e9db54c5d8cb2015ece0fb1be03362 (diff)
chore: use lsp to get parent process id (#11083)
Removes the previously added internal `--parent-pid` flag. This solution is better.
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 29151f14b..38db7d13f 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -467,8 +467,8 @@ async fn install_command(
tools::installer::install(flags, &module_url, args, name, root, force)
}
-async fn lsp_command(parent_pid: Option<u32>) -> Result<(), AnyError> {
- lsp::start(parent_pid).await
+async fn lsp_command() -> Result<(), AnyError> {
+ lsp::start().await
}
async fn lint_command(
@@ -1295,7 +1295,7 @@ fn get_subcommand(
} => {
install_command(flags, module_url, args, name, root, force).boxed_local()
}
- DenoSubcommand::Lsp { parent_pid } => lsp_command(parent_pid).boxed_local(),
+ DenoSubcommand::Lsp => lsp_command().boxed_local(),
DenoSubcommand::Lint {
files,
rules,