Kitson Kelly
935133f53a
feat(cli): Update to TypeScript 4.4 ( #11678 )
2021-08-27 10:12:59 +10:00
Kitson Kelly
0d83afd939
fix(lsp): better handling of languageId ( #11755 )
...
Fixes #11521
Fixes #11742
2021-08-19 13:19:12 +10:00
Pankaj Patil
e55454613c
docs(lsp): change deno/registryStatus -> deno/registryState ( #11760 )
2021-08-18 12:17:52 -04:00
David Sherret
15a763152f
chore: move test files to testdata directory ( #11601 )
2021-08-11 10:20:47 -04:00
Kitson Kelly
f7e416bc7f
feat(lsp): support clients which do not support disabled code actions ( #11612 )
...
Closes: #11610
2021-08-10 09:56:34 +10:00
TheAifam5
353a4a1af3
feat: Add --unsafely-treat-insecure-origin-as-secure flag to disable SSL verification ( #11324 )
...
This commit adds "--unsafely-treat-insecure-origin-as-secure" flag
that allows to disable SSL verification for all domains, or specific
domains if they were passed as an argument to the flag.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-09 16:53:21 +02:00
David Sherret
466d3df9d1
refactor: make ParsedModule
implement Sync
( #11581 )
2021-08-06 10:36:16 -04:00
Jean Pierre
728d205d9d
feat(lsp): implement refactoring code actions ( #11555 )
...
Closes: denoland/vscode_deno#433
2021-08-06 11:46:32 +10:00
David Sherret
a13db3650e
fix(lsp): do not output to stderr before exiting the process ( #11562 )
2021-07-31 21:05:09 -04:00
Yusuke Tanaka
8f00b5542c
chore: upgrade Rust to 1.54.0 ( #11554 )
2021-07-30 15:03:41 +02:00
Kitson Kelly
667b026798
feat(lsp): ability to set DENO_DIR via settings ( #11527 )
...
Ref: denoland/vscode_deno#287
2021-07-28 07:25:09 +10:00
Kitson Kelly
c6f4e41529
refactor(lsp): minor improvements to handling closed documents ( #11518 )
...
Ref #10897
2021-07-27 07:40:12 +10:00
Kitson Kelly
72ac9c3ae0
fix(lsp): handle importmaps properly ( #11496 )
...
Fixes: #11146
Fixes: #11456
Fixes: #10439
2021-07-25 15:33:42 +10:00
Kitson Kelly
bdc53b45b7
fix(lsp): do not populate maybe_type slot with import type dep ( #11477 )
...
Fixes: #11458
Fixes: #11461
Closes: denoland/vscode_deno#414
2021-07-22 15:00:45 +10:00
Kitson Kelly
c34fef4b71
feat(lsp): add workspace config to status page ( #11459 )
2021-07-21 11:50:43 +10:00
David Sherret
79ac050d29
chore: upgrade to swc 0.46 ( #11402 )
2021-07-14 21:28:01 -04:00
Bartek Iwańczuk
27e1b4cb5a
feat(core): return v8::Value from JsRuntime::execute_script ( #11129 )
...
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-07-08 18:56:53 +02:00
David Sherret
7fc0e8ec8c
chore: use parking_lot for synchronization primitives to align with tokio ( #11289 )
...
parking_lot is already transitively used in tokio via the "full" cargo feature
2021-07-06 23:48:01 -04:00
Jimmy Wärting
2c0b0e45b7
refactor: asynchronous blob backing store ( #10969 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-07-05 15:34:37 +02:00
David Sherret
1f4cdc067a
fix(lsp): reload import registries should not error when the module registries directory does not exist ( #11123 )
2021-06-25 21:44:27 -04:00
Kitson Kelly
9e51766f3e
feat(lsp): dependency hover information ( #11090 )
2021-06-25 09:06:51 +10:00
Kitson Kelly
8ed83cba7e
fix(lsp): handle invalid config setting better ( #11104 )
...
Fixes #11100
Fixes #10808
2021-06-24 22:41:04 +10:00
David Sherret
477273085f
chore: use lsp to get parent process id ( #11083 )
...
Removes the previously added internal `--parent-pid` flag. This solution is better.
2021-06-22 21:48:01 -04:00
Bartek Iwańczuk
9105892ec8
refactor: unify JavaScript script execution method ( #11043 )
...
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-22 01:45:41 +02:00
Kitson Kelly
281c4cd8fc
feat(cli): support "types" when type checking ( #10999 )
...
Fixes #10677
2021-06-22 07:18:32 +10:00
Satya Rohith
952caa79b3
feat(lsp): quick fix actions to ignore lint errors ( #10627 )
...
Closes #10122
2021-06-21 16:43:35 +10:00
David Sherret
60071c941b
fix(lsp): do not rename in strings and comments ( #11041 )
2021-06-19 11:23:50 -04:00
David Sherret
419fe2e6b4
chore: fix new linting errors flagged by Rust 1.53 ( #11029 )
2021-06-17 21:48:16 -04:00
David Sherret
aecf989d43
chore(lsp): add --parent-pid <pid>
flag ( #11023 )
...
This commit adds a new `--parent-pid <pid>` flag to `deno lsp` that when provided starts a task that checks for the existence of the provided process id (ex. vscode's) every 30 seconds. If the process doesn't exist (meaning the deno process has nothing interacting with it), then it terminates itself.
2021-06-17 19:57:58 -04:00
Yusuke Tanaka
8031644e65
chore: upgrade Rust to 1.53.0 ( #11021 )
2021-06-17 15:56:30 -04:00
Ryan Dahl
9c42b5e03b
Remove various unnecessary allow(clippy) declarations ( #10971 )
2021-06-15 19:22:28 +02:00
Bartek Iwańczuk
6091ea098a
refactor: merge deno_file crate into deno_web ( #10914 )
...
This refactor makes it so there's one less crate to publish on each release.
2021-06-10 15:26:10 +02:00
Kitson Kelly
6b826033a4
feat(lsp): add additional logging information ( #10890 )
2021-06-09 10:00:26 +10:00
Kitson Kelly
3b3be024fa
feat(lsp): add test code lens ( #10874 )
...
Ref #8643
2021-06-07 21:38:07 +10:00
jeiea
633c5aab1f
fix( #10747 ): cannot read config option in windows ( #10791 )
...
Fixes #10747
2021-06-06 15:00:17 +10:00
Kitson Kelly
e8be116ab6
fix(lsp): refactor, fix issues and add benchmark for code lens ( #10841 )
2021-06-05 07:31:44 +10:00
Kitson Kelly
844a1317ec
fix( #10775 ): diagnostics update on dependency changes ( #10817 )
...
Fixes #10775
2021-06-03 21:13:53 +10:00
Kitson Kelly
473713c621
fix( #10815 ): lsp only responds to formatting for md, json, jsonc ( #10816 )
...
Fixes #10815
2021-06-02 20:29:58 +10:00
Kitson Kelly
bb5bf91067
feat(lsp): registry auto discovery ( #10813 )
...
Closes: #10194
Fixes: #10468
2021-06-01 21:53:08 +10:00
Kitson Kelly
9abb899f5f
fix(lsp): updates to workspace config are processed sync ( #10812 )
2021-06-01 19:24:36 +10:00
Nayeem Rahman
3a33510bd4
fix(cli): Don't statically error on dynamic unmapped bare specifiers ( #10618 )
...
Fixes #10168
Fixes #10615
Fixes #10616
2021-05-31 10:20:34 +10:00
Kitson Kelly
bbefceddb9
fix( #10765 ): lsp import fixes include extensions ( #10778 )
...
Fixes #10765
2021-05-29 21:21:11 +10:00
Kitson Kelly
59237d195f
feat(cli): upgrade to TypeScript 4.3 ( #9960 )
2021-05-28 09:33:11 +10:00
Yusuke Tanaka
02a4e7dc7c
feat(lsp): show hints from deno_lint
in addition to messages ( #10739 )
2021-05-26 08:15:09 +10:00
Kitson Kelly
cd4194a5e4
feat(lsp): diagnostics for deno types and triple-slash refs ( #10699 )
...
Fixes #9823
2021-05-25 12:34:01 +10:00
Kitson Kelly
014d8d51c0
fix(lsp): re-enable the per resource configuration without a deadlock ( #10625 )
...
Fixes #10603
2021-05-20 19:56:48 +10:00
Kitson Kelly
91decbfabf
fix( #10695 ): deps diagnostics include data property ( #10696 )
...
Fixes #10695
2021-05-19 22:28:23 +10:00
Satya Rohith
19e4080fa2
fix(lsp): make failed to load config error descriptive ( #10685 )
2021-05-18 16:48:11 -04:00
Kitson Kelly
12bfdef62c
feat(lsp): provide X-Deno-Warning as a diagnostic ( #10680 )
...
Closes #9932
2021-05-18 20:19:52 +10:00
Satya Rohith
d69a5fbe1a
feat(lsp): support formatting json and markdown files ( #10180 )
...
Resolves #9447
Resolves #9415
2021-05-18 16:35:46 +10:00