summaryrefslogtreecommitdiff
path: root/cli/lsp/tsc.rs
AgeCommit message (Collapse)Author
2021-11-25chore: upgrade lspower to 1.4.0 (#12894)Bartek Iwańczuk
2021-11-23fix(cli): config file should resolve paths relative to the config file (#12867)David Sherret
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
2021-11-23feat(lsp): add type definition provider (#12789)Kitson Kelly
2021-11-23feat(lsp): add workspace symbol provider (#12787)Kitson Kelly
2021-11-18refactor(lsp): remove `Documents` mutex and require `Documents` to be ↵David Sherret
mutated to change it (#12747)
2021-11-17fix(lsp): retain module dependencies when parse is invalid (#12782)Kitson Kelly
Fixes #12753
2021-11-16refactor: re-export anyhow from deno_core (#12777)Ryan Dahl
2021-11-12refactor(lsp): prefer using document instead of documents collection (#12720)David Sherret
2021-11-09chore(lsp): align ScriptElementKind to current versions of TypeScript/vscode ↵Kitson Kelly
(#12663)
2021-11-08refactor: move `mod tokio_util` to runtime (#12332)Bert Belder
This avoids a bunch of duplicated code.
2021-11-07fix(lsp): display signature docs as markdown (#12636)Luca Casonato
These were previously displayed as plain text. Now they are displayed as `MarkupContent` with type `Markdown`.
2021-10-29refactor(lsp): use deno_graph and single document struct (#12535)Kitson Kelly
Closes #12473
2021-10-11refactor: integrate deno_graph into CLI (#12369)Kitson Kelly
2021-09-16fix(lsp): align filter text to vscode logic (#12081)Kitson Kelly
Fixes #11861
2021-09-07refactor(lsp): use deno_ast and cache swc ASTs (#11780)David Sherret
2021-08-27feat(cli): Update to TypeScript 4.4 (#11678)Kitson Kelly
2021-08-06feat(lsp): implement refactoring code actions (#11555)Jean Pierre
Closes: denoland/vscode_deno#433
2021-07-30chore: upgrade Rust to 1.54.0 (#11554)Yusuke Tanaka
2021-07-25fix(lsp): handle importmaps properly (#11496)Kitson Kelly
Fixes: #11146 Fixes: #11456 Fixes: #10439
2021-07-08feat(core): return v8::Value from JsRuntime::execute_script (#11129)Bartek Iwańczuk
This commit changes return type of JsRuntime::execute_script to include v8::Value returned from evaluation. When embedding deno_core it is sometimes useful to be able to inspect script evaluation value without the hoops of adding ops to store the value on the OpState. v8::Global<v8::Value> is used so consumers don't have to pass scope themselves.
2021-06-25feat(lsp): dependency hover information (#11090)Kitson Kelly
2021-06-22refactor: unify JavaScript script execution method (#11043)Bartek Iwańczuk
This commit renames "JsRuntime::execute" to "JsRuntime::execute_script". Additionally same renames were applied to methods on "deno_runtime::Worker" and "deno_runtime::WebWorker". A new macro was added to "deno_core" called "located_script_name" which returns the name of Rust file alongside line no and col no of that call site. This macro is useful in combination with "JsRuntime::execute_script" and allows to provide accurate place where "one-off" JavaScript scripts are executed for internal runtime functions. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2021-06-22feat(cli): support "types" when type checking (#10999)Kitson Kelly
Fixes #10677
2021-06-19fix(lsp): do not rename in strings and comments (#11041)David Sherret
2021-06-15Remove various unnecessary allow(clippy) declarations (#10971)Ryan Dahl
2021-06-05fix(lsp): refactor, fix issues and add benchmark for code lens (#10841)Kitson Kelly
2021-06-02fix(#10815): lsp only responds to formatting for md, json, jsonc (#10816)Kitson Kelly
Fixes #10815
2021-05-29fix(#10765): lsp import fixes include extensions (#10778)Kitson Kelly
Fixes #10765
2021-05-28feat(cli): upgrade to TypeScript 4.3 (#9960)Kitson Kelly
2021-05-11feat(lsp): add internal debugging logging (#10438)Kitson Kelly
Ref: #10368
2021-05-10refactor(cli): replace loading file for --config flag with generic structure ↵Bartek Iwańczuk
(#10481) Currently file passed to --config file is parsed using TsConfig structure that does multiple things when loading the file. Instead of relying on that structure I've introduced ConfigFile structure that can be updated to sniff out more fields from the config file in the future.
2021-05-06refactor(ops): replace `ZeroCopyBuf` arg by 2nd generic deserializable arg ↵Aaron O'Mullan
(#10448)
2021-05-02clean(cli): prefix all op functions with op_ (#10463)Aaron O'Mullan
Makes the codebase more searchable and helps distinguish op functions from helper functions Besides tests/examples/benches this pattern appears to be used everywhere else in the codebase
2021-05-01fix(console): Remove `console.timeStamp` from types (#10455)Liam Murphy
Fixes #10444
2021-04-25refactor(core): move op cache sync responsibility to rust space (#10340)Aaron O'Mullan
Even if bootstrapping the JS runtime is low level, it's an abstraction leak of core to require users to call `Deno.core.ops()` in JS space. So instead we're introducing a `JsRuntime::sync_ops_cache()` method, once we have runtime extensions a new runtime will ensure the ops cache is setup (for the provided extensions) and then loading/unloading plugins should be the only operations that require op cache syncs
2021-04-20feat(lsp): Implement textDocument/documentSymbol (#9981)Jean Pierre
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-20feat(lsp): Implement textDocument/semanticTokens/full (#10233)Jean Pierre
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-19feat(lsp): implement textDocument/prepareCallHierarchy (#10061)Jean Pierre
2021-04-12refactor(deno): remove concept of bin & json ops (#10145)Aaron O'Mullan
2021-04-06fix(lsp): folding range adjustment panic (#10030)Kitson Kelly
Fixes #10029
2021-04-02feat(lsp): implement textDocument/foldingRange (#9900)Jean Pierre
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-01fix(lsp): ensure insert_text is passed back on completions (#9951)Kitson Kelly
Fixes #9920
2021-03-31refactor: new optimized op-layer using serde_v8 (#9843)Aaron O'Mullan
- Improves op performance. - Handle op-metadata (errors, promise IDs) explicitly in the op-layer vs per op-encoding (aka: out-of-payload). - Remove shared queue & custom "asyncHandlers", all async values are returned in batches via js_recv_cb. - The op-layer should be thought of as simple function calls with little indirection or translation besides the conceptually straightforward serde_v8 bijections. - Preserve concepts of json/bin/min as semantic groups of their inputs/outputs instead of their op-encoding strategy, preserving these groups will also facilitate partial transitions over to v8 Fast API for the "min" and "bin" groups
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-03-26refactor(lsp): remove unused code (#9897)Yusuke Tanaka
2021-03-25upgrade: Rust 1.51.0 (#9895)Yusuke Tanaka
2021-03-25feat(lsp): add import completions (#9821)Kitson Kelly
2021-03-24feat(lsp): implement textDocument/selectionRange (#9845)Jean Pierre
Ref: #8643
2021-03-16refactor(lsp): refactor completions and add tests (#9789)Kitson Kelly
2021-03-10fix(lsp): allow on disk files to change (#9746)Kitson Kelly
Fixes #9348