diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-01-06 02:38:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 02:38:23 +0100 |
commit | bb884182218b5c12c7354c93860d69f65f59752a (patch) | |
tree | 21622b6c51841442ef5b2ce5c31453d715d73317 /cli/lsp/tsc.rs | |
parent | 4c4791b5899afe585738ac0a15ba5c21d36952cc (diff) |
refactor(cli): remove 'js' module, simplify compiler snapshot (#9020)
This commit removes "js" module from "cli".
It contained stuff related to TypeScript compiler (snapshot,
declaration files) and thus it was moved to "tsc" module.
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index d40e18bbd..1182fae6b 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -5,7 +5,6 @@ use super::language_server::StateSnapshot; use super::text; use super::utils; -use crate::js; use crate::media_type::MediaType; use crate::tokio_util::create_basic_runtime; use crate::tsc; @@ -1025,7 +1024,7 @@ fn set_asset(state: &mut State, args: Value) -> Result<Value, AnyError> { /// server. pub fn start(debug: bool) -> Result<JsRuntime, AnyError> { let mut runtime = JsRuntime::new(RuntimeOptions { - startup_snapshot: Some(js::compiler_isolate_init()), + startup_snapshot: Some(tsc::compiler_snapshot()), ..Default::default() }); |