Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-12-01 | feat(compile): support discovering modules for more dynamic arguments (#21381) | David Sherret | |
This PR causes Deno to include more files in the graph based on how a template literal looks that's provided to a dynamic import: ```ts const file = await import(`./dir/${expr}`); ``` In this case, it will search the `dir` directory and descendant directories for any .js/jsx/etc modules and include them in the graph. To opt out of this behaviour, move the template literal to a separate line: ```ts const specifier = `./dir/${expr}` const file = await import(specifier); ``` | |||
2023-12-01 | refactor(lsp): log names (#21413) | Bartek Iwańczuk | |
This commit changes LSP log names by prefixing them, we now have these prefixes: - `lsp.*` - requests coming from the client - `tsc.request.*` - requests coming from clients that are routed to TSC - `tsc.op.*` - ops called by the TS host - `tsc.host.*` - requests that call JavaScript runtime that runs TypeScript compiler host Additionall `Performance::mark` was split into `Performance::mark` and `Performance::mark_with_args` to reduce verbosity of code and logs. | |||
2023-11-30 | perf(lsp): avoid redundant getNavigationTree() calls (#21396) | Nayeem Rahman | |
2023-11-30 | perf(lsp): cancel ts requests on future drop (#21387) | Nayeem Rahman | |
When an old request is obsoleted while the user is typing, the client will say so to the server and tower-lsp will drop the future associated with that request. This wires that up to the ts server by having any request's token be cancelled when the surrounding state is dropped. | |||
2023-11-29 | perf(lsp): add performance marks for TSC requests (#21383) | Bartek Iwańczuk | |
This should help us get a better picture where most of the time is spent (the TSC or the surrounding Rust code). | |||
2023-11-24 | fix(lsp): handle byonm specifiers in jupyter notebooks (#21332) | David Sherret | |
Part of https://github.com/denoland/deno/issues/21308 | |||
2023-11-22 | fix(lsp): force shutdown after a timeout (#21251) | Nayeem Rahman | |
2023-11-17 | refactor(upgrade): add unit tests for lsp upgrade check (#21244) | David Sherret | |
2023-11-17 | chore: update to Rust 1.74 (#21210) | 林炳权 | |
Update to Rust 1.74 | |||
2023-11-14 | feat(lsp): upgrade check on init and notification (#21105) | Nayeem Rahman | |
2023-11-12 | fix(lsp): update tsconfig after refreshing settings on init (#21170) | Nayeem Rahman | |
2023-11-04 | fix(node): use closest package.json to resolve package.json imports (#21075) | David Sherret | |
2023-10-25 | perf(lsp): fix redundant walk when collecting tsc code lenses (#20974) | Nayeem Rahman | |
2023-10-25 | feat(unstable): ability to `npm install` then `deno run main.ts` (#20967) | David Sherret | |
This PR adds a new unstable "bring your own node_modules" (BYONM) functionality currently behind a `--unstable-byonm` flag (`"unstable": ["byonm"]` in a deno.json). This enables users to run a separate install command (ex. `npm install`, `pnpm install`) then run `deno run main.ts` and Deno will respect the layout of the node_modules directory as setup by the separate install command. It also works with npm/yarn/pnpm workspaces. For this PR, the behaviour is opted into by specifying `--unstable-byonm`/`"unstable": ["byonm"]`, but in the future we may make this the default behaviour as outlined in https://github.com/denoland/deno/issues/18967#issuecomment-1761248941 This is an extremely rough initial implementation. Errors are terrible in this and the LSP requires frequent restarts. Improvements will be done in follow up PRs. | |||
2023-10-24 | refactor: upgrade to deno_ast 0.31 and deno_graph 0.59 (#20965) | David Sherret | |
2023-10-24 | perf(lsp): cleanup workspace settings scopes (#20937) | Nayeem Rahman | |
2023-10-24 | fix: improved using declaration support (#20959) | David Sherret | |
Upgrades to deno_ast 0.30. | |||
2023-10-20 | feat(unstable): allow bare specifier for builtin node module (#20728) | Yoshiya Hinosawa | |
closes #20566 | |||
2023-10-17 | fix(lsp): include mtime in tsc script version (#20911) | Nayeem Rahman | |
2023-10-17 | feat(lsp): respect "typescript.preferences.quoteStyle" when deno.json is ↵ | Nayeem Rahman | |
absent (#20891) | |||
2023-10-16 | fix(lsp): show diagnostics for untitled files (#20916) | Nayeem Rahman | |
2023-10-13 | fix(lsp): don't commit registry completions on "/" (#20902) | Nayeem Rahman | |
2023-10-12 | feat(lsp): send "deno/didChangeDenoConfiguration" notifications (#20827) | Nayeem Rahman | |
2023-10-12 | perf(lsp): fix redundant file reads (#20802) | Nayeem Rahman | |
2023-10-10 | fix(lsp): normalize "deno:" urls statelessly (#20867) | Nayeem Rahman | |
2023-10-10 | refactor(lsp): add "deno.reloadImportRegistries" as a command (#20823) | Nayeem Rahman | |
2023-10-09 | fix(lsp): allow formatting vendor files (#20844) | Nayeem Rahman | |
2023-10-09 | perf(lsp): optimize formatting minified files (#20829) | Nayeem Rahman | |
2023-10-06 | fix(lsp): percent-encode host in deno: specifiers (#20811) | Nayeem Rahman | |
2023-10-05 | refactor(npm): add referrer when resolving npm package sub path from deno ↵ | David Sherret | |
module (#20800) Adds a `referrer` parameter to this function instead of using a fake one. | |||
2023-10-05 | refactor(test): support custom writer in PrettyTestReporter (#20783) | Nayeem Rahman | |
2023-10-04 | refactor(node): combine node resolution code for resolving a package subpath ↵ | David Sherret | |
from external code (#20791) We had two methods that did the same functionality. | |||
2023-10-05 | fix(lsp): show diagnostics for type imports from untyped deps (#20780) | Nayeem Rahman | |
2023-10-03 | refactor(npm): break up `NpmModuleLoader` and move more methods into the ↵ | David Sherret | |
managed `CliNpmResolver` (#20777) Part of https://github.com/denoland/deno/issues/18967 | |||
2023-10-02 | refactor(npm): make `NpmCache`, `CliNpmRegistryApi`, and `NpmResolution` ↵ | David Sherret | |
internal to `npm::managed` (#20764) | |||
2023-10-02 | refactor(lsp): clean up tsc requests (#20743) | Nayeem Rahman | |
2023-09-30 | refactor(npm): create `cli::npm::managed` module (#20740) | David Sherret | |
Creates the `cli::npm::managed` module and starts moving more functionality into it. | |||
2023-09-29 | feat(lsp): jupyter notebook analysis (#20719) | Nayeem Rahman | |
2023-09-29 | refactor(cli): make `CliNpmResolver` a trait (#20732) | David Sherret | |
This makes `CliNpmResolver` a trait. The terminology used is: - **managed** - Deno manages the node_modules folder and does an auto-install (ex. `ManagedCliNpmResolver`) - **byonm** - "Bring your own node_modules" (ex. `ByonmCliNpmResolver`, which is in this PR, but unimplemented at the moment) Part of #18967 | |||
2023-09-28 | refactor(ext/node): remove dependency on deno_npm and deno_semver (#20718) | David Sherret | |
This is required from BYONM (bring your own node_modules). Part of #18967 | |||
2023-09-27 | fix(lsp): allow query strings for "deno:/status.md" (#20697) | Nayeem Rahman | |
2023-09-26 | chore(lsp): bump tower-lsp to 0.20.0 (#20693) | Nayeem Rahman | |
2023-09-26 | chore: slight cleanup in npm resolvers (#20692) | David Sherret | |
2023-09-26 | feat(lsp): support more vscode built-in settings (#20679) | Nayeem Rahman | |
2023-09-25 | docs: fix broken deno manual link (#20667) | Mikko | |
2023-09-24 | feat(lsp): cache all dependencies quick fix (#20665) | Nayeem Rahman | |
2023-09-24 | fix(lsp): resolve remote import maps (#20651) | Nayeem Rahman | |
2023-09-24 | refactor(lsp): implement "deno.cacheOnSave" server-side (#20632) | Nayeem Rahman | |
2023-09-24 | fix(lsp): show related information for tsc diagnostics (#20654) | Nayeem Rahman | |
2023-09-21 | refactor(lsp): store language sections in WorkspaceSettings (#20593) | Nayeem Rahman | |
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. |