summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs
index e297d0c4c..2e40df66b 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -28,6 +28,7 @@ mod info;
mod inspector;
mod js;
mod lockfile;
+mod lsp;
mod media_type;
mod metrics;
mod module_graph;
@@ -258,6 +259,10 @@ async fn install_command(
tools::installer::install(flags, &module_url, args, name, root, force)
}
+async fn language_server_command() -> Result<(), AnyError> {
+ lsp::start()
+}
+
async fn lint_command(
flags: Flags,
files: Vec<PathBuf>,
@@ -992,6 +997,7 @@ fn get_subcommand(
} => {
install_command(flags, module_url, args, name, root, force).boxed_local()
}
+ DenoSubcommand::LanguageServer => language_server_command().boxed_local(),
DenoSubcommand::Lint {
files,
rules,