Nayeem Rahman
524e451bfb
fix(lsp): implement missing ts server host apis ( #23131 )
2024-03-29 20:00:58 +00:00
David Sherret
49f97d5f85
fix(check): do not suggest running with --unstable
( #23092 )
...
Closes #23079
2024-03-27 11:58:36 -04:00
Nayeem Rahman
3b61104e2a
refactor(lsp): unify config file data into ConfigTree ( #23032 )
2024-03-26 15:52:20 +00:00
Bartek Iwańczuk
71551c80a1
feat(unstable): remove Deno.upgradeHttp API ( #21856 )
...
Closes https://github.com/denoland/deno/issues/21828 .
This API is a huge footgun. And given that "Deno.serveHttp" is a
deprecated API that is discouraged to use (use "Deno.serve()"
instead); it makes no sense to keep this API around.
This is a step towards fully migrating to Hyper 1.
2024-01-22 21:35:39 +00:00
Nayeem Rahman
0234eb23dd
fix(lsp): implement host.getGlobalTypingsCacheLocation() ( #21882 )
2024-01-10 13:16:30 +00:00
Nayeem Rahman
ee45d5bf8f
perf(lsp): use host-owned cache for auto-import completions ( #21852 )
2024-01-08 17:05:05 +00:00
David Sherret
7e72f3af61
chore: update copyright to 2024 ( #21753 )
2024-01-01 19:58:21 +00:00
Nayeem Rahman
48dae2441c
perf(lsp): use LanguageServiceHost::getProjectVersion() ( #21719 )
2023-12-28 00:13:57 +00:00
Nayeem Rahman
7d88e48296
perf(lsp): use null types instead of stub modules ( #21541 )
2023-12-12 10:26:27 +00:00
Bartek Iwańczuk
7bf267c197
perf(lsp): simplify some of the startup code ( #21538 )
...
Remove some dead code in "99_main_compiler.js". Eagerly start the LSP
TSC host, it was adding some not needed complexity around the TSC thread code.
2023-12-11 16:59:09 +01:00
David Sherret
68d356eed9
feat: TypeScript 5.3 ( #21480 )
...
https://github.com/denoland/TypeScript/pull/9
2023-12-06 18:49:34 -05:00
Bartek Iwańczuk
39c7d8dafe
refactor: faster args for op_load in TSC ( #21438 )
...
This commit changes the argument that "op_load" accepts, from
a serde struct to "&str". This should equal to a slightly better
performance.
2023-12-03 02:07:04 +00:00
Nayeem Rahman
0f990d9d92
perf(lsp): fix redundant serialization of sources ( #21435 )
2023-12-02 23:28:46 +00:00
Bartek Iwańczuk
ec0207e9b1
perf(lsp): better op performance logging ( #21423 )
2023-12-01 22:57:52 +01:00
Bartek Iwańczuk
c803c0eaab
perf(lsp): remove throttling of cancellation token ( #21395 )
...
This commit removes "ThrottledCancellationToken" in favor of
"CancellationToken".
Since calling into Rust to check if Tokio's cancellation token has
already been canceled is really cheap, there's no need for us to
throttle this check and let TSC burn up CPU with heavy computation.
2023-11-30 15:43:35 +00:00
Bartek Iwańczuk
587f2e0800
feat: precompile JSX ( #20962 )
...
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2023-11-01 20:30:23 +00:00
Luca Casonato
d42f154312
feat: disposable Deno resources ( #20845 )
...
This commit implements Symbol.dispose and Symbol.asyncDispose for
the relevant resources.
Closes #20839
---------
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-11-01 20:26:12 +01:00
Nayeem Rahman
6fd2d08418
refactor(lsp): clean up tsc requests ( #20743 )
2023-10-02 07:32:05 +01:00
Nayeem Rahman
86c04f43e0
fix(lsp): pass quote preference to tsc ( #20547 )
2023-09-18 20:48:32 +01:00
Nayeem Rahman
6f077ebb07
feat(lsp): update imports on file rename ( #20245 )
...
Closes https://github.com/denoland/vscode_deno/issues/410 .
2023-08-26 02:50:47 +02:00
Nayeem Rahman
6de35e4b2e
fix(lsp): pass fmt options to completion requests ( #20184 )
...
Fixes https://github.com/denoland/vscode_deno/issues/856 .
2023-08-17 10:46:11 -04:00
David Sherret
b563746885
fix: deno diagnostic - clarify where to put triple-slash directive ( #20009 )
...
Some people might not know what "entrypoint" means or where to put the
triple-slash directive.
2023-08-01 15:27:25 +00:00
David Sherret
b03d82e5d3
fix(tsc): more informative diagnostic when Deno
does not exist ( #19825 )
...
Also improved the diagnostic when using something like `Deno.openKv` and
it doesn't exist.
2023-07-13 23:29:51 +00:00
David Sherret
ae1ba2af3c
perf(check): faster source hashing ( #18534 )
2023-04-01 10:12:40 -04:00
David Sherret
23b9be7b37
fix(check): ensure diagnostics caused by changes in other files get invalidated between runs ( #18541 )
...
Regression caused by the performance improvement in #18329 . Figuring
this out was hard. It's luckily still fast after this change.
Closes #18516
2023-04-01 10:04:56 -04:00
David Sherret
c4f82cab31
fix(lsp): textDocument/references
should respect includeDeclaration
( #18496 )
2023-03-30 16:15:21 +00:00
David Sherret
675179a176
chore(types): fix type checking errors in 99_main_compiler.js ( #18403 )
2023-03-24 10:35:44 -04:00
David Sherret
253b556e6f
perf(check): type check local files only when not using --all
( #18329 )
...
Closes #18171
2023-03-21 18:19:42 -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
8db853514c
fix(check): regression where config "types" entries caused type checking errors ( #18124 )
...
Closes #18117
Closes #18121 (this is just over 10ms faster in a directory one up from
the root folder)
cc @nayeemrmn
2023-03-11 11:43:45 -05:00
David Sherret
2f98c3e1a6
chore: remove base64 encoding code from typescript snapshot ( #17862 )
...
This code is no longer used because we use swc for this now.
2023-02-21 22:56:58 -05:00
Bartek Iwańczuk
fc2e00152b
feat: support node built-in module imports ( #17264 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-01-24 09:05:54 -05:00
David Sherret
1712a88e69
refactor(tsc): do not store some typescript declaration file text in multiple places ( #17410 )
2023-01-14 09:36:19 -05: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
beaa0d8867
chore: more debug logging and avoid allocating strings in ts logging when not debug ( #16689 )
2022-11-23 13:34:44 -05:00
David Sherret
8864a1d10f
fix(lsp): regression - error when removing file ( #16388 )
2022-10-22 15:36:07 -04:00
David Sherret
bcfe279fba
feat(unstable/npm): initial type checking of npm specifiers ( #16332 )
2022-10-21 15:20:18 +00:00
Kitson Kelly
7d78f58187
feat: support inlay hints ( #16287 )
...
Closes: #11853
2022-10-16 13:39:43 +11:00
Aapo Alasuutari
2164f6b1eb
perf(ops): Monomorphic sync op calls ( #15337 )
...
Welcome to better optimised op calls! Currently opSync is called with parameters of every type and count. This most definitely makes the call megamorphic. Additionally, it seems that spread params leads to V8 not being able to optimise the calls quite as well (apparently Fast Calls cannot be used with spread params).
Monomorphising op calls should lead to some improved performance. Now that unwrapping of sync ops results is done on Rust side, this is pretty simple:
```
opSync("op_foo", param1, param2);
// -> turns to
ops.op_foo(param1, param2);
```
This means sync op calls are now just directly calling the native binding function. When V8 Fast API Calls are enabled, this will enable those to be called on the optimised path.
Monomorphising async ops likely requires using callbacks and is left as an exercise to the reader.
2022-08-11 15:56:56 +02:00
Yongwook Choi
2138b68c24
fix: Update Object.prototype.__proto__
related comments ( #15394 )
2022-08-04 08:39:16 +05:30
David Sherret
0c87dd1e98
perf: use emit from swc instead of tsc ( #15118 )
2022-07-12 18:58:39 -04:00
Kitson Kelly
5db16d1229
fix(lsp): enable auto imports ( #15145 )
...
Fixes: #15111
2022-07-12 09:35:18 +10:00
Bartek Iwańczuk
681bb49d0d
fix(lsp): restart TS language service when caching dependencies ( #14979 )
2022-06-27 19:43:43 +02:00
Nayeem Rahman
ef7bc5e0a6
fix(check): ignore TS2306 ( #14940 )
...
Fixes a regression where this type checking error was being surfaced in certain scenarios.
2022-06-23 12:18:32 -04:00
Nayeem Rahman
845d4754c6
fix(check): use "moduleDetection": "force" ( #14875 )
2022-06-15 12:26:43 -04:00
Kitson Kelly
5692132755
fix(lsp): handle get diagnostic errors better ( #14776 )
2022-06-03 22:23:33 +10:00
Kitson Kelly
7eee521199
feat: update to TypeScript 4.7 ( #14242 )
2022-06-01 10:19:18 +10:00
Bartek Iwańczuk
d76acfdc17
fix: base64 encoding of source maps with emojis ( #14607 )
...
This commit fixes source maps for files that contain emojis.
This is done by updating "deno_ast" to "0.14.1" for the case
of "--no-check" flag (ie using SWC emit) and by overriding
TSC's default base64 encoder (which turned out to be buggy)
for the type checking case.
2022-05-17 16:59:35 +02:00
David Sherret
eb5ffab1cb
fix(lsp): correct positions in some scenarios ( #14359 )
2022-05-15 14:41:37 -04:00
David Sherret
c0e3b6096d
refactor(lsp): store all the assets in Rust when initializing ( #14367 )
2022-04-25 11:23:24 -04:00