diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-12-07 21:46:39 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 21:46:39 +1100 |
commit | 301d3e4b6849d24154ac2d65c00a9b30223d000e (patch) | |
tree | ab3bc074493e6c9be8d1875233bc141bdc0da3b4 /cli/main.rs | |
parent | c8e9b2654ec0d54c77bb3f49fa31c3986203d517 (diff) |
feat: add mvp language server (#8515)
Resolves #8400
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 6 |
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, |