diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 56 |
1 files changed, 31 insertions, 25 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 1987364bc..b29f006f0 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -35,6 +35,7 @@ | |||
35 | "test": "node ./out/tests/runTests.js" | 35 | "test": "node ./out/tests/runTests.js" |
36 | }, | 36 | }, |
37 | "dependencies": { | 37 | "dependencies": { |
38 | "https-proxy-agent": "^5.0.0", | ||
38 | "node-fetch": "^2.6.1", | 39 | "node-fetch": "^2.6.1", |
39 | "vscode-languageclient": "^7.1.0-next.4" | 40 | "vscode-languageclient": "^7.1.0-next.4" |
40 | }, | 41 | }, |
@@ -385,13 +386,18 @@ | |||
385 | "Force import paths to be absolute by always starting them with `crate` or the crate name they refer to." | 386 | "Force import paths to be absolute by always starting them with `crate` or the crate name they refer to." |
386 | ] | 387 | ] |
387 | }, | 388 | }, |
389 | "rust-analyzer.assist.importGroup": { | ||
390 | "markdownDescription": "Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are separated by newlines.", | ||
391 | "default": true, | ||
392 | "type": "boolean" | ||
393 | }, | ||
388 | "rust-analyzer.callInfo.full": { | 394 | "rust-analyzer.callInfo.full": { |
389 | "markdownDescription": "Show function name and docs in parameter hints.", | 395 | "markdownDescription": "Show function name and docs in parameter hints.", |
390 | "default": true, | 396 | "default": true, |
391 | "type": "boolean" | 397 | "type": "boolean" |
392 | }, | 398 | }, |
393 | "rust-analyzer.cargo.autoreload": { | 399 | "rust-analyzer.cargo.autoreload": { |
394 | "markdownDescription": "Automatically refresh project info via `cargo metadata` on `Cargo.toml` changes.", | 400 | "markdownDescription": "Automatically refresh project info via `cargo metadata` on\n`Cargo.toml` changes.", |
395 | "default": true, | 401 | "default": true, |
396 | "type": "boolean" | 402 | "type": "boolean" |
397 | }, | 403 | }, |
@@ -410,7 +416,7 @@ | |||
410 | }, | 416 | }, |
411 | "rust-analyzer.cargo.runBuildScripts": { | 417 | "rust-analyzer.cargo.runBuildScripts": { |
412 | "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.", | 418 | "markdownDescription": "Run build scripts (`build.rs`) for more precise code analysis.", |
413 | "default": false, | 419 | "default": true, |
414 | "type": "boolean" | 420 | "type": "boolean" |
415 | }, | 421 | }, |
416 | "rust-analyzer.cargo.noDefaultFeatures": { | 422 | "rust-analyzer.cargo.noDefaultFeatures": { |
@@ -437,7 +443,7 @@ | |||
437 | "type": "boolean" | 443 | "type": "boolean" |
438 | }, | 444 | }, |
439 | "rust-analyzer.checkOnSave.allFeatures": { | 445 | "rust-analyzer.checkOnSave.allFeatures": { |
440 | "markdownDescription": "Check with all features (`--all-features`). Defaults to `#rust-analyzer.cargo.allFeatures#`.", | 446 | "markdownDescription": "Check with all features (`--all-features`).\nDefaults to `#rust-analyzer.cargo.allFeatures#`.", |
441 | "default": null, | 447 | "default": null, |
442 | "type": [ | 448 | "type": [ |
443 | "null", | 449 | "null", |
@@ -463,7 +469,7 @@ | |||
463 | ] | 469 | ] |
464 | }, | 470 | }, |
465 | "rust-analyzer.checkOnSave.target": { | 471 | "rust-analyzer.checkOnSave.target": { |
466 | "markdownDescription": "Check for a specific target. Defaults to `#rust-analyzer.cargo.target#`.", | 472 | "markdownDescription": "Check for a specific target. Defaults to\n`#rust-analyzer.cargo.target#`.", |
467 | "default": null, | 473 | "default": null, |
468 | "type": [ | 474 | "type": [ |
469 | "null", | 475 | "null", |
@@ -479,7 +485,7 @@ | |||
479 | } | 485 | } |
480 | }, | 486 | }, |
481 | "rust-analyzer.checkOnSave.features": { | 487 | "rust-analyzer.checkOnSave.features": { |
482 | "markdownDescription": "List of features to activate. Defaults to `#rust-analyzer.cargo.features#`.", | 488 | "markdownDescription": "List of features to activate. Defaults to\n`#rust-analyzer.cargo.features#`.", |
483 | "default": null, | 489 | "default": null, |
484 | "type": [ | 490 | "type": [ |
485 | "null", | 491 | "null", |
@@ -490,7 +496,7 @@ | |||
490 | } | 496 | } |
491 | }, | 497 | }, |
492 | "rust-analyzer.checkOnSave.overrideCommand": { | 498 | "rust-analyzer.checkOnSave.overrideCommand": { |
493 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message-format=json` or similar option.", | 499 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nchecking. The command should include `--message-format=json` or\nsimilar option.", |
494 | "default": null, | 500 | "default": null, |
495 | "type": [ | 501 | "type": [ |
496 | "null", | 502 | "null", |
@@ -516,7 +522,7 @@ | |||
516 | "type": "boolean" | 522 | "type": "boolean" |
517 | }, | 523 | }, |
518 | "rust-analyzer.completion.autoimport.enable": { | 524 | "rust-analyzer.completion.autoimport.enable": { |
519 | "markdownDescription": "Toggles the additional completions that automatically add imports when completed. Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.", | 525 | "markdownDescription": "Toggles the additional completions that automatically add imports when completed.\nNote that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.", |
520 | "default": true, | 526 | "default": true, |
521 | "type": "boolean" | 527 | "type": "boolean" |
522 | }, | 528 | }, |
@@ -526,7 +532,7 @@ | |||
526 | "type": "boolean" | 532 | "type": "boolean" |
527 | }, | 533 | }, |
528 | "rust-analyzer.diagnostics.enableExperimental": { | 534 | "rust-analyzer.diagnostics.enableExperimental": { |
529 | "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might have more false positives than usual.", | 535 | "markdownDescription": "Whether to show experimental rust-analyzer diagnostics that might\nhave more false positives than usual.", |
530 | "default": true, | 536 | "default": true, |
531 | "type": "boolean" | 537 | "type": "boolean" |
532 | }, | 538 | }, |
@@ -540,7 +546,7 @@ | |||
540 | "uniqueItems": true | 546 | "uniqueItems": true |
541 | }, | 547 | }, |
542 | "rust-analyzer.diagnostics.warningsAsHint": { | 548 | "rust-analyzer.diagnostics.warningsAsHint": { |
543 | "markdownDescription": "List of warnings that should be displayed with info severity.\\n\\nThe warnings will be indicated by a blue squiggly underline in code and a blue icon in the `Problems Panel`.", | 549 | "markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code\nand a blue icon in the `Problems Panel`.", |
544 | "default": [], | 550 | "default": [], |
545 | "type": "array", | 551 | "type": "array", |
546 | "items": { | 552 | "items": { |
@@ -548,7 +554,7 @@ | |||
548 | } | 554 | } |
549 | }, | 555 | }, |
550 | "rust-analyzer.diagnostics.warningsAsInfo": { | 556 | "rust-analyzer.diagnostics.warningsAsInfo": { |
551 | "markdownDescription": "List of warnings that should be displayed with hint severity.\\n\\nThe warnings will be indicated by faded text or three dots in code and will not show up in the `Problems Panel`.", | 557 | "markdownDescription": "List of warnings that should be displayed with hint severity.\n\nThe warnings will be indicated by faded text or three dots in code\nand will not show up in the `Problems Panel`.", |
552 | "default": [], | 558 | "default": [], |
553 | "type": "array", | 559 | "type": "array", |
554 | "items": { | 560 | "items": { |
@@ -569,7 +575,7 @@ | |||
569 | } | 575 | } |
570 | }, | 576 | }, |
571 | "rust-analyzer.hoverActions.debug": { | 577 | "rust-analyzer.hoverActions.debug": { |
572 | "markdownDescription": "Whether to show `Debug` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.", | 578 | "markdownDescription": "Whether to show `Debug` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", |
573 | "default": true, | 579 | "default": true, |
574 | "type": "boolean" | 580 | "type": "boolean" |
575 | }, | 581 | }, |
@@ -579,17 +585,17 @@ | |||
579 | "type": "boolean" | 585 | "type": "boolean" |
580 | }, | 586 | }, |
581 | "rust-analyzer.hoverActions.gotoTypeDef": { | 587 | "rust-analyzer.hoverActions.gotoTypeDef": { |
582 | "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.", | 588 | "markdownDescription": "Whether to show `Go to Type Definition` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", |
583 | "default": true, | 589 | "default": true, |
584 | "type": "boolean" | 590 | "type": "boolean" |
585 | }, | 591 | }, |
586 | "rust-analyzer.hoverActions.implementations": { | 592 | "rust-analyzer.hoverActions.implementations": { |
587 | "markdownDescription": "Whether to show `Implementations` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.", | 593 | "markdownDescription": "Whether to show `Implementations` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", |
588 | "default": true, | 594 | "default": true, |
589 | "type": "boolean" | 595 | "type": "boolean" |
590 | }, | 596 | }, |
591 | "rust-analyzer.hoverActions.run": { | 597 | "rust-analyzer.hoverActions.run": { |
592 | "markdownDescription": "Whether to show `Run` action. Only applies when `#rust-analyzer.hoverActions.enable#` is set.", | 598 | "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", |
593 | "default": true, | 599 | "default": true, |
594 | "type": "boolean" | 600 | "type": "boolean" |
595 | }, | 601 | }, |
@@ -613,7 +619,7 @@ | |||
613 | "minimum": 0 | 619 | "minimum": 0 |
614 | }, | 620 | }, |
615 | "rust-analyzer.inlayHints.parameterHints": { | 621 | "rust-analyzer.inlayHints.parameterHints": { |
616 | "markdownDescription": "Whether to show function parameter name inlay hints at the call site.", | 622 | "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.", |
617 | "default": true, | 623 | "default": true, |
618 | "type": "boolean" | 624 | "type": "boolean" |
619 | }, | 625 | }, |
@@ -623,7 +629,7 @@ | |||
623 | "type": "boolean" | 629 | "type": "boolean" |
624 | }, | 630 | }, |
625 | "rust-analyzer.lens.debug": { | 631 | "rust-analyzer.lens.debug": { |
626 | "markdownDescription": "Whether to show `Debug` lens. Only applies when `#rust-analyzer.lens.enable#` is set.", | 632 | "markdownDescription": "Whether to show `Debug` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.", |
627 | "default": true, | 633 | "default": true, |
628 | "type": "boolean" | 634 | "type": "boolean" |
629 | }, | 635 | }, |
@@ -633,27 +639,27 @@ | |||
633 | "type": "boolean" | 639 | "type": "boolean" |
634 | }, | 640 | }, |
635 | "rust-analyzer.lens.implementations": { | 641 | "rust-analyzer.lens.implementations": { |
636 | "markdownDescription": "Whether to show `Implementations` lens. Only applies when `#rust-analyzer.lens.enable#` is set.", | 642 | "markdownDescription": "Whether to show `Implementations` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.", |
637 | "default": true, | 643 | "default": true, |
638 | "type": "boolean" | 644 | "type": "boolean" |
639 | }, | 645 | }, |
640 | "rust-analyzer.lens.run": { | 646 | "rust-analyzer.lens.run": { |
641 | "markdownDescription": "Whether to show `Run` lens. Only applies when `#rust-analyzer.lens.enable#` is set.", | 647 | "markdownDescription": "Whether to show `Run` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.", |
642 | "default": true, | 648 | "default": true, |
643 | "type": "boolean" | 649 | "type": "boolean" |
644 | }, | 650 | }, |
645 | "rust-analyzer.lens.methodReferences": { | 651 | "rust-analyzer.lens.methodReferences": { |
646 | "markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.", | 652 | "markdownDescription": "Whether to show `Method References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.", |
647 | "default": false, | 653 | "default": false, |
648 | "type": "boolean" | 654 | "type": "boolean" |
649 | }, | 655 | }, |
650 | "rust-analyzer.lens.references": { | 656 | "rust-analyzer.lens.references": { |
651 | "markdownDescription": "Whether to show `References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.", | 657 | "markdownDescription": "Whether to show `References` lens. Only applies when\n`#rust-analyzer.lens.enable#` is set.", |
652 | "default": false, | 658 | "default": false, |
653 | "type": "boolean" | 659 | "type": "boolean" |
654 | }, | 660 | }, |
655 | "rust-analyzer.linkedProjects": { | 661 | "rust-analyzer.linkedProjects": { |
656 | "markdownDescription": "Disable project auto-discovery in favor of explicitly specified set of projects.\\n\\nElements must be paths pointing to `Cargo.toml`, `rust-project.json`, or JSON objects in `rust-project.json` format.", | 662 | "markdownDescription": "Disable project auto-discovery in favor of explicitly specified set\nof projects.\n\nElements must be paths pointing to `Cargo.toml`,\n`rust-project.json`, or JSON objects in `rust-project.json` format.", |
657 | "default": [], | 663 | "default": [], |
658 | "type": "array", | 664 | "type": "array", |
659 | "items": { | 665 | "items": { |
@@ -683,7 +689,7 @@ | |||
683 | "type": "boolean" | 689 | "type": "boolean" |
684 | }, | 690 | }, |
685 | "rust-analyzer.procMacro.server": { | 691 | "rust-analyzer.procMacro.server": { |
686 | "markdownDescription": "Internal config, path to proc-macro server executable (typically, this is rust-analyzer itself, but we override this in tests).", | 692 | "markdownDescription": "Internal config, path to proc-macro server executable (typically,\nthis is rust-analyzer itself, but we override this in tests).", |
687 | "default": null, | 693 | "default": null, |
688 | "type": [ | 694 | "type": [ |
689 | "null", | 695 | "null", |
@@ -699,7 +705,7 @@ | |||
699 | ] | 705 | ] |
700 | }, | 706 | }, |
701 | "rust-analyzer.runnables.cargoExtraArgs": { | 707 | "rust-analyzer.runnables.cargoExtraArgs": { |
702 | "markdownDescription": "Additional arguments to be passed to cargo for runnables such as tests or binaries.\\nFor example, it may be `--release`.", | 708 | "markdownDescription": "Additional arguments to be passed to cargo for runnables such as\ntests or binaries. For example, it may be `--release`.", |
703 | "default": [], | 709 | "default": [], |
704 | "type": "array", | 710 | "type": "array", |
705 | "items": { | 711 | "items": { |
@@ -707,7 +713,7 @@ | |||
707 | } | 713 | } |
708 | }, | 714 | }, |
709 | "rust-analyzer.rustcSource": { | 715 | "rust-analyzer.rustcSource": { |
710 | "markdownDescription": "Path to the rust compiler sources, for usage in rustc_private projects, or \"discover\" to try to automatically find it.", | 716 | "markdownDescription": "Path to the Cargo.toml of the rust compiler workspace, for usage in rustc_private\nprojects, or \"discover\" to try to automatically find it.\n\nAny project which uses rust-analyzer with the rustcPrivate\ncrates must set `[package.metadata.rust-analyzer] rustc_private=true` to use it.\n\nThis option is not reloaded automatically; you must restart rust-analyzer for it to take effect.", |
711 | "default": null, | 717 | "default": null, |
712 | "type": [ | 718 | "type": [ |
713 | "null", | 719 | "null", |
@@ -723,7 +729,7 @@ | |||
723 | } | 729 | } |
724 | }, | 730 | }, |
725 | "rust-analyzer.rustfmt.overrideCommand": { | 731 | "rust-analyzer.rustfmt.overrideCommand": { |
726 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting.", | 732 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for\nformatting.", |
727 | "default": null, | 733 | "default": null, |
728 | "type": [ | 734 | "type": [ |
729 | "null", | 735 | "null", |