Nayeem Rahman
3659781f88
feat(lsp): registry completions for import-mapped specifiers ( #24792 )
2024-07-30 23:26:09 +01:00
David Sherret
3bda8eb4fe
fix(lsp): support npm workspaces and fix some resolution issues ( #24627 )
...
Makes the lsp use the same code as the rest of the cli.
2024-07-18 18:16:35 -04:00
David Sherret
7ed90a20d0
fix: better handling of npm resolution occurring on workers ( #24094 )
...
Closes https://github.com/denoland/deno/issues/24063
2024-06-05 17:04:16 +02:00
Nayeem Rahman
72088f2f52
fix(lsp): complete exports for import mapped jsr specifiers ( #24054 )
2024-06-03 21:32:28 +01:00
Nayeem Rahman
0a30897925
refactor(lsp): determine file referrer for each document ( #23867 )
2024-05-23 17:31:56 +01:00
Nayeem Rahman
439b3b8db9
refactor(lsp): unify caching into LspCache ( #23746 )
2024-05-09 20:22:27 +01:00
Nayeem Rahman
e0f849289f
chore(lsp): remove ConfigSnapshot ( #23579 )
2024-04-27 21:35:41 +01: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
2b1c6e172e
feat(lsp): respect nested deno.json for fmt and lint config ( #23159 )
2024-04-02 23:02:50 +01:00
Nayeem Rahman
15f5f74eb7
feat(unstable/pm): support version contraints in 'deno add' ( #22646 )
2024-03-01 21:34:13 +00:00
Nayeem Rahman
3a43568481
feat(lsp): jsr specifier completions ( #22612 )
2024-02-29 03:54:16 +00:00
Nayeem Rahman
34c8d17140
fix(lsp): complete npm specifier versions correctly ( #22332 )
2024-02-10 01:27:04 +00:00
David Sherret
7e72f3af61
chore: update copyright to 2024 ( #21753 )
2024-01-01 19:58:21 +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
Nayeem Rahman
a7bd0cf7a8
perf(lsp): cleanup workspace settings scopes ( #20937 )
2023-10-24 21:27:27 +01:00
Nayeem Rahman
ebb7fe412e
fix(lsp): show diagnostics for untitled files ( #20916 )
2023-10-16 20:21:57 +01:00
Nayeem Rahman
2d1af0cf51
feat(lsp): jupyter notebook analysis ( #20719 )
2023-09-29 20:44:59 +01:00
Nayeem Rahman
9004117790
fix(lsp): refresh npm completions on each character ( #20565 )
2023-09-19 12:01:06 +00:00
Nayeem Rahman
fa18878f54
fix(lsp): include JSON modules in local import completions ( #20536 )
2023-09-17 07:50:30 +01:00
sigmaSd
be1fc754a1
feat(lsp): provide the deno.cache command server-side ( #20111 )
...
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2023-09-05 16:36:35 +01:00
Nayeem Rahman
b5f032df73
feat(lsp): npm specifier completions ( #20121 )
2023-08-29 10:22:05 -05:00
David Sherret
05f838a57c
refactor: use deno_cache_dir crate ( #20092 )
...
Uses https://github.com/denoland/deno_cache/pull/26
2023-08-08 14:23:02 +00:00
David Sherret
1cefa831fd
feat(unstable): optional deno_modules
directory ( #19977 )
...
Closes #15633
2023-08-02 00:49:09 +00:00
David Sherret
21cc279481
refactor: abstract away file system to be buried inside HttpCache ( #19760 )
...
This improves the HttpCache to make it being stored on the file system
an implementation detail.
2023-07-08 16:06:45 -04:00
David Sherret
7f15126f23
chore(tests): test_util - Add PathRef
( #19450 )
...
This adds a new `PathRef` struct to test_util for making it easier to
work with paths in test code. I'm going to expand on this more in the
future.
2023-06-10 11:09:45 -04:00
David Sherret
28a72d5488
feat(lsp): ability to configure document pre-load limit ( #19097 )
...
Adds a `deno.preloadLimit` option (ex. `"deno.preloadLimit": 2000`)
which specifies how many file entries to traverse on the file system
when the lsp loads or its configuration changes.
Closes #18955
2023-05-11 17:17:14 -04:00
Yiyu Lin
d790ea7d53
refactor(cli,ext,ops): cleanup regex
with lazy-regex
( #17296 )
...
- bump deps: the newest `lazy-regex` need newer `oncecell` and
`regex`
- reduce `unwrap`
- remove dep `lazy_static`
- make more regex cached
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-04-13 03:08:01 +02:00
David Sherret
bac8e4f6f2
fix(repl): disable language server document preloading in the repl ( #18543 )
...
This was an oversight because the repl uses the language server under
the hood. Also, never preloads from a root directory.
Part of #18538
2023-04-01 12:02:44 -04:00
David Sherret
89bbbd102c
refactor(lsp): remove boolean parameters on documents.documents(...)
( #18493 )
...
I think this makes things clearer at the call sites.
2023-03-29 16:25:48 -04:00
David Sherret
2fcf1f14cf
feat: TypeScript 5.0.2 (except decorators) ( #18294 )
...
This upgrades TypeScript to 5.0.2, but does not have ES decorator
support because swc does not support that yet.
2023-03-21 15:46:40 +00:00
David Sherret
7070b8ed50
fix(lsp): avoid calling client while holding lock ( #18197 )
2023-03-15 14:34:23 +00:00
Bartek Iwańczuk
e8f22c0765
refactor(core): pass cwd explicitly to resolve_path ( #18092 )
...
Towards landing #15454
2023-03-13 18:50:23 +01:00
David Sherret
d6192ce8fd
fix: regression remapping remote specifier to local file ( #17935 )
...
Tests added to deno_graph, which were previously not there.
Closes #17932
2023-02-25 01:23:51 +00:00
David Sherret
f5840bdcd3
chore: upgrade to Rust 1.67 ( #17548 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-27 10:43:16 -05:00
Geert-Jan Zwiers
7f38f30a5c
refactor(lsp): fewer clones ( #17551 )
2023-01-26 23:24:03 +01:00
David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
David Sherret
423474caa8
fix(lsp/format): language formatter used should be based on language id ( #17148 )
...
Closes #11897
2022-12-20 15:19:35 -05:00
linbingquan
f46df3e359
chore: update to Rust 1.66.0 ( #17078 )
2022-12-17 23:20:15 +01:00
David Sherret
2d4c46c975
refactor: create util folder, move nap_sym to napi/sym, move http_cache to cache folder ( #16857 )
2022-11-28 17:28:54 -05:00
David Sherret
d80af8324d
refactor(lsp): consolidate relative_specifier ( #16780 )
...
Closes #14840
2022-11-25 09:16:56 -05:00
Aaron O'Mullan
238590aa9f
chore: use Rust 1.65.0 ( #16688 )
2022-11-18 02:59:10 +01:00
Kitson Kelly
09d14b1b57
fix(lsp): use correct commit chars for completions ( #15366 )
...
Fixes: #15252
2022-08-02 08:54:17 +10:00
David Sherret
3a4e95c431
fix(repl): do not panic for import completions when the import specifier is empty ( #15177 )
2022-07-12 21:56:48 -04:00
Kitson Kelly
5db16d1229
fix(lsp): enable auto imports ( #15145 )
...
Fixes: #15111
2022-07-12 09:35:18 +10:00
David Sherret
443041c23e
feat(vendor): support using an existing import map ( #14836 )
2022-06-14 10:05:37 -04:00
David Sherret
1fcecb6789
refactor: upgrade to deno_ast 0.15 ( #14680 )
2022-05-20 16:40:55 -04:00
Jason
a6e4b4297d
refactor(lsp): migrate from lspower back to tower-lsp ( #14163 )
2022-04-03 14:17:30 +10:00
David Sherret
1c37ac3352
chore(tests): use custom temp dir creation for the tests ( #14153 )
2022-04-01 11:15:37 -04:00
David Sherret
53dac7451b
chore: remove all pub(crate)
s from the cli crate ( #14083 )
2022-03-23 09:54:22 -04:00
Kitson Kelly
973fe6dd3a
refactor: remove dead code from lsp ( #13743 )
2022-02-24 08:01:20 +11:00