summaryrefslogtreecommitdiff
path: root/cli/tsc/99_main_compiler.js
AgeCommit message (Collapse)Author
2021-02-01fix(cli): fix handling of non-normalized specifier (#9357)Yoshiya Hinosawa
2021-02-01feat(lsp): add references code lens (#9316)Kitson Kelly
2021-01-22fix(lsp): handle mbc documents properly (#9151)Kitson Kelly
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2021-01-13feat(lsp): Add textDocument/implementation (#9071)Hirochika Matsumoto
Ref #8643
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-05refactor(core): simplify Deno.core initialisation, remove stale TODO (#8847)Bartek Iwańczuk
This commit rewrites initialisation of the "shared queue" and in effect prevents from double execution of "core/core.js" and "core/error.js". Previously both of these files were executed every time a "JsRuntime" was created. That lead to a situation where one copy of each script was included in the snapshot and then another copy would be executed after loading the snapshot. Effectively "JsRuntime::shared_init" was removed; instead execution of those scripts and actual initialisation of shared queue was split into two helper functions: "JsRuntime::js_init" and "JsRuntime::share_queue_init". Additionally stale TODO comments were removed.
2020-12-30fix(lsp): handle ts debug errors better (#8914)Kitson Kelly
Fixes #8864
2020-12-30feat(lsp): Implement textDocument/rename (#8910)hrsh7th
2020-12-24fix(lsp): provide diagnostics for unresolved modules (#8872)Kitson Kelly
2020-12-21refactor: rewrite lsp to be async (#8727)Luca Casonato
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-12-16refactor(lsp): optimise static assets (#8771)Kitson Kelly
Fixes #8158
2020-12-08feat(lsp): basic support for textDocument/completion (#8651)Luca Casonato
2020-12-07feat: add mvp language server (#8515)Kitson Kelly
Resolves #8400
2020-11-23fix(cli/tsc): allow non-standard extensions on imports (#8464)Nayeem Rahman
2020-11-03build: migrate to dlint (#8176)Bartek Iwańczuk
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
2020-11-03refactor(cli): cleanup compiler snapshot and tsc/module_graph (#8220)Kitson Kelly
2020-11-02refactor(cli): migrate runtime compile/bundle to new infrastructure (#8192)Kitson Kelly
Fixes #8060
2020-10-28fix(cli): restore tripleslash lib refs support (#8157)Kitson Kelly
Fixes #8147
2020-10-27fix(cli): do not throw on empty typescript files (#8143)Kitson Kelly
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-10-26refactor(cli): rewrite Deno.transpileOnly() to use SWC (#8090)Bartek Iwańczuk
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-10-23refactor(cli): move bundle check to new infrastructure (#8071)Kitson Kelly
2020-10-23refactor(cli): migrate run and cache to new infrastructure (#7996)Kitson Kelly
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-10-21feat(cli): add types for WeakRef/FinalizationRegistry (#8056)Kitson Kelly
Fixes #8051
2020-10-14refactor(cli): add tsc2 (#7942)Kitson Kelly
Ref #7225
2020-10-01refactor: add concept of 'legacy' compiler to enable non-breaking ↵Kitson Kelly
refactoring (#7762)
2020-09-26refactor: use JsRuntime to implement TSC (#7691)Bartek Iwańczuk
This commits removes "CompilerWorker" in favor of using "JsRuntime". "cli/ops/compiler.rs" has been removed in favor of inline registration of ops in "cli/tsc.rs"
2020-09-26refactor: prune unneeded JS code (#7689)Bartek Iwańczuk
2020-09-25refactor: remove tsc/40_error_stack.js (#7673)Bartek Iwańczuk
This commit removes cli/tsc/40_error_stack.js as it is not needed in TSC host. All errors originating in TSC are terminal and don't require source mapping hence we can rely on default stack traces provided by deno_core. Additionally tsc/06_util.js was removed and its code moved to tsc/99_main_compiler.js
2020-09-23fix: ignore fileExists in tsc host (#7635)Kitson Kelly
Fixes #7630
2020-09-18refactor: deno_fetch op crate (#7524)Bartek Iwańczuk
2020-09-16refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521)Bartek Iwańczuk
Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync
2020-09-14refactor: use ParsedModule and improve MediaTypes enum (#7456)Kitson Kelly
2020-09-12refactor: improve tsc diagnostics (#7420)Kitson Kelly
2020-09-09fix(tsc): config resolution using relative paths (#7392)Bartek Iwańczuk
2020-09-08feat(unstable): enable isolatedModules by default (#7327)Luca Casonato
2020-09-04fix: don't expose globalThis.__bootstrap (#7344)Kitson Kelly
2020-08-31feat(unstable): add Deno.futime and Deno.futimeSync (#7266)Casper Beyer
2020-08-31refactor: Compiler config in Rust (#7228)Bartek Iwańczuk
* port tsc_config.rs * cleanup options * bring back allowNonTsExtension * try * fix test * fix test2 * move config for bundling * remove Transpile compile request * remove dead code * remove more dead code * remove checkJs regex * fix * handle config str for runtime APIs * lint * runtimeCompile config in Rust * runtimeCompile and runtimeTranspile config in Rust * fix * remove lint supression * upgrade: jsonc-parser 0.13.0 * remove unneeded to_string() * upgrade: jsonc-parser 0.14.0 * remove AsRef<str>
2020-08-31refactor: remove dead code in tsc (#7277)Bartek Iwańczuk
2020-08-10fix(unstable): add missing globals to diagnostics (#6988)Luca Casonato
2020-08-10feat: Stabilize Deno.mainModule (#6993)Nayeem Rahman
2020-08-07Encode op errors as strings instead of numbers (#6977)Bartek Iwańczuk
2020-08-07Op crate for Web APIs (#6906)Bartek Iwańczuk
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-08-05fix: add missing globals to unstable diagnostics (#6960)Luca Casonato
2020-08-05feat(cli): custom http client for fetch (#6918)Luca Casonato
2020-07-24fix: deno-types directive should have higher precedence than ↵Bartek Iwańczuk
X-TypeScript-Types header (#6761)
2020-07-23refactor: remove more compiler runtime code (#6841)Bartek Iwańczuk
2020-07-22Reduce size of TypeScript Compiler snapshot (#6809)Ryan Dahl
This PR is intentionally ugly. It duplicates all of the code in cli/js2/ into cli/tsc/ ... because it's very important that we all understand that this code is unnecessarily duplicated in our binary. I hope this ugliness provides the motivation to clean it up. The typescript git submodule is removed, because it's a very large repo and contains all sorts of stuff we don't need. Instead the necessary files are copied directly into the deno repo. Hence +200k lines. COMPILER_SNAPSHOT.bin size ``` master 3448139 this branch 3320972 ``` Fixes #6812