summaryrefslogtreecommitdiff
path: root/cli/lsp/language_server.rs
AgeCommit message (Collapse)Author
2021-11-25chore: upgrade lspower to 1.4.0 (#12894)Bartek Iwańczuk
2021-11-24fix(lsp): lsp should respect include/exclude files in format config (#12876)David Sherret
2021-11-23fix(lsp): normalize urls in did_change_watched_files (#12873)igorsaux
2021-11-23fix(cli): config file should resolve paths relative to the config file (#12867)David Sherret
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
2021-11-23feat(lsp): add type definition provider (#12789)Kitson Kelly
2021-11-23feat(lsp): add workspace symbol provider (#12787)Kitson Kelly
2021-11-18refactor(lsp): remove `Documents` mutex and require `Documents` to be ↵David Sherret
mutated to change it (#12747)
2021-11-17fix(lsp): retain module dependencies when parse is invalid (#12782)Kitson Kelly
Fixes #12753
2021-11-16refactor: re-export anyhow from deno_core (#12777)Ryan Dahl
2021-11-12refactor(lsp): prefer using document instead of documents collection (#12720)David Sherret
2021-11-09feat(cli): support React 17 JSX transforms (#12631)Kitson Kelly
Closes #8440
2021-11-08fix(lsp): display module types only dependencies on hover (#12683)Kitson Kelly
Fixes: #12675
2021-11-04Revert "feat(cli): enable `useUnknownInCatchVariables` by default" (#12643)Luca Casonato
This partially reverts commit a065604155991dbf4417b606d4562d275cd8955f. Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-11-01chore: upgrade deno_ast to 0.5.0 (#12595)David Sherret
2021-10-29refactor(lsp): use deno_graph and single document struct (#12535)Kitson Kelly
Closes #12473
2021-10-28feat(cli): enable `useUnknownInCatchVariables` by default (#12547)Kitson Kelly
Closes #11826 **BREAKING CHANGE** this behaviour was disable when introduced in Deno 1.14/TypeScript 4.4. It will highlight code that unsafely handles variables that are caught, and will cause type errors in unsafe code.
2021-10-21fix(lsp): formatting should error on certain additional swc diagnostics (#12491)David Sherret
2021-10-12fix(lsp): lint diagnostics respect config file (#12338)Bartek Iwańczuk
This commit fixes problem with LSP where diagnostics coming from "deno lint" don't respect configuration file. LSP was changed to store "Option<ConfigFile>", "Option<LintConfig>" and "Option<FmtConfig>" on "Inner"; as well as storing "Option<LintConfig>" and "Option<FmtConfig>" on "StateSnapshot". Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-10-11refactor: integrate deno_graph into CLI (#12369)Kitson Kelly
2021-09-16fix(lsp): align filter text to vscode logic (#12081)Kitson Kelly
Fixes #11861
2021-09-13feat(fmt): add support for configuration file (#11944)Bartek Iwańczuk
This commit adds support for configuration file for "deno fmt" subcommand. It is also respected by LSP when formatting files. Example configuration: { "fmt": { "files": { "include": ["src/"], "exclude": ["src/testdata/"] }, "options": { "useTabs": true, "lineWidth": 80, "indentWidth": 4, "singleQuote": true, "textWrap": "preserve" } } }
2021-09-13fix(lsp): support data urls in `deno.importMap` option (#11397)Satya Rohith
2021-09-11refactor: use import_map crate (#11974)Bartek Iwańczuk
Removes ImportMap implementation from "cli/" and instead uses "import_map" crate
2021-09-07refactor(lsp): use deno_ast and cache swc ASTs (#11780)David Sherret
2021-09-03feat(lint): add support for config file and CLI flags for rules (#11776)Bartek Iwańczuk
This commit adds support for following flags in deno lint subcommand: --config - allows to load configuration file and parses "lint" object --rules-tags=<tags> - allows specifying which set of tagged rules should be run --rules-include=<rules> - allow specifying which rules should be run --rules-exclude=<rules> - allow specifying which rules should not be run
2021-08-27feat(cli): Update to TypeScript 4.4 (#11678)Kitson Kelly
2021-08-19fix(lsp): better handling of languageId (#11755)Kitson Kelly
Fixes #11521 Fixes #11742
2021-08-10feat(lsp): support clients which do not support disabled code actions (#11612)Kitson Kelly
Closes: #11610
2021-08-06feat(lsp): implement refactoring code actions (#11555)Jean Pierre
Closes: denoland/vscode_deno#433
2021-07-30chore: upgrade Rust to 1.54.0 (#11554)Yusuke Tanaka
2021-07-28feat(lsp): ability to set DENO_DIR via settings (#11527)Kitson Kelly
Ref: denoland/vscode_deno#287
2021-07-27refactor(lsp): minor improvements to handling closed documents (#11518)Kitson Kelly
Ref #10897
2021-07-25fix(lsp): handle importmaps properly (#11496)Kitson Kelly
Fixes: #11146 Fixes: #11456 Fixes: #10439
2021-07-21feat(lsp): add workspace config to status page (#11459)Kitson Kelly
2021-06-25fix(lsp): reload import registries should not error when the module ↵David Sherret
registries directory does not exist (#11123)
2021-06-25feat(lsp): dependency hover information (#11090)Kitson Kelly
2021-06-24fix(lsp): handle invalid config setting better (#11104)Kitson Kelly
Fixes #11100 Fixes #10808
2021-06-22chore: use lsp to get parent process id (#11083)David Sherret
Removes the previously added internal `--parent-pid` flag. This solution is better.
2021-06-22feat(cli): support "types" when type checking (#10999)Kitson Kelly
Fixes #10677
2021-06-21feat(lsp): quick fix actions to ignore lint errors (#10627)Satya Rohith
Closes #10122
2021-06-19fix(lsp): do not rename in strings and comments (#11041)David Sherret
2021-06-17chore: upgrade Rust to 1.53.0 (#11021)Yusuke Tanaka
2021-06-09feat(lsp): add additional logging information (#10890)Kitson Kelly
2021-06-07feat(lsp): add test code lens (#10874)Kitson Kelly
Ref #8643
2021-06-06fix(#10747): cannot read config option in windows (#10791)jeiea
Fixes #10747
2021-06-05fix(lsp): refactor, fix issues and add benchmark for code lens (#10841)Kitson Kelly
2021-06-03fix(#10775): diagnostics update on dependency changes (#10817)Kitson Kelly
Fixes #10775
2021-06-02fix(#10815): lsp only responds to formatting for md, json, jsonc (#10816)Kitson Kelly
Fixes #10815
2021-06-01feat(lsp): registry auto discovery (#10813)Kitson Kelly
Closes: #10194 Fixes: #10468
2021-06-01fix(lsp): updates to workspace config are processed sync (#10812)Kitson Kelly