Satya Rohith
d69a5fbe1a
feat(lsp): support formatting json and markdown files ( #10180 )
...
Resolves #9447
Resolves #9415
2021-05-18 16:35:46 +10:00
Kitson Kelly
27e7bb090e
refactor: share test harness for lsp between bench and integration ( #10659 )
2021-05-18 06:45:13 +10:00
Yusuke Tanaka
24a2e1ef82
docs(cli/dts): fix link from master to main ( #10633 )
2021-05-15 16:22:45 +09:00
Niclas Overby
608c7d68e2
fix(lsp): remove duplicate cwd in config path ( #10620 )
2021-05-13 23:56:30 +02:00
Kitson Kelly
0e17f086ce
fix( #10603 ): revert minimal changes to resolve deadlock bug ( #10605 )
2021-05-12 13:10:06 +10:00
Kitson Kelly
41a3b17de4
fix(lsp): remove code_action/diagnostics deadlock ( #10555 )
...
Landed without test to meet 1.10.0 deadline. See #10587 .
2021-05-11 10:43:00 -04:00
Kitson Kelly
81f8585643
feat(lsp): add internal debugging logging ( #10438 )
...
Ref: #10368
2021-05-11 14:54:10 +10:00
Elias Sjögreen
f12b82e183
fix(cli): typings for Deno.os.arch
( #10541 )
2021-05-10 16:12:42 -04:00
Bartek Iwańczuk
ce48b32979
refactor(cli): replace loading file for --config flag with generic structure ( #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-10 18:16:39 +02:00
Kitson Kelly
84733d90c7
feat: support workspace folders configuration ( #10488 )
...
Ref #8643
2021-05-10 11:16:04 +10:00
Ryan Dahl
2400ecbe16
Use ubuntu-latest-xl on more CI jobs ( #10322 )
2021-04-23 12:11:23 -04:00
Jean Pierre
572ec4a0a7
fix(lsp): document symbol performance mark ( #10264 )
2021-04-21 12:41:24 +10:00
Jean Pierre
2079da0f1c
feat(lsp): Implement textDocument/documentSymbol ( #9981 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-20 11:29:27 +10:00
Jean Pierre
6d404ec54b
feat(lsp): Implement textDocument/semanticTokens/full ( #10233 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-20 11:26:36 +10:00
Kitson Kelly
fe8057105e
fix( #10125 ): remove documents when closed in the lsp ( #10254 )
...
Fixes #10125
2021-04-20 07:11:23 +10:00
Kitson Kelly
65f7a021f0
feat(lsp): improve diagnostic status page ( #10253 )
2021-04-20 07:10:43 +10:00
Jean Pierre
65a2a04d3b
feat(lsp): implement textDocument/prepareCallHierarchy ( #10061 )
2021-04-19 15:11:26 +10:00
Nayeem Rahman
8aa0d5f96e
feat: set useDefineForClassFields to true ( #10119 )
...
Fixes: #9773
2021-04-11 07:56:40 +10:00
Kitson Kelly
d9d4a5d73c
feat(lsp): add registry import auto-complete ( #9934 )
2021-04-09 11:27:27 +10:00
Kitson Kelly
26c8d824d1
fix(lsp): don't error on tsc debug failures for code actions ( #10047 )
...
Resolves: #9913
2021-04-07 19:47:31 +10:00
Kitson Kelly
2c86ca1d64
fix(lsp): properly handle encoding URLs from lsp client ( #10033 )
...
Fixes #9741
2021-04-06 21:45:53 +10:00
Jean Pierre
035f7b0ca0
feat(lsp): implement textDocument/foldingRange ( #9900 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-02 17:21:07 +11:00
Kitson Kelly
ec6317e894
fix(lsp): ensure insert_text is passed back on completions ( #9951 )
...
Fixes #9920
2021-04-01 20:18:51 +11:00
Ryan Dahl
f46e39c5c5
remove macro_use ( #9884 )
2021-03-26 12:34:25 -04:00
Kitson Kelly
5ebb401703
feat(lsp): add import completions ( #9821 )
2021-03-25 11:13:37 +11:00
Jean Pierre
77cfadf532
feat(lsp): implement textDocument/selectionRange ( #9845 )
...
Ref: #8643
2021-03-24 10:33:25 +11:00
Kitson Kelly
506b321d47
refactor(lsp): refactor completions and add tests ( #9789 )
2021-03-16 09:01:41 +11:00
Ryan Dahl
2ff9b01551
Revert "fix(cli/module_graph): Set useDefineForClassFields to true" ( #9792 )
...
Backwards incompatible change cannot be made in-between patch releases.
This commit broke std tests https://github.com/denoland/deno_std/runs/2112369372
This reverts commit c4709834b3
.
2021-03-15 13:56:31 -04:00
Nayeem Rahman
c4709834b3
fix(cli/module_graph): Set useDefineForClassFields to true ( #9774 )
...
Fixes #9773
2021-03-15 09:19:27 +11:00
Kitson Kelly
a020ebde2d
fix(lsp): diagnostics use own thread and debounce ( #9572 )
2021-03-10 13:41:35 +11:00
Kitson Kelly
097e9c44f4
feat(runtime): stabilise permissions and add event target capabilities ( #9573 )
2021-02-25 14:33:09 +11:00
Kitson Kelly
90e4c5dcde
reafactor(lsp): use generics with JSON values ( #9587 )
2021-02-25 14:15:55 +11:00
Kitson Kelly
2225e83da2
fix(lsp): handle data URLs properly ( #9522 )
...
Fixes #9514
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2021-02-18 15:37:05 +11:00
Kitson Kelly
78e34d4912
fix(lsp): document spans use original range ( #9525 )
...
Fixes: #9444
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2021-02-18 14:15:13 +11:00
Ryan Dahl
c7dabc99ee
Make ModuleSpecifier a type alias, not wrapper struct ( #9531 )
2021-02-17 13:47:18 -05:00
Yuki Tanaka
ccd6ee5c23
feat(lsp): Implement textDocument/signatureHelp
( #9330 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-02-16 13:34:09 +11:00
Kitson Kelly
64a1da84fe
fix(lsp): handle cached type dependencies properly ( #9500 )
2021-02-15 20:32:06 +11:00
Kitson Kelly
79916226b7
fix(lsp): properly handle static assets ( #9476 )
2021-02-12 22:49:42 +11:00
Kitson Kelly
54e53cc9ea
chore: Update to Rust 1.50.0 ( #9479 )
2021-02-12 21:08:36 +11:00
Kitson Kelly
d6c05b09dd
feat(lsp): add deno cache code actions ( #9471 )
2021-02-12 15:17:48 +11:00
Kitson Kelly
6752be05cd
fix(lsp): handle type deps properly ( #9436 )
...
Fixes #9425
2021-02-10 09:46:12 +11:00
Kitson Kelly
d95666cae0
fix(lsp): handle code lenses for non-documents ( #9454 )
2021-02-09 20:48:53 +11:00
Kitson Kelly
1f9e9002d5
fix(lsp): prepare diagnostics when the config changes ( #9438 )
2021-02-08 21:45:46 +11:00
Kitson Kelly
e368c5d0f9
feat(lsp): add implementations code lens ( #9441 )
2021-02-08 21:45:10 +11:00
Kitson Kelly
09b79463d7
feat(lsp): add asset cache regression test
...
When we migrated away from all the locks, there was a regression that
was not caught immediately. The tsc::get_asset() would attempt to modify
the snapshot, but the problem was that the snapshot was a .clone() of
the inner language server's assets, which meant that modifications to
that where lost. When we then attempted to do a hover on those assets,
the inner language servers assets didn't have the retrieved asset, and
therefore would throw an error.
2021-02-08 10:47:32 +01:00
Ben Noordhuis
ccbaedb138
fix(lsp): DRY asset cache lookup logic
2021-02-08 10:47:32 +01:00
Ben Noordhuis
e7a7bf8a79
fix(lsp): fix asset cache lookup regression
...
Commit 2828690fc
("fix(lsp): fix deadlocks, use one big mutex") from
last month introduced a regression in asset cache lookups where results
of lazy caching were lost due to operating on a copy of the asset cache.
This commit fixes that by copying the asset from the copy to the real
cache.
2021-02-08 10:47:32 +01:00
Ben Noordhuis
be10db10fd
fix(lsp): remove Sources mutex
...
The mutex was used to hide the fact that the Sources object mutates
itself when it's queried. Be honest about that and mark everything that
directly or indirectly mutates it as `mut`.
This is a follow-up to commit 2828690fc7
from last month ("fix(lsp): fix deadlocks, use one big mutex (#9271 )")
2021-02-08 10:47:32 +01:00
Kitson Kelly
b6353672f8
fix(lsp): support codeAction/resolve ( #9405 )
2021-02-06 07:10:53 +11:00
Kitson Kelly
5b9376908a
fix(cli/lsp): fix using jsx/tsx when not emitting via tsc ( #9407 )
...
Closes #9308
Closes #9023
Closes #8993
2021-02-05 22:01:48 +11:00