summaryrefslogtreecommitdiff
path: root/cli/lsp
AgeCommit message (Collapse)Author
2021-10-12chore: upgrade crates based on deno ast 0.3 (#12403)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-24refactor: Rename ProgramState to ProcState (#12204)Ryan Dahl
Move Arc into struct
2021-09-16fix(lsp): align filter text to vscode logic (#12081)Kitson Kelly
Fixes #11861
2021-09-14fix(lsp): correctly parse registry patterns (#12063)Kitson Kelly
2021-09-14feat(lsp): ignore specific lint for entire file (#12023)Satya Rohith
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-13chore: update deno_* crates (#12020)Kitson Kelly
2021-09-12chore(lsp): temporarily reparse AST for linting (#11988)David Sherret
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-05fix(doc): fix rustdoc bare_urls warning (#11921)Feng Yu
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-09-02chore: upgrade crates (#11894)Bartek Iwańczuk
Co-authored-by: David Sherret <dsherret@gmail.com>
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-18docs(lsp): change deno/registryStatus -> deno/registryState (#11760)Pankaj Patil
2021-08-11chore: move test files to testdata directory (#11601)David Sherret
2021-08-10feat(lsp): support clients which do not support disabled code actions (#11612)Kitson Kelly
Closes: #11610
2021-08-09feat: Add --unsafely-treat-insecure-origin-as-secure flag to disable SSL ↵TheAifam5
verification (#11324) This commit adds "--unsafely-treat-insecure-origin-as-secure" flag that allows to disable SSL verification for all domains, or specific domains if they were passed as an argument to the flag. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-06refactor: make `ParsedModule` implement `Sync` (#11581)David Sherret
2021-08-06feat(lsp): implement refactoring code actions (#11555)Jean Pierre
Closes: denoland/vscode_deno#433
2021-07-31fix(lsp): do not output to stderr before exiting the process (#11562)David Sherret
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-22fix(lsp): do not populate maybe_type slot with import type dep (#11477)Kitson Kelly
Fixes: #11458 Fixes: #11461 Closes: denoland/vscode_deno#414
2021-07-21feat(lsp): add workspace config to status page (#11459)Kitson Kelly
2021-07-14chore: upgrade to swc 0.46 (#11402)David Sherret
2021-07-08feat(core): return v8::Value from JsRuntime::execute_script (#11129)Bartek Iwańczuk
This commit changes return type of JsRuntime::execute_script to include v8::Value returned from evaluation. When embedding deno_core it is sometimes useful to be able to inspect script evaluation value without the hoops of adding ops to store the value on the OpState. v8::Global<v8::Value> is used so consumers don't have to pass scope themselves.
2021-07-06chore: use parking_lot for synchronization primitives to align with tokio ↵David Sherret
(#11289) parking_lot is already transitively used in tokio via the "full" cargo feature
2021-07-05refactor: asynchronous blob backing store (#10969)Jimmy Wärting
Co-authored-by: Luca Casonato <hello@lcas.dev>
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-22refactor: unify JavaScript script execution method (#11043)Bartek Iwańczuk
This commit renames "JsRuntime::execute" to "JsRuntime::execute_script". Additionally same renames were applied to methods on "deno_runtime::Worker" and "deno_runtime::WebWorker". A new macro was added to "deno_core" called "located_script_name" which returns the name of Rust file alongside line no and col no of that call site. This macro is useful in combination with "JsRuntime::execute_script" and allows to provide accurate place where "one-off" JavaScript scripts are executed for internal runtime functions. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
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: fix new linting errors flagged by Rust 1.53 (#11029)David Sherret
2021-06-17chore(lsp): add `--parent-pid <pid>` flag (#11023)David Sherret
This commit adds a new `--parent-pid <pid>` flag to `deno lsp` that when provided starts a task that checks for the existence of the provided process id (ex. vscode's) every 30 seconds. If the process doesn't exist (meaning the deno process has nothing interacting with it), then it terminates itself.
2021-06-17chore: upgrade Rust to 1.53.0 (#11021)Yusuke Tanaka
2021-06-15Remove various unnecessary allow(clippy) declarations (#10971)Ryan Dahl
2021-06-10refactor: merge deno_file crate into deno_web (#10914)Bartek Iwańczuk
This refactor makes it so there's one less crate to publish on each release.
2021-06-09feat(lsp): add additional logging information (#10890)Kitson Kelly
2021-06-07feat(lsp): add test code lens (#10874)Kitson Kelly
Ref #8643