Nayeem Rahman
518e4d3b3a
perf(lsp): store settings in Arc ( #24191 )
2024-06-13 20:57:14 +01:00
Divy Srivastava
05ec50672d
chore: remove dead code ( #24185 )
2024-06-12 10:13:03 -04:00
Nayeem Rahman
3b9eeba02c
fix(lsp): don't sort workspace files ( #24180 )
2024-06-11 21:06:43 +01:00
Nayeem Rahman
0c199acb88
refactor(lsp): collect npm reqs by scope ( #24172 )
2024-06-11 18:14:36 +01:00
Nayeem Rahman
7c5dbd5d54
feat(lsp): workspace jsr resolution ( #24121 )
2024-06-10 17:03:17 +01:00
David Sherret
386d5c8310
refactor: remove PermissionsContainer
in deno_runtime ( #24119 )
...
Also removes permissions being passed in for node resolution. It was
completely useless because we only checked it for reading package.json
files, but Deno reading package.json files for resolution is perfectly
fine.
My guess is this is also a perf improvement because Deno is doing less
work.
2024-06-06 23:37:53 -04:00
David Sherret
3341c50b6a
refactor: don't share reqwest::HttpClient
across tokio runtimes ( #24092 )
...
This also fixes several issues where we weren't properly creating http
clients with the user's settings.
2024-06-03 21:17:08 +00:00
Nayeem Rahman
556012320e
feat(lsp): support .npmrc ( #24042 )
...
Closes #24040
2024-05-30 03:16:15 +00:00
Luca Casonato
e084fe10a9
feat(lint): add no-boolean-literal-for-arguments
rule and enable no-unused-vars
for jsx files ( #24034 )
...
* https://github.com/denoland/deno_lint/pull/1271
* https://github.com/denoland/deno_lint/pull/1277
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-05-30 00:09:16 +00:00
Nayeem Rahman
3d3722507e
perf(repl): don't walk workspace in repl language server ( #24037 )
2024-05-29 21:31:09 +01:00
David Sherret
94f040ac28
fix: bump cache sqlite dbs to v2 for WAL journal mode change ( #24030 )
...
In https://github.com/denoland/deno/pull/23955 we changed the sqlite db
journal mode to WAL. This causes issues when someone is running an old
version of Deno using TRUNCATE and a new version because the two fight
against each other.
2024-05-29 18:38:18 +00:00
David Sherret
448fe67b7a
feat(vendor): support modifying remote files in vendor folder without checksum errors ( #23979 )
...
Includes:
* https://github.com/denoland/deno_graph/pull/486
* https://github.com/denoland/deno_graph/pull/488
* https://github.com/denoland/deno_lockfile/pull/25
* https://github.com/denoland/deno_lockfile/pull/22
* https://github.com/denoland/deno_graph/pull/483
* https://github.com/denoland/deno_graph/pull/470
2024-05-28 14:58:43 -04:00
Bartek Iwańczuk
959739f609
FUTURE: initial support for .npmrc file ( #23560 )
...
This commit adds initial support for ".npmrc" files.
Currently we only discover ".npmrc" files next to "package.json" files
and discovering these files in user home dir is left for a follow up.
This pass supports "_authToken" and "_auth" configuration
for providing authentication.
LSP support has been left for a follow up PR.
Towards https://github.com/denoland/deno/issues/16105
2024-05-23 23:26:23 +02:00
Nayeem Rahman
439b3b8db9
refactor(lsp): unify caching into LspCache ( #23746 )
2024-05-09 20:22:27 +01:00
Nayeem Rahman
ac9e07bdfa
chore(lsp): revert import map pre-resolution for jsxImportSource ( #23619 )
2024-05-01 01:44:20 +01:00
Luca Casonato
6cdf81db7c
feat(cli): add support for jsxImportSourceTypes ( #23419 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-04-30 18:12:35 +00:00
Kenta Moriuchi
783533d2e3
FUTURE: remove import assertions support for JavaScript ( #23541 )
...
Ref #17944 , https://github.com/swc-project/swc/issues/8893
TypeScript removes the `assert` keywords in the transpile, so this PR
only works for JavaScript files
2024-04-29 22:43:05 +02:00
Nayeem Rahman
e0f849289f
chore(lsp): remove ConfigSnapshot ( #23579 )
2024-04-27 21:35:41 +01:00
Nayeem Rahman
f8ddcc4f78
refactor(lsp): unify resolver types into LspResolver ( #23514 )
2024-04-26 21:39:33 +01:00
Nayeem Rahman
ac71d876d7
fix(lsp): inherit missing fmt and lint config from parent scopes ( #23547 )
2024-04-24 22:14:01 +02:00
Nayeem Rahman
79e6751cf7
perf(lsp): only store parsed sources for open documents ( #23454 )
2024-04-20 02:00:03 +01:00
David Sherret
c497e766f1
refactor: move redirect handling into deno_graph ( #23444 )
2024-04-19 01:43:28 +00:00
Igor Zinkovsky
b3d7df5535
perf: v8 code cache ( #23081 )
...
This PR enables V8 code cache for ES modules and for `require` scripts
through `op_eval_context`. Code cache artifacts are transparently stored
and fetched using sqlite db and are passed to V8. `--no-code-cache` can
be used to disable.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-04-17 07:19:55 -07:00
Nayeem Rahman
f1ea8ca358
perf(lsp): use a stub module in tsc for failed resolutions ( #23313 )
2024-04-11 21:55:27 +01:00
Nayeem Rahman
61f1b8e8dc
fix(lsp): respect DENO_FUTURE for BYONM config ( #23207 )
2024-04-05 16:18:48 +01:00
Nayeem Rahman
2b1c6e172e
feat(lsp): respect nested deno.json for fmt and lint config ( #23159 )
2024-04-02 23:02:50 +01:00
Nayeem Rahman
0144594044
fix(lsp): don't apply preload limit to workspace walk ( #23123 )
2024-03-31 21:39:23 +01:00
Nathan Whitaker
2dc37f411e
feat(task): Task description in the form of comments ( #23101 )
...
Closes #22786 .
TLDR;
```jsonc
{
"tasks": {
// Some comment
//
// describing what the task does
"dev": "deno run -A --watch main.ts"
}
}
```
```bash
deno task
```
![Screenshot 2024-03-27 at 1 43
49 PM](https://github.com/denoland/deno/assets/17734409/7a14da8c-8e63-45ba-9bfb-590d250b56a9 )
2024-03-27 14:14:27 -07:00
Nayeem Rahman
3b61104e2a
refactor(lsp): unify config file data into ConfigTree ( #23032 )
2024-03-26 15:52:20 +00:00
Nayeem Rahman
5a716d1d06
refactor(lsp): factor out workspace walk from resolver update ( #22937 )
2024-03-21 04:29:52 +00:00
Nayeem Rahman
eca7b0cddd
chore(lsp): remove enablePaths compat path ( #22895 )
2024-03-13 20:22:02 +00:00
David Sherret
2dfc0aca7c
fix(publish): make include and exclude work ( #22720 )
...
1. Stops `deno publish` using some custom include/exclude behaviour from
other sub commands
2. Takes ancestor directories into account when resolving gitignore
3. Backards compatible change that adds ability to unexclude an exclude
by using a negated glob at a more specific level for all sub commands
(see https://github.com/denoland/deno_config/pull/44 ).
2024-03-07 20:16:32 -05:00
David Sherret
6567dc94a9
fix(lsp): import map expansion ( #22553 )
2024-02-24 00:21:09 -05:00
David Sherret
4e72ca313a
refactor: use globbing from deno_config ( #21925 )
2024-01-15 19:15:39 -05:00
林炳权
96b581bdd2
chore: update to Rust 1.75 ( #21731 )
2024-01-01 23:22:48 +01:00
David Sherret
7e72f3af61
chore: update copyright to 2024 ( #21753 )
2024-01-01 19:58:21 +00:00
Bartek Iwańczuk
cdbf902499
feat(lsp): allow to connect V8 inspector ( #21482 )
...
This commit adds a way to connect to the TS compiler host that is run
as part of the "deno lsp" subcommand. This can be done by specifying
"DENO_LSP_INSPECTOR" variable.
---------
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2023-12-22 02:04:02 +01:00
Nayeem Rahman
123d9ea047
feat(lsp): debug log file ( #21500 )
2023-12-08 17:04:56 +00:00
Nayeem Rahman
91626bac49
perf(lsp): avoid redundant getNavigationTree() calls ( #21396 )
2023-11-30 16:23:47 +00:00
David Sherret
60b5d32d90
fix(lsp): handle byonm specifiers in jupyter notebooks ( #21332 )
...
Part of https://github.com/denoland/deno/issues/21308
2023-11-24 17:35:33 -05:00
林炳权
9a1c697045
chore: update to Rust 1.74 ( #21210 )
...
Update to Rust 1.74
2023-11-17 08:06:28 -07:00
Nayeem Rahman
a7bd0cf7a8
perf(lsp): cleanup workspace settings scopes ( #20937 )
2023-10-24 21:27:27 +01:00
Nayeem Rahman
659cd90758
feat(lsp): respect "typescript.preferences.quoteStyle" when deno.json is absent ( #20891 )
2023-10-17 02:51:42 +01:00
Nayeem Rahman
2d1af0cf51
feat(lsp): jupyter notebook analysis ( #20719 )
2023-09-29 20:44:59 +01:00
Nayeem Rahman
939279aa10
feat(lsp): support more vscode built-in settings ( #20679 )
2023-09-26 03:54:07 +01:00
Nayeem Rahman
33f84321b2
refactor(lsp): implement "deno.cacheOnSave" server-side ( #20632 )
2023-09-24 17:59:42 +01:00
Nayeem Rahman
a4ac6a3f5f
refactor(lsp): store language sections in WorkspaceSettings ( #20593 )
...
When sending configuration requests to the client, reads `javascript`
and `typescript` sections in addition to `deno`.
The LSP's initialization options now accepts `javascript` and
`typescript` namespaces.
2023-09-21 06:46:39 +01:00
Nayeem Rahman
f5963b6a05
refactor(lsp): cleanup document preload ( #20520 )
2023-09-18 20:58:16 +01:00
Nayeem Rahman
022664aab4
feat(lsp): WorkspaceSettings::disablePaths ( #20475 )
2023-09-13 17:30:27 +01:00
Nayeem Rahman
bdf1850679
fix(lsp): match enable_paths by whole path components ( #20470 )
2023-09-12 14:36:50 +01:00