Commit 7af4583
committed
feat(vscode): add option to control extension activation per scope
Add new `robotcode.disableExtension` configuration setting that allows
users to disable or enable the RobotCode extension at any scope level.
With resource scope, users can:
- Disable the extension globally (user settings) and enable it for
specific workspaces or folders
- Disable the extension for a workspace and enable it for specific
folders within
- Disable the extension only for specific folders in multi-root
workspaces
This is useful in:
- Large workspaces where RobotCode is not needed everywhere
- Multi-root workspaces with mixed project types
- Environments where users want opt-in rather than opt-out behavior
Changes:
- Add `disableExtension` boolean setting with resource scope
- Skip language client creation when extension is disabled
- Disable test explorer for disabled workspace folders
- Add "Disable" option to Python environment selection dialog
- React to `disableExtension` configuration changes for restart
closes #5271 parent 5edb90c commit 7af4583
File tree
4 files changed
+28
-5
lines changed- vscode-client/extension
4 files changed
+28
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
687 | 693 | | |
688 | 694 | | |
689 | 695 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | 384 | | |
386 | 385 | | |
| 386 | + | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
401 | 408 | | |
402 | 409 | | |
403 | 410 | | |
| |||
576 | 583 | | |
577 | 584 | | |
578 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
579 | 590 | | |
580 | 591 | | |
581 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
885 | 889 | | |
| 890 | + | |
886 | 891 | | |
887 | 892 | | |
888 | 893 | | |
| |||
0 commit comments