@theia/ai-ide 1.77.0-next.95 → 1.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/address-pr-review-command-contribution.js +15 -19
- package/lib/browser/address-pr-review-command-contribution.js.map +1 -1
- package/lib/browser/agent-mode-confirmation-service.js +20 -24
- package/lib/browser/agent-mode-confirmation-service.js.map +1 -1
- package/lib/browser/agents-md-agent.js +15 -19
- package/lib/browser/agents-md-agent.js.map +1 -1
- package/lib/browser/ai-allow-all-mode-chat-banner.js +32 -39
- package/lib/browser/ai-allow-all-mode-chat-banner.js.map +1 -1
- package/lib/browser/ai-allow-all-mode-chat-banner.spec.js +49 -51
- package/lib/browser/ai-allow-all-mode-chat-banner.spec.js.map +1 -1
- package/lib/browser/ai-aware-scm-commit-widget.d.ts +1 -1
- package/lib/browser/ai-aware-scm-commit-widget.d.ts.map +1 -1
- package/lib/browser/ai-aware-scm-commit-widget.js +36 -47
- package/lib/browser/ai-aware-scm-commit-widget.js.map +1 -1
- package/lib/browser/ai-configuration/agent-icon.js +5 -9
- package/lib/browser/ai-configuration/agent-icon.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js +28 -37
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.js +29 -39
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js +22 -24
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js +12 -15
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js +20 -24
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js +37 -39
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-resource.js +3 -7
- package/lib/browser/ai-configuration/ai-configuration-resource.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-search-widget.js +20 -26
- package/lib/browser/ai-configuration/ai-configuration-search-widget.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-search.js +2 -5
- package/lib/browser/ai-configuration/ai-configuration-search.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-search.spec.js +15 -17
- package/lib/browser/ai-configuration/ai-configuration-search.spec.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-service.js +9 -12
- package/lib/browser/ai-configuration/ai-configuration-service.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-model.js +7 -10
- package/lib/browser/ai-configuration/ai-configuration-tree-model.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js +14 -17
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js +47 -49
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.js +68 -79
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +2 -2
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +47 -54
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +4 -4
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.js +45 -57
- package/lib/browser/ai-configuration/ai-configuration-widget.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts +3 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js +34 -40
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js +135 -140
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-chips.js +8 -13
- package/lib/browser/ai-configuration/categories/agent-chips.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-model.js +7 -10
- package/lib/browser/ai-configuration/categories/agent-detail-model.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-model.spec.js +13 -15
- package/lib/browser/ai-configuration/categories/agent-detail-model.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-view.js +29 -34
- package/lib/browser/ai-configuration/categories/agent-detail-view.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts +1 -1
- package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts.map +1 -1
- package/lib/browser/ai-configuration/categories/agents-configuration-category.js +106 -128
- package/lib/browser/ai-configuration/categories/agents-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js +32 -34
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/general-configuration-category.js +91 -101
- package/lib/browser/ai-configuration/categories/general-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js +38 -40
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js +53 -63
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js +25 -27
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/models-configuration-category.js +45 -56
- package/lib/browser/ai-configuration/categories/models-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js +31 -33
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js +68 -76
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js +55 -57
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js +85 -100
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js +39 -41
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/provider-model-discovery-section.js +44 -49
- package/lib/browser/ai-configuration/categories/provider-model-discovery-section.js.map +1 -1
- package/lib/browser/ai-configuration/categories/provider-model-discovery-section.spec.js +71 -74
- package/lib/browser/ai-configuration/categories/provider-model-discovery-section.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js +34 -42
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js +16 -18
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/tools-configuration-category.js +101 -112
- package/lib/browser/ai-configuration/categories/tools-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js +46 -48
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/variables-configuration-category.js +54 -63
- package/lib/browser/ai-configuration/categories/variables-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js +27 -29
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/components/agent-notification-settings.js +12 -16
- package/lib/browser/ai-configuration/components/agent-notification-settings.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.js +25 -31
- package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.spec.js +29 -32
- package/lib/browser/ai-configuration/language-model-renderer.spec.js.map +1 -1
- package/lib/browser/ai-first-perspective-contribution.js +18 -21
- package/lib/browser/ai-first-perspective-contribution.js.map +1 -1
- package/lib/browser/ai-getting-started-commands.js +3 -6
- package/lib/browser/ai-getting-started-commands.js.map +1 -1
- package/lib/browser/ai-getting-started-contribution.js +24 -30
- package/lib/browser/ai-getting-started-contribution.js.map +1 -1
- package/lib/browser/ai-getting-started-walkthrough.js +54 -58
- package/lib/browser/ai-getting-started-walkthrough.js.map +1 -1
- package/lib/browser/ai-getting-started-walkthrough.spec.js +32 -34
- package/lib/browser/ai-getting-started-walkthrough.spec.js.map +1 -1
- package/lib/browser/ai-ide-activation-service.js +25 -34
- package/lib/browser/ai-ide-activation-service.js.map +1 -1
- package/lib/browser/ai-sessions-view-contribution.d.ts +1 -1
- package/lib/browser/ai-sessions-view-contribution.d.ts.map +1 -1
- package/lib/browser/ai-sessions-view-contribution.js +28 -33
- package/lib/browser/ai-sessions-view-contribution.js.map +1 -1
- package/lib/browser/ai-sessions-widget.d.ts +3 -3
- package/lib/browser/ai-sessions-widget.d.ts.map +1 -1
- package/lib/browser/ai-sessions-widget.js +42 -55
- package/lib/browser/ai-sessions-widget.js.map +1 -1
- package/lib/browser/ai-terminal-functions.js +18 -24
- package/lib/browser/ai-terminal-functions.js.map +1 -1
- package/lib/browser/ai-walkthrough-context-keys.js +35 -45
- package/lib/browser/ai-walkthrough-context-keys.js.map +1 -1
- package/lib/browser/ai-walkthrough-context-keys.spec.js +34 -36
- package/lib/browser/ai-walkthrough-context-keys.spec.js.map +1 -1
- package/lib/browser/ai-workspace-restriction-contribution.js +11 -15
- package/lib/browser/ai-workspace-restriction-contribution.js.map +1 -1
- package/lib/browser/analyze-gh-ticket-command-contribution.js +19 -23
- package/lib/browser/analyze-gh-ticket-command-contribution.js.map +1 -1
- package/lib/browser/app-tester-chat-agent.js +45 -51
- package/lib/browser/app-tester-chat-agent.js.map +1 -1
- package/lib/browser/app-tester-chat-functions.d.ts +1 -1
- package/lib/browser/app-tester-chat-functions.d.ts.map +1 -1
- package/lib/browser/app-tester-chat-functions.js +29 -34
- package/lib/browser/app-tester-chat-functions.js.map +1 -1
- package/lib/browser/app-tester-prompt-template.js +42 -45
- package/lib/browser/app-tester-prompt-template.js.map +1 -1
- package/lib/browser/apptester-capability-contribution.js +13 -17
- package/lib/browser/apptester-capability-contribution.js.map +1 -1
- package/lib/browser/architect-agent.d.ts +2 -2
- package/lib/browser/architect-agent.d.ts.map +1 -1
- package/lib/browser/architect-agent.js +38 -44
- package/lib/browser/architect-agent.js.map +1 -1
- package/lib/browser/architect-prompt-template.js +84 -87
- package/lib/browser/architect-prompt-template.js.map +1 -1
- package/lib/browser/chat-session-item-action-contribution.js +15 -18
- package/lib/browser/chat-session-item-action-contribution.js.map +1 -1
- package/lib/browser/chat-session-item.d.ts +1 -1
- package/lib/browser/chat-session-item.d.ts.map +1 -1
- package/lib/browser/chat-session-item.js +25 -29
- package/lib/browser/chat-session-item.js.map +1 -1
- package/lib/browser/chat-session-list-components.js +9 -14
- package/lib/browser/chat-session-list-components.js.map +1 -1
- package/lib/browser/chat-session-list-service.d.ts +2 -2
- package/lib/browser/chat-session-list-service.d.ts.map +1 -1
- package/lib/browser/chat-session-list-service.js +33 -43
- package/lib/browser/chat-session-list-service.js.map +1 -1
- package/lib/browser/chat-session-list-service.spec.js +56 -58
- package/lib/browser/chat-session-list-service.spec.js.map +1 -1
- package/lib/browser/chat-session-tooltip.js +31 -35
- package/lib/browser/chat-session-tooltip.js.map +1 -1
- package/lib/browser/chat-sessions-welcome-message-provider.d.ts +3 -3
- package/lib/browser/chat-sessions-welcome-message-provider.d.ts.map +1 -1
- package/lib/browser/chat-sessions-welcome-message-provider.js +54 -70
- package/lib/browser/chat-sessions-welcome-message-provider.js.map +1 -1
- package/lib/browser/code-review-capability-contribution.js +13 -17
- package/lib/browser/code-review-capability-contribution.js.map +1 -1
- package/lib/browser/code-reviewer-agent.js +17 -21
- package/lib/browser/code-reviewer-agent.js.map +1 -1
- package/lib/browser/code-reviewer-prompt-template.js +5 -8
- package/lib/browser/code-reviewer-prompt-template.js.map +1 -1
- package/lib/browser/coder-agent.d.ts +2 -2
- package/lib/browser/coder-agent.d.ts.map +1 -1
- package/lib/browser/coder-agent.js +44 -50
- package/lib/browser/coder-agent.js.map +1 -1
- package/lib/browser/commit-message-agent.js +26 -32
- package/lib/browser/commit-message-agent.js.map +1 -1
- package/lib/browser/commit-message-agent.spec.js +25 -28
- package/lib/browser/commit-message-agent.spec.js.map +1 -1
- package/lib/browser/commit-message-command-contribution.d.ts +1 -1
- package/lib/browser/commit-message-command-contribution.d.ts.map +1 -1
- package/lib/browser/commit-message-command-contribution.js +21 -28
- package/lib/browser/commit-message-command-contribution.js.map +1 -1
- package/lib/browser/commit-message-commands.js +4 -7
- package/lib/browser/commit-message-commands.js.map +1 -1
- package/lib/browser/commit-message-prompt-template.js +9 -12
- package/lib/browser/commit-message-prompt-template.js.map +1 -1
- package/lib/browser/commit-message-runner.d.ts +2 -2
- package/lib/browser/commit-message-runner.d.ts.map +1 -1
- package/lib/browser/commit-message-runner.js +33 -41
- package/lib/browser/commit-message-runner.js.map +1 -1
- package/lib/browser/commit-message-runner.spec.js +65 -68
- package/lib/browser/commit-message-runner.spec.js.map +1 -1
- package/lib/browser/context-file-validation-service-impl.d.ts +1 -1
- package/lib/browser/context-file-validation-service-impl.d.ts.map +1 -1
- package/lib/browser/context-file-validation-service-impl.js +20 -26
- package/lib/browser/context-file-validation-service-impl.js.map +1 -1
- package/lib/browser/context-file-validation-service-impl.spec.js +77 -79
- package/lib/browser/context-file-validation-service-impl.spec.js.map +1 -1
- package/lib/browser/context-functions.js +27 -31
- package/lib/browser/context-functions.js.map +1 -1
- package/lib/browser/context-functions.spec.js +64 -66
- package/lib/browser/context-functions.spec.js.map +1 -1
- package/lib/browser/create-skill-agent.d.ts +1 -1
- package/lib/browser/create-skill-agent.d.ts.map +1 -1
- package/lib/browser/create-skill-agent.js +19 -23
- package/lib/browser/create-skill-agent.js.map +1 -1
- package/lib/browser/default-chat-agent-recommendation-service.js +16 -19
- package/lib/browser/default-chat-agent-recommendation-service.js.map +1 -1
- package/lib/browser/explore-agent.d.ts +1 -1
- package/lib/browser/explore-agent.d.ts.map +1 -1
- package/lib/browser/explore-agent.js +18 -22
- package/lib/browser/explore-agent.js.map +1 -1
- package/lib/browser/explore-prompt-template.js +5 -8
- package/lib/browser/explore-prompt-template.js.map +1 -1
- package/lib/browser/file-changeset-function.spec.js +12 -14
- package/lib/browser/file-changeset-function.spec.js.map +1 -1
- package/lib/browser/file-changeset-functions.d.ts +1 -1
- package/lib/browser/file-changeset-functions.d.ts.map +1 -1
- package/lib/browser/file-changeset-functions.js +134 -164
- package/lib/browser/file-changeset-functions.js.map +1 -1
- package/lib/browser/file-changeset-functions.spec.js +136 -138
- package/lib/browser/file-changeset-functions.spec.js.map +1 -1
- package/lib/browser/frontend-module.js +293 -295
- package/lib/browser/frontend-module.js.map +1 -1
- package/lib/browser/git-changes-tool.js +22 -26
- package/lib/browser/git-changes-tool.js.map +1 -1
- package/lib/browser/git-changes-tool.spec.js +52 -55
- package/lib/browser/git-changes-tool.spec.js.map +1 -1
- package/lib/browser/github-capability-contribution.js +14 -18
- package/lib/browser/github-capability-contribution.js.map +1 -1
- package/lib/browser/github-chat-agent.js +58 -67
- package/lib/browser/github-chat-agent.js.map +1 -1
- package/lib/browser/github-prompt-template.js +6 -9
- package/lib/browser/github-prompt-template.js.map +1 -1
- package/lib/browser/github-repo-variable-contribution.d.ts +1 -1
- package/lib/browser/github-repo-variable-contribution.d.ts.map +1 -1
- package/lib/browser/github-repo-variable-contribution.js +23 -30
- package/lib/browser/github-repo-variable-contribution.js.map +1 -1
- package/lib/browser/ide-chat-welcome-message-provider.js +59 -71
- package/lib/browser/ide-chat-welcome-message-provider.js.map +1 -1
- package/lib/browser/implement-gh-ticket-command-contribution.js +15 -19
- package/lib/browser/implement-gh-ticket-command-contribution.js.map +1 -1
- package/lib/browser/memory-capability-contribution.d.ts.map +1 -1
- package/lib/browser/memory-capability-contribution.js +21 -25
- package/lib/browser/memory-capability-contribution.js.map +1 -1
- package/lib/browser/memory-capability-contribution.spec.js +30 -32
- package/lib/browser/memory-capability-contribution.spec.js.map +1 -1
- package/lib/browser/memory-directory-variable-contribution.d.ts +1 -1
- package/lib/browser/memory-directory-variable-contribution.d.ts.map +1 -1
- package/lib/browser/memory-directory-variable-contribution.js +19 -24
- package/lib/browser/memory-directory-variable-contribution.js.map +1 -1
- package/lib/browser/memory-directory-variable-contribution.spec.js +28 -30
- package/lib/browser/memory-directory-variable-contribution.spec.js.map +1 -1
- package/lib/browser/mode-aware-chat-agent.js +9 -12
- package/lib/browser/mode-aware-chat-agent.js.map +1 -1
- package/lib/browser/multi-root-paths.spec.js +86 -88
- package/lib/browser/multi-root-paths.spec.js.map +1 -1
- package/lib/browser/open-editors-hint-contribution.d.ts.map +1 -1
- package/lib/browser/open-editors-hint-contribution.js +11 -14
- package/lib/browser/open-editors-hint-contribution.js.map +1 -1
- package/lib/browser/remember-command-contribution.js +17 -21
- package/lib/browser/remember-command-contribution.js.map +1 -1
- package/lib/browser/review/pr-review-agent.js +17 -21
- package/lib/browser/review/pr-review-agent.js.map +1 -1
- package/lib/browser/review/pr-review-capability-contribution.js +41 -45
- package/lib/browser/review/pr-review-capability-contribution.js.map +1 -1
- package/lib/browser/review/pr-review-prompt-template.js +48 -51
- package/lib/browser/review/pr-review-prompt-template.js.map +1 -1
- package/lib/browser/shell-execution-capability-contribution.js +17 -21
- package/lib/browser/shell-execution-capability-contribution.js.map +1 -1
- package/lib/browser/skill-file-functions.js +27 -33
- package/lib/browser/skill-file-functions.js.map +1 -1
- package/lib/browser/skill-file-functions.spec.js +19 -21
- package/lib/browser/skill-file-functions.spec.js.map +1 -1
- package/lib/browser/summarize-session-command-contribution.d.ts +1 -1
- package/lib/browser/summarize-session-command-contribution.d.ts.map +1 -1
- package/lib/browser/summarize-session-command-contribution.js +38 -50
- package/lib/browser/summarize-session-command-contribution.js.map +1 -1
- package/lib/browser/task-background-summary-variable.js +17 -20
- package/lib/browser/task-background-summary-variable.js.map +1 -1
- package/lib/browser/task-context-file-storage-service.js +39 -51
- package/lib/browser/task-context-file-storage-service.js.map +1 -1
- package/lib/browser/task-context-file-storage-service.spec.js +41 -43
- package/lib/browser/task-context-file-storage-service.spec.js.map +1 -1
- package/lib/browser/task-context-functions.js +44 -52
- package/lib/browser/task-context-functions.js.map +1 -1
- package/lib/browser/template-preference-contribution.js +30 -37
- package/lib/browser/template-preference-contribution.js.map +1 -1
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js +8 -10
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js.map +1 -1
- package/lib/browser/todo-tool-renderer.d.ts +1 -1
- package/lib/browser/todo-tool-renderer.d.ts.map +1 -1
- package/lib/browser/todo-tool-renderer.js +42 -51
- package/lib/browser/todo-tool-renderer.js.map +1 -1
- package/lib/browser/todo-tool.js +8 -11
- package/lib/browser/todo-tool.js.map +1 -1
- package/lib/browser/todo-tool.spec.js +14 -16
- package/lib/browser/todo-tool.spec.js.map +1 -1
- package/lib/browser/user-interaction-tool-renderer.d.ts +1 -1
- package/lib/browser/user-interaction-tool-renderer.d.ts.map +1 -1
- package/lib/browser/user-interaction-tool-renderer.js +81 -95
- package/lib/browser/user-interaction-tool-renderer.js.map +1 -1
- package/lib/browser/user-interaction-tool.d.ts +2 -2
- package/lib/browser/user-interaction-tool.d.ts.map +1 -1
- package/lib/browser/user-interaction-tool.js +56 -65
- package/lib/browser/user-interaction-tool.js.map +1 -1
- package/lib/browser/user-interaction-tool.spec.js +118 -121
- package/lib/browser/user-interaction-tool.spec.js.map +1 -1
- package/lib/browser/workspace-functions.d.ts +1 -1
- package/lib/browser/workspace-functions.d.ts.map +1 -1
- package/lib/browser/workspace-functions.js +126 -155
- package/lib/browser/workspace-functions.js.map +1 -1
- package/lib/browser/workspace-functions.spec.js +607 -600
- package/lib/browser/workspace-functions.spec.js.map +1 -1
- package/lib/browser/workspace-launch-provider.d.ts +1 -1
- package/lib/browser/workspace-launch-provider.d.ts.map +1 -1
- package/lib/browser/workspace-launch-provider.js +46 -57
- package/lib/browser/workspace-launch-provider.js.map +1 -1
- package/lib/browser/workspace-launch-provider.spec.js +119 -122
- package/lib/browser/workspace-launch-provider.spec.js.map +1 -1
- package/lib/browser/workspace-search-provider.d.ts +1 -1
- package/lib/browser/workspace-search-provider.d.ts.map +1 -1
- package/lib/browser/workspace-search-provider.js +25 -32
- package/lib/browser/workspace-search-provider.js.map +1 -1
- package/lib/browser/workspace-search-provider.spec.js +35 -38
- package/lib/browser/workspace-search-provider.spec.js.map +1 -1
- package/lib/browser/workspace-task-provider.d.ts +1 -1
- package/lib/browser/workspace-task-provider.d.ts.map +1 -1
- package/lib/browser/workspace-task-provider.js +42 -51
- package/lib/browser/workspace-task-provider.js.map +1 -1
- package/lib/browser/workspace-task-provider.spec.js +102 -105
- package/lib/browser/workspace-task-provider.spec.js.map +1 -1
- package/lib/common/agent-ids.js +2 -5
- package/lib/common/agent-ids.js.map +1 -1
- package/lib/common/agents-md-prompt-template.js +38 -41
- package/lib/common/agents-md-prompt-template.js.map +1 -1
- package/lib/common/ai-configuration-preferences.js +5 -8
- package/lib/common/ai-configuration-preferences.js.map +1 -1
- package/lib/common/ai-ide-preferences.js +16 -19
- package/lib/common/ai-ide-preferences.js.map +1 -1
- package/lib/common/ai-terminal-functions.js +1 -4
- package/lib/common/ai-terminal-functions.js.map +1 -1
- package/lib/common/app-tester-chat-functions.js +4 -7
- package/lib/common/app-tester-chat-functions.js.map +1 -1
- package/lib/common/browser-automation-protocol.js +3 -6
- package/lib/common/browser-automation-protocol.js.map +1 -1
- package/lib/common/coder-replace-prompt-template.js +102 -108
- package/lib/common/coder-replace-prompt-template.js.map +1 -1
- package/lib/common/command-chat-agents.js +34 -40
- package/lib/common/command-chat-agents.js.map +1 -1
- package/lib/common/command-prompt-template.js +1 -4
- package/lib/common/command-prompt-template.js.map +1 -1
- package/lib/common/context-files-variable.js +17 -20
- package/lib/common/context-files-variable.js.map +1 -1
- package/lib/common/context-functions.js +3 -6
- package/lib/common/context-functions.js.map +1 -1
- package/lib/common/context-variables.js +2 -5
- package/lib/common/context-variables.js.map +1 -1
- package/lib/common/create-skill-prompt-template.js +22 -25
- package/lib/common/create-skill-prompt-template.js.map +1 -1
- package/lib/common/file-changeset-function-ids.js +8 -11
- package/lib/common/file-changeset-function-ids.js.map +1 -1
- package/lib/common/github-repo-protocol.js +2 -5
- package/lib/common/github-repo-protocol.js.map +1 -1
- package/lib/common/open-editors-hint-fragment-id.js +1 -4
- package/lib/common/open-editors-hint-fragment-id.js.map +1 -1
- package/lib/common/orchestrator-chat-agent.js +36 -42
- package/lib/common/orchestrator-chat-agent.js.map +1 -1
- package/lib/common/orchestrator-prompt-template.js +1 -4
- package/lib/common/orchestrator-prompt-template.js.map +1 -1
- package/lib/common/summarize-session-commands.js +2 -5
- package/lib/common/summarize-session-commands.js.map +1 -1
- package/lib/common/task-context-function-ids.js +5 -8
- package/lib/common/task-context-function-ids.js.map +1 -1
- package/lib/common/todo-tool.js +2 -6
- package/lib/common/todo-tool.js.map +1 -1
- package/lib/common/universal-chat-agent.js +17 -21
- package/lib/common/universal-chat-agent.js.map +1 -1
- package/lib/common/universal-prompt-template.js +6 -9
- package/lib/common/universal-prompt-template.js.map +1 -1
- package/lib/common/user-interaction-tool.js +11 -21
- package/lib/common/user-interaction-tool.js.map +1 -1
- package/lib/common/user-interaction-tool.spec.js +52 -54
- package/lib/common/user-interaction-tool.spec.js.map +1 -1
- package/lib/common/workspace-functions.js +13 -16
- package/lib/common/workspace-functions.js.map +1 -1
- package/lib/common/workspace-preferences.js +41 -44
- package/lib/common/workspace-preferences.js.map +1 -1
- package/lib/common/workspace-search-provider-util.js +3 -6
- package/lib/common/workspace-search-provider-util.js.map +1 -1
- package/lib/common/workspace-search-provider-util.spec.js +13 -15
- package/lib/common/workspace-search-provider-util.spec.js.map +1 -1
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts +1 -1
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts.map +1 -1
- package/lib/node/app-tester-agent/browser-automation-impl.js +7 -10
- package/lib/node/app-tester-agent/browser-automation-impl.js.map +1 -1
- package/lib/node/backend-module.js +21 -23
- package/lib/node/backend-module.js.map +1 -1
- package/lib/node/github-repo-service-impl.d.ts +1 -1
- package/lib/node/github-repo-service-impl.d.ts.map +1 -1
- package/lib/node/github-repo-service-impl.js +11 -15
- package/lib/node/github-repo-service-impl.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -1
- package/lib/package.spec.js.map +1 -1
- package/package.json +33 -25
- package/src/browser/address-pr-review-command-contribution.ts +1 -1
- package/src/browser/agent-mode-confirmation-service.ts +1 -1
- package/src/browser/agents-md-agent.ts +1 -1
- package/src/browser/ai-allow-all-mode-chat-banner.spec.ts +1 -1
- package/src/browser/ai-aware-scm-commit-widget.tsx +3 -3
- package/src/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.ts +2 -2
- package/src/browser/ai-configuration/ai-configuration-detail-widget.spec.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-label-provider-contribution.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-open-preference-renderer.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-preference-ownership.spec.ts +6 -6
- package/src/browser/ai-configuration/ai-configuration-search.spec.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-tree-nodes.spec.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-tree-widget.tsx +3 -3
- package/src/browser/ai-configuration/ai-configuration-view-contribution.ts +2 -2
- package/src/browser/ai-configuration/ai-configuration-widget.tsx +5 -5
- package/src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts +9 -9
- package/src/browser/ai-configuration/categories/agent-capabilities-settings.tsx +5 -2
- package/src/browser/ai-configuration/categories/agent-chips.tsx +1 -1
- package/src/browser/ai-configuration/categories/agent-detail-model.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/agent-detail-view.tsx +6 -6
- package/src/browser/ai-configuration/categories/agents-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/agents-configuration-category.tsx +5 -5
- package/src/browser/ai-configuration/categories/general-configuration-category.spec.ts +2 -2
- package/src/browser/ai-configuration/categories/general-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/model-aliases-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/model-aliases-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/models-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/models-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/provider-model-discovery-section.spec.tsx +1 -1
- package/src/browser/ai-configuration/categories/provider-model-discovery-section.tsx +1 -1
- package/src/browser/ai-configuration/categories/token-usage-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/token-usage-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/tools-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/variables-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/variables-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/language-model-renderer.spec.ts +1 -1
- package/src/browser/ai-first-perspective-contribution.ts +1 -1
- package/src/browser/ai-getting-started-contribution.ts +2 -2
- package/src/browser/ai-getting-started-walkthrough.spec.ts +2 -2
- package/src/browser/ai-getting-started-walkthrough.ts +3 -3
- package/src/browser/ai-ide-activation-service.ts +1 -1
- package/src/browser/ai-sessions-view-contribution.ts +1 -1
- package/src/browser/ai-sessions-widget.tsx +4 -4
- package/src/browser/ai-terminal-functions.ts +1 -1
- package/src/browser/ai-walkthrough-context-keys.spec.ts +1 -1
- package/src/browser/analyze-gh-ticket-command-contribution.ts +3 -3
- package/src/browser/app-tester-chat-agent.ts +2 -2
- package/src/browser/app-tester-chat-functions.ts +2 -2
- package/src/browser/app-tester-prompt-template.ts +2 -2
- package/src/browser/apptester-capability-contribution.ts +1 -1
- package/src/browser/architect-agent.ts +4 -4
- package/src/browser/architect-prompt-template.ts +6 -6
- package/src/browser/chat-session-item.tsx +2 -2
- package/src/browser/chat-session-list-service.spec.ts +2 -2
- package/src/browser/chat-session-list-service.ts +2 -2
- package/src/browser/chat-sessions-welcome-message-provider.tsx +5 -5
- package/src/browser/code-review-capability-contribution.ts +1 -1
- package/src/browser/code-reviewer-agent.ts +1 -1
- package/src/browser/coder-agent.ts +3 -3
- package/src/browser/commit-message-agent.spec.ts +2 -2
- package/src/browser/commit-message-agent.ts +1 -1
- package/src/browser/commit-message-command-contribution.ts +3 -3
- package/src/browser/commit-message-runner.spec.ts +3 -3
- package/src/browser/commit-message-runner.ts +2 -2
- package/src/browser/context-file-validation-service-impl.spec.ts +2 -2
- package/src/browser/context-file-validation-service-impl.ts +1 -1
- package/src/browser/context-functions.spec.ts +1 -1
- package/src/browser/context-functions.ts +1 -1
- package/src/browser/create-skill-agent.ts +2 -2
- package/src/browser/default-chat-agent-recommendation-service.ts +2 -2
- package/src/browser/explore-agent.ts +2 -2
- package/src/browser/file-changeset-function.spec.ts +1 -1
- package/src/browser/file-changeset-functions.spec.ts +3 -3
- package/src/browser/file-changeset-functions.ts +3 -3
- package/src/browser/frontend-module.ts +89 -89
- package/src/browser/git-changes-tool.spec.ts +1 -1
- package/src/browser/github-capability-contribution.ts +1 -1
- package/src/browser/github-chat-agent.ts +3 -3
- package/src/browser/github-repo-variable-contribution.ts +1 -1
- package/src/browser/ide-chat-welcome-message-provider.tsx +3 -3
- package/src/browser/implement-gh-ticket-command-contribution.ts +1 -1
- package/src/browser/memory-capability-contribution.spec.ts +4 -4
- package/src/browser/memory-capability-contribution.ts +5 -3
- package/src/browser/memory-directory-variable-contribution.spec.ts +1 -1
- package/src/browser/memory-directory-variable-contribution.ts +1 -1
- package/src/browser/multi-root-paths.spec.ts +2 -2
- package/src/browser/open-editors-hint-contribution.ts +2 -1
- package/src/browser/remember-command-contribution.ts +2 -2
- package/src/browser/review/pr-review-agent.ts +1 -1
- package/src/browser/review/pr-review-capability-contribution.ts +6 -6
- package/src/browser/review/pr-review-prompt-template.ts +4 -4
- package/src/browser/shell-execution-capability-contribution.ts +1 -1
- package/src/browser/skill-file-functions.spec.ts +1 -1
- package/src/browser/skill-file-functions.ts +1 -1
- package/src/browser/summarize-session-command-contribution.ts +2 -2
- package/src/browser/task-background-summary-variable.ts +1 -1
- package/src/browser/task-context-file-storage-service.spec.ts +1 -1
- package/src/browser/task-context-file-storage-service.ts +1 -1
- package/src/browser/task-context-functions.ts +1 -1
- package/src/browser/template-preference-contribution.ts +1 -1
- package/src/browser/todo-tool-renderer.tsx +1 -1
- package/src/browser/todo-tool.spec.ts +1 -1
- package/src/browser/todo-tool.ts +1 -1
- package/src/browser/user-interaction-tool-renderer.tsx +3 -3
- package/src/browser/user-interaction-tool.spec.ts +3 -3
- package/src/browser/user-interaction-tool.ts +2 -2
- package/src/browser/workspace-functions.spec.ts +16 -7
- package/src/browser/workspace-functions.ts +7 -6
- package/src/browser/workspace-launch-provider.spec.ts +2 -2
- package/src/browser/workspace-launch-provider.ts +2 -2
- package/src/browser/workspace-search-provider.spec.ts +2 -2
- package/src/browser/workspace-search-provider.ts +4 -4
- package/src/browser/workspace-task-provider.spec.ts +2 -2
- package/src/browser/workspace-task-provider.ts +2 -2
- package/src/common/agents-md-prompt-template.ts +4 -4
- package/src/common/coder-replace-prompt-template.ts +8 -8
- package/src/common/command-chat-agents.ts +1 -1
- package/src/common/context-files-variable.ts +1 -1
- package/src/common/create-skill-prompt-template.ts +4 -4
- package/src/common/orchestrator-chat-agent.ts +2 -2
- package/src/common/universal-chat-agent.ts +1 -1
- package/src/common/universal-prompt-template.ts +1 -1
- package/src/common/user-interaction-tool.spec.ts +1 -1
- package/src/common/workspace-search-provider-util.spec.ts +1 -1
- package/src/node/app-tester-agent/browser-automation-impl.ts +1 -1
- package/src/node/backend-module.ts +7 -7
- package/src/node/github-repo-service-impl.ts +1 -1
|
@@ -176,7 +176,7 @@ export declare class WorkspaceFunctionScope {
|
|
|
176
176
|
* The cache is invalidated by {@link initializeGitignoreWatcher} when the `.gitignore` is
|
|
177
177
|
* created, changed, or deleted, so individual exclusion checks need no filesystem RPC.
|
|
178
178
|
*/
|
|
179
|
-
protected getGitignoreMatcher(workspaceRoot: URI): Promise<ReturnType<typeof ignore> | undefined>;
|
|
179
|
+
protected getGitignoreMatcher(workspaceRoot: URI): Promise<ReturnType<typeof ignore.default> | undefined>;
|
|
180
180
|
}
|
|
181
181
|
export declare class GetWorkspaceDirectoryStructure implements ToolProvider {
|
|
182
182
|
static ID: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-functions.d.ts","sourceRoot":"","sources":["../../src/browser/workspace-funct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H,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,GAAG,MAAM,EAAE;IAY/D;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE;QAAE,OAAO,EAAE,GAAG,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,GAAG,MAAM,GAAG,SAAS;CAM1H"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var WorkspaceFunctionScope_1, GetWorkspaceDirectoryStructure_1, FileContentFunction_1, GetWorkspaceFileList_1, FileDiagnosticProvider_1, FindFilesByPattern_1;
|
|
3
|
-
|
|
4
|
-
exports.FindFilesByPattern = exports.FileDiagnosticProvider = exports.GetWorkspaceFileList = exports.FileContentFunction = exports.GetWorkspaceDirectoryStructure = exports.WorkspaceFunctionScope = exports.AccessibleRootContribution = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
2
|
+
import { __decorate } from "tslib";
|
|
6
3
|
// *****************************************************************************
|
|
7
4
|
// Copyright (C) 2024 EclipseSource GmbH.
|
|
8
5
|
//
|
|
@@ -18,26 +15,26 @@ const tslib_1 = require("tslib");
|
|
|
18
15
|
//
|
|
19
16
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
20
17
|
// *****************************************************************************
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
18
|
+
import { AiConfigurationService } from '@theia/ai-core';
|
|
19
|
+
import { ChatToolContext, FileReadTracker } from '@theia/ai-chat';
|
|
20
|
+
import { OS, PreferenceService, URI, Path, ILogger } from '@theia/core';
|
|
21
|
+
import { ContributionProvider } from '@theia/core/lib/common/contribution-provider';
|
|
22
|
+
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
23
|
+
import { inject, injectable, named, optional, postConstruct } from '@theia/core/shared/inversify';
|
|
24
|
+
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
25
|
+
import { FileOperationError } from '@theia/filesystem/lib/common/files';
|
|
26
|
+
import { FileSearchService } from '@theia/file-search/lib/common/file-search-service';
|
|
27
|
+
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
28
|
+
import { FILE_CONTENT_FUNCTION_ID, GET_FILE_DIAGNOSTICS_ID, GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID, GET_WORKSPACE_FILE_LIST_FUNCTION_ID, FIND_FILES_BY_PATTERN_FUNCTION_ID } from '../common/workspace-functions.js';
|
|
29
|
+
import { extractJsonStringField } from '@theia/ai-chat-ui/lib/browser/chat-response-renderer/toolcall-utils';
|
|
30
|
+
import ignore from 'ignore';
|
|
31
|
+
import { Minimatch } from 'minimatch';
|
|
32
|
+
import { ALLOWED_EXTERNAL_PATHS_PREF, CONSIDER_GITIGNORE_PREF, FILE_CONTENT_MAX_SIZE_KB_PREF, USER_EXCLUDE_PATTERN_PREF } from '../common/workspace-preferences.js';
|
|
33
|
+
import { MonacoWorkspace } from '@theia/monaco/lib/browser/monaco-workspace';
|
|
34
|
+
import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service';
|
|
35
|
+
import { ProblemManager } from '@theia/markers/lib/browser';
|
|
36
|
+
import { DiagnosticSeverity } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
37
|
+
export const AccessibleRootContribution = Symbol('AccessibleRootContribution');
|
|
41
38
|
let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionScope {
|
|
42
39
|
constructor() {
|
|
43
40
|
this.GITIGNORE_FILE_NAME = '.gitignore';
|
|
@@ -113,7 +110,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
113
110
|
* 4. Error: tell the agent how to format the path.
|
|
114
111
|
*/
|
|
115
112
|
resolveRelativePath(relativePath) {
|
|
116
|
-
const normalizedPath = new
|
|
113
|
+
const normalizedPath = new Path(Path.normalizePathSeparator(relativePath)).normalize().toString();
|
|
117
114
|
const roots = this.getAllRootUris();
|
|
118
115
|
// Phase 1 — Root+relative check:
|
|
119
116
|
const rootRelative = this.workspaceService.resolveRootPrefixedPath(normalizedPath);
|
|
@@ -144,7 +141,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
144
141
|
return Array.from(this.getRootMapping(), ([name, uri]) => `${name} (${uri.path.fsPath()})`).join(', ');
|
|
145
142
|
}
|
|
146
143
|
async resolveToUri(pathOrUri) {
|
|
147
|
-
if (pathOrUri instanceof
|
|
144
|
+
if (pathOrUri instanceof URI) {
|
|
148
145
|
return pathOrUri;
|
|
149
146
|
}
|
|
150
147
|
if (!pathOrUri) {
|
|
@@ -152,13 +149,13 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
152
149
|
}
|
|
153
150
|
if (pathOrUri.includes('://')) {
|
|
154
151
|
try {
|
|
155
|
-
const uri = new
|
|
152
|
+
const uri = new URI(pathOrUri);
|
|
156
153
|
return uri;
|
|
157
154
|
}
|
|
158
155
|
catch (error) {
|
|
159
156
|
}
|
|
160
157
|
}
|
|
161
|
-
const normalizedPath =
|
|
158
|
+
const normalizedPath = Path.normalizePathSeparator(pathOrUri);
|
|
162
159
|
// Reject `..` only when it appears as a path SEGMENT. A filename like
|
|
163
160
|
// `my..file.json` is a legitimate name. `ensureAccessible` normalizes
|
|
164
161
|
// URI-form inputs separately as defense-in-depth (e.g. against
|
|
@@ -171,7 +168,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
171
168
|
return tilde;
|
|
172
169
|
}
|
|
173
170
|
if (WorkspaceFunctionScope_1.isAbsolutePath(normalizedPath)) {
|
|
174
|
-
return
|
|
171
|
+
return URI.fromFilePath(normalizedPath);
|
|
175
172
|
}
|
|
176
173
|
return this.resolveRelativePath(normalizedPath);
|
|
177
174
|
}
|
|
@@ -212,7 +209,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
212
209
|
return;
|
|
213
210
|
}
|
|
214
211
|
throw new Error(`Access to '${normalized.path.toString()}' is not allowed. ` +
|
|
215
|
-
`Path is outside the workspace and not covered by the '${
|
|
212
|
+
`Path is outside the workspace and not covered by the '${ALLOWED_EXTERNAL_PATHS_PREF}' preference.`);
|
|
216
213
|
}
|
|
217
214
|
isUnderAny(roots, normalizedTarget) {
|
|
218
215
|
const caseSensitive = WorkspaceFunctionScope_1.pathCaseSensitive;
|
|
@@ -277,7 +274,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
277
274
|
*/
|
|
278
275
|
async getAllowedExternalUris(resourceUri) {
|
|
279
276
|
await this.aiConfiguration.ready;
|
|
280
|
-
const raw = this.aiConfiguration.get(
|
|
277
|
+
const raw = this.aiConfiguration.get(ALLOWED_EXTERNAL_PATHS_PREF, [], resourceUri) ?? [];
|
|
281
278
|
const result = [];
|
|
282
279
|
for (const entry of raw) {
|
|
283
280
|
if (typeof entry !== 'string') {
|
|
@@ -305,7 +302,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
305
302
|
* file system would require a backend round-trip.
|
|
306
303
|
*/
|
|
307
304
|
static get pathCaseSensitive() {
|
|
308
|
-
return !
|
|
305
|
+
return !OS.backend.isWindows && !OS.backend.isOSX;
|
|
309
306
|
}
|
|
310
307
|
/**
|
|
311
308
|
* Converts a user-supplied allow-list entry (absolute POSIX path, Windows
|
|
@@ -315,13 +312,13 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
315
312
|
async toExternalUri(entry) {
|
|
316
313
|
if (entry.includes('://')) {
|
|
317
314
|
try {
|
|
318
|
-
return new
|
|
315
|
+
return new URI(entry);
|
|
319
316
|
}
|
|
320
317
|
catch {
|
|
321
318
|
return undefined;
|
|
322
319
|
}
|
|
323
320
|
}
|
|
324
|
-
const normalized =
|
|
321
|
+
const normalized = Path.normalizePathSeparator(entry);
|
|
325
322
|
const tilde = await this.resolveTildePath(normalized);
|
|
326
323
|
if (tilde) {
|
|
327
324
|
return tilde;
|
|
@@ -329,7 +326,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
329
326
|
if (!WorkspaceFunctionScope_1.isAbsolutePath(normalized)) {
|
|
330
327
|
return undefined;
|
|
331
328
|
}
|
|
332
|
-
return
|
|
329
|
+
return URI.fromFilePath(normalized);
|
|
333
330
|
}
|
|
334
331
|
/**
|
|
335
332
|
* If the given separator-normalized path is `~` or starts with `~/`,
|
|
@@ -378,7 +375,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
378
375
|
getHomeDirUri() {
|
|
379
376
|
if (!this.homeDirUri) {
|
|
380
377
|
this.homeDirUri = this.envVariablesServer.getHomeDirUri()
|
|
381
|
-
.then(value => value ? new
|
|
378
|
+
.then(value => value ? new URI(value) : undefined)
|
|
382
379
|
.catch(() => undefined);
|
|
383
380
|
}
|
|
384
381
|
return this.homeDirUri;
|
|
@@ -406,8 +403,8 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
406
403
|
this.gitignoreWatchersInitialized.add(rootKey);
|
|
407
404
|
}
|
|
408
405
|
async shouldExclude(stat) {
|
|
409
|
-
const shouldConsiderGitIgnore = this.preferences.get(
|
|
410
|
-
const userExcludePatterns = this.preferences.get(
|
|
406
|
+
const shouldConsiderGitIgnore = this.preferences.get(CONSIDER_GITIGNORE_PREF, false);
|
|
407
|
+
const userExcludePatterns = this.preferences.get(USER_EXCLUDE_PATTERN_PREF, []);
|
|
411
408
|
if (this.isUserExcluded(stat.resource.path.base, userExcludePatterns)) {
|
|
412
409
|
return true;
|
|
413
410
|
}
|
|
@@ -420,7 +417,7 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
420
417
|
return false;
|
|
421
418
|
}
|
|
422
419
|
isUserExcluded(fileName, userExcludePatterns) {
|
|
423
|
-
return userExcludePatterns.some(pattern => new
|
|
420
|
+
return userExcludePatterns.some(pattern => new Minimatch(pattern, { dot: true }).match(fileName));
|
|
424
421
|
}
|
|
425
422
|
async isGitIgnored(stat, workspaceRoot) {
|
|
426
423
|
const matcher = await this.getGitignoreMatcher(workspaceRoot);
|
|
@@ -450,7 +447,8 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
450
447
|
try {
|
|
451
448
|
const gitignoreUri = workspaceRoot.resolve(this.GITIGNORE_FILE_NAME);
|
|
452
449
|
const gitignoreContent = await this.fileService.read(gitignoreUri);
|
|
453
|
-
|
|
450
|
+
// `ignore` is a CommonJS module that also provides itself as `default` export.
|
|
451
|
+
matcher = ignore.default().add(gitignoreContent.value);
|
|
454
452
|
}
|
|
455
453
|
catch {
|
|
456
454
|
// No .gitignore (or it cannot be read): cache the absence so we don't retry on every check.
|
|
@@ -460,50 +458,40 @@ let WorkspaceFunctionScope = WorkspaceFunctionScope_1 = class WorkspaceFunctionS
|
|
|
460
458
|
return matcher;
|
|
461
459
|
}
|
|
462
460
|
};
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
(0, inversify_1.inject)(browser_1.WorkspaceService),
|
|
466
|
-
tslib_1.__metadata("design:type", browser_1.WorkspaceService)
|
|
461
|
+
__decorate([
|
|
462
|
+
inject(WorkspaceService)
|
|
467
463
|
], WorkspaceFunctionScope.prototype, "workspaceService", void 0);
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
464
|
+
__decorate([
|
|
465
|
+
inject(FileService)
|
|
471
466
|
], WorkspaceFunctionScope.prototype, "fileService", void 0);
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
tslib_1.__metadata("design:type", Object)
|
|
467
|
+
__decorate([
|
|
468
|
+
inject(PreferenceService)
|
|
475
469
|
], WorkspaceFunctionScope.prototype, "preferences", void 0);
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
tslib_1.__metadata("design:type", Object)
|
|
470
|
+
__decorate([
|
|
471
|
+
inject(AiConfigurationService)
|
|
479
472
|
], WorkspaceFunctionScope.prototype, "aiConfiguration", void 0);
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
tslib_1.__metadata("design:type", Object)
|
|
473
|
+
__decorate([
|
|
474
|
+
inject(EnvVariablesServer)
|
|
483
475
|
], WorkspaceFunctionScope.prototype, "envVariablesServer", void 0);
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
tslib_1.__metadata("design:type", Object)
|
|
476
|
+
__decorate([
|
|
477
|
+
inject(ILogger),
|
|
478
|
+
named('ai-ide:WorkspaceFunctionScope')
|
|
488
479
|
], WorkspaceFunctionScope.prototype, "logger", void 0);
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
tslib_1.__metadata("design:type", Object)
|
|
480
|
+
__decorate([
|
|
481
|
+
inject(ContributionProvider),
|
|
482
|
+
named(AccessibleRootContribution),
|
|
483
|
+
optional()
|
|
494
484
|
], WorkspaceFunctionScope.prototype, "accessibleRootContributions", void 0);
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
tslib_1.__metadata("design:type", Function),
|
|
498
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
499
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
485
|
+
__decorate([
|
|
486
|
+
postConstruct()
|
|
500
487
|
], WorkspaceFunctionScope.prototype, "init", null);
|
|
501
|
-
|
|
502
|
-
|
|
488
|
+
WorkspaceFunctionScope = WorkspaceFunctionScope_1 = __decorate([
|
|
489
|
+
injectable()
|
|
503
490
|
], WorkspaceFunctionScope);
|
|
491
|
+
export { WorkspaceFunctionScope };
|
|
504
492
|
let GetWorkspaceDirectoryStructure = class GetWorkspaceDirectoryStructure {
|
|
505
493
|
static { GetWorkspaceDirectoryStructure_1 = this; }
|
|
506
|
-
static { this.ID =
|
|
494
|
+
static { this.ID = GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID; }
|
|
507
495
|
getTool() {
|
|
508
496
|
return {
|
|
509
497
|
id: GetWorkspaceDirectoryStructure_1.ID,
|
|
@@ -598,21 +586,19 @@ let GetWorkspaceDirectoryStructure = class GetWorkspaceDirectoryStructure {
|
|
|
598
586
|
return result;
|
|
599
587
|
}
|
|
600
588
|
};
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
(0, inversify_1.inject)(file_service_1.FileService),
|
|
604
|
-
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
589
|
+
__decorate([
|
|
590
|
+
inject(FileService)
|
|
605
591
|
], GetWorkspaceDirectoryStructure.prototype, "fileService", void 0);
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
tslib_1.__metadata("design:type", WorkspaceFunctionScope)
|
|
592
|
+
__decorate([
|
|
593
|
+
inject(WorkspaceFunctionScope)
|
|
609
594
|
], GetWorkspaceDirectoryStructure.prototype, "workspaceScope", void 0);
|
|
610
|
-
|
|
611
|
-
|
|
595
|
+
GetWorkspaceDirectoryStructure = GetWorkspaceDirectoryStructure_1 = __decorate([
|
|
596
|
+
injectable()
|
|
612
597
|
], GetWorkspaceDirectoryStructure);
|
|
598
|
+
export { GetWorkspaceDirectoryStructure };
|
|
613
599
|
let FileContentFunction = class FileContentFunction {
|
|
614
600
|
static { FileContentFunction_1 = this; }
|
|
615
|
-
static { this.ID =
|
|
601
|
+
static { this.ID = FILE_CONTENT_FUNCTION_ID; }
|
|
616
602
|
getTool() {
|
|
617
603
|
return {
|
|
618
604
|
id: FileContentFunction_1.ID,
|
|
@@ -667,7 +653,7 @@ let FileContentFunction = class FileContentFunction {
|
|
|
667
653
|
}
|
|
668
654
|
}
|
|
669
655
|
catch {
|
|
670
|
-
const file =
|
|
656
|
+
const file = extractJsonStringField(args, 'file');
|
|
671
657
|
if (file) {
|
|
672
658
|
return { label: file, hasMore: false };
|
|
673
659
|
}
|
|
@@ -702,7 +688,7 @@ let FileContentFunction = class FileContentFunction {
|
|
|
702
688
|
return JSON.stringify({ error: 'Operation cancelled by user' });
|
|
703
689
|
}
|
|
704
690
|
const openEditorValue = this.monacoWorkspace.getTextDocument(targetUri.toString())?.getText();
|
|
705
|
-
const maxSizeKB = this.preferences.get(
|
|
691
|
+
const maxSizeKB = this.preferences.get(FILE_CONTENT_MAX_SIZE_KB_PREF, 256);
|
|
706
692
|
const isEditorOpen = openEditorValue !== undefined;
|
|
707
693
|
const isPaginated = offset !== undefined || limit !== undefined;
|
|
708
694
|
if (isEditorOpen) {
|
|
@@ -742,7 +728,7 @@ let FileContentFunction = class FileContentFunction {
|
|
|
742
728
|
* tracked: a slice says nothing about the rest of the file, so the streaming path is skipped.
|
|
743
729
|
*/
|
|
744
730
|
async trackRead(targetUri, content, ctx) {
|
|
745
|
-
if (
|
|
731
|
+
if (ChatToolContext.is(ctx)) {
|
|
746
732
|
await this.fileReadTracker?.recordRead(ctx.request.session.id, targetUri, content);
|
|
747
733
|
}
|
|
748
734
|
}
|
|
@@ -769,7 +755,7 @@ let FileContentFunction = class FileContentFunction {
|
|
|
769
755
|
return rawContent;
|
|
770
756
|
}
|
|
771
757
|
catch (error) {
|
|
772
|
-
if (error instanceof
|
|
758
|
+
if (error instanceof FileOperationError) {
|
|
773
759
|
if (error.fileOperationResult === 7 /* FileOperationResult.FILE_TOO_LARGE */ ||
|
|
774
760
|
error.fileOperationResult === 9 /* FileOperationResult.FILE_EXCEEDS_MEMORY_LIMIT */) {
|
|
775
761
|
return this.buildFileSizeLimitError(undefined, maxSizeKB);
|
|
@@ -789,7 +775,7 @@ let FileContentFunction = class FileContentFunction {
|
|
|
789
775
|
streamValue = (await this.fileService.readStream(targetUri, { limits: { size: Number.MAX_SAFE_INTEGER } })).value;
|
|
790
776
|
}
|
|
791
777
|
catch (e) {
|
|
792
|
-
if (e instanceof
|
|
778
|
+
if (e instanceof FileOperationError &&
|
|
793
779
|
(e.fileOperationResult === 7 /* FileOperationResult.FILE_TOO_LARGE */ ||
|
|
794
780
|
e.fileOperationResult === 9 /* FileOperationResult.FILE_EXCEEDS_MEMORY_LIMIT */)) {
|
|
795
781
|
return JSON.stringify({
|
|
@@ -867,34 +853,29 @@ let FileContentFunction = class FileContentFunction {
|
|
|
867
853
|
});
|
|
868
854
|
}
|
|
869
855
|
};
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
(0, inversify_1.inject)(file_service_1.FileService),
|
|
873
|
-
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
856
|
+
__decorate([
|
|
857
|
+
inject(FileService)
|
|
874
858
|
], FileContentFunction.prototype, "fileService", void 0);
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
tslib_1.__metadata("design:type", WorkspaceFunctionScope)
|
|
859
|
+
__decorate([
|
|
860
|
+
inject(WorkspaceFunctionScope)
|
|
878
861
|
], FileContentFunction.prototype, "workspaceScope", void 0);
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
tslib_1.__metadata("design:type", monaco_workspace_1.MonacoWorkspace)
|
|
862
|
+
__decorate([
|
|
863
|
+
inject(MonacoWorkspace)
|
|
882
864
|
], FileContentFunction.prototype, "monacoWorkspace", void 0);
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
tslib_1.__metadata("design:type", Object)
|
|
865
|
+
__decorate([
|
|
866
|
+
inject(PreferenceService)
|
|
886
867
|
], FileContentFunction.prototype, "preferences", void 0);
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
tslib_1.__metadata("design:type", Object)
|
|
868
|
+
__decorate([
|
|
869
|
+
inject(FileReadTracker),
|
|
870
|
+
optional()
|
|
891
871
|
], FileContentFunction.prototype, "fileReadTracker", void 0);
|
|
892
|
-
|
|
893
|
-
|
|
872
|
+
FileContentFunction = FileContentFunction_1 = __decorate([
|
|
873
|
+
injectable()
|
|
894
874
|
], FileContentFunction);
|
|
875
|
+
export { FileContentFunction };
|
|
895
876
|
let GetWorkspaceFileList = class GetWorkspaceFileList {
|
|
896
877
|
static { GetWorkspaceFileList_1 = this; }
|
|
897
|
-
static { this.ID =
|
|
878
|
+
static { this.ID = GET_WORKSPACE_FILE_LIST_FUNCTION_ID; }
|
|
898
879
|
getTool() {
|
|
899
880
|
return {
|
|
900
881
|
id: GetWorkspaceFileList_1.ID,
|
|
@@ -982,21 +963,19 @@ let GetWorkspaceFileList = class GetWorkspaceFileList {
|
|
|
982
963
|
return JSON.stringify(result);
|
|
983
964
|
}
|
|
984
965
|
};
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
(0, inversify_1.inject)(file_service_1.FileService),
|
|
988
|
-
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
966
|
+
__decorate([
|
|
967
|
+
inject(FileService)
|
|
989
968
|
], GetWorkspaceFileList.prototype, "fileService", void 0);
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
tslib_1.__metadata("design:type", WorkspaceFunctionScope)
|
|
969
|
+
__decorate([
|
|
970
|
+
inject(WorkspaceFunctionScope)
|
|
993
971
|
], GetWorkspaceFileList.prototype, "workspaceScope", void 0);
|
|
994
|
-
|
|
995
|
-
|
|
972
|
+
GetWorkspaceFileList = GetWorkspaceFileList_1 = __decorate([
|
|
973
|
+
injectable()
|
|
996
974
|
], GetWorkspaceFileList);
|
|
975
|
+
export { GetWorkspaceFileList };
|
|
997
976
|
let FileDiagnosticProvider = class FileDiagnosticProvider {
|
|
998
977
|
static { FileDiagnosticProvider_1 = this; }
|
|
999
|
-
static { this.ID =
|
|
978
|
+
static { this.ID = GET_FILE_DIAGNOSTICS_ID; }
|
|
1000
979
|
getTool() {
|
|
1001
980
|
return {
|
|
1002
981
|
id: FileDiagnosticProvider_1.ID,
|
|
@@ -1069,7 +1048,7 @@ let FileDiagnosticProvider = class FileDiagnosticProvider {
|
|
|
1069
1048
|
const editor = await this.modelService.createModelReference(uri);
|
|
1070
1049
|
editor.object.suppressOpenEditorWhenDirty = true;
|
|
1071
1050
|
toDispose.push(editor);
|
|
1072
|
-
return JSON.stringify(markers.filter(marker => marker.data.severity !==
|
|
1051
|
+
return JSON.stringify(markers.filter(marker => marker.data.severity !== DiagnosticSeverity.Information && marker.data.severity !== DiagnosticSeverity.Hint)
|
|
1073
1052
|
.map(marker => {
|
|
1074
1053
|
const contextRange = this.atLeastNLines(3, marker.data.range, editor.object.lineCount);
|
|
1075
1054
|
const text = editor.object.getText(contextRange);
|
|
@@ -1119,30 +1098,26 @@ let FileDiagnosticProvider = class FileDiagnosticProvider {
|
|
|
1119
1098
|
return { end: { character: Number.MAX_SAFE_INTEGER, line: endLine }, start: { character: 0, line: startLine } };
|
|
1120
1099
|
}
|
|
1121
1100
|
};
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
(0, inversify_1.inject)(WorkspaceFunctionScope),
|
|
1125
|
-
tslib_1.__metadata("design:type", WorkspaceFunctionScope)
|
|
1101
|
+
__decorate([
|
|
1102
|
+
inject(WorkspaceFunctionScope)
|
|
1126
1103
|
], FileDiagnosticProvider.prototype, "workspaceScope", void 0);
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
tslib_1.__metadata("design:type", browser_2.ProblemManager)
|
|
1104
|
+
__decorate([
|
|
1105
|
+
inject(ProblemManager)
|
|
1130
1106
|
], FileDiagnosticProvider.prototype, "problemManager", void 0);
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
tslib_1.__metadata("design:type", monaco_text_model_service_1.MonacoTextModelService)
|
|
1107
|
+
__decorate([
|
|
1108
|
+
inject(MonacoTextModelService)
|
|
1134
1109
|
], FileDiagnosticProvider.prototype, "modelService", void 0);
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
tslib_1.__metadata("design:type", Object)
|
|
1110
|
+
__decorate([
|
|
1111
|
+
inject(ILogger),
|
|
1112
|
+
named('ai-ide:FileDiagnosticProvider')
|
|
1139
1113
|
], FileDiagnosticProvider.prototype, "logger", void 0);
|
|
1140
|
-
|
|
1141
|
-
|
|
1114
|
+
FileDiagnosticProvider = FileDiagnosticProvider_1 = __decorate([
|
|
1115
|
+
injectable()
|
|
1142
1116
|
], FileDiagnosticProvider);
|
|
1117
|
+
export { FileDiagnosticProvider };
|
|
1143
1118
|
let FindFilesByPattern = class FindFilesByPattern {
|
|
1144
1119
|
static { FindFilesByPattern_1 = this; }
|
|
1145
|
-
static { this.ID =
|
|
1120
|
+
static { this.ID = FIND_FILES_BY_PATTERN_FUNCTION_ID; }
|
|
1146
1121
|
getTool() {
|
|
1147
1122
|
return {
|
|
1148
1123
|
id: FindFilesByPattern_1.ID,
|
|
@@ -1200,7 +1175,7 @@ let FindFilesByPattern = class FindFilesByPattern {
|
|
|
1200
1175
|
}
|
|
1201
1176
|
}
|
|
1202
1177
|
catch {
|
|
1203
|
-
const pattern =
|
|
1178
|
+
const pattern = extractJsonStringField(args, 'pattern');
|
|
1204
1179
|
if (pattern) {
|
|
1205
1180
|
return { label: pattern, hasMore: false };
|
|
1206
1181
|
}
|
|
@@ -1215,8 +1190,8 @@ let FindFilesByPattern = class FindFilesByPattern {
|
|
|
1215
1190
|
}
|
|
1216
1191
|
try {
|
|
1217
1192
|
const maxResults = 200;
|
|
1218
|
-
const useGitIgnore = this.preferences.get(
|
|
1219
|
-
const userExcludes = this.preferences.get(
|
|
1193
|
+
const useGitIgnore = this.preferences.get(CONSIDER_GITIGNORE_PREF, true);
|
|
1194
|
+
const userExcludes = this.preferences.get(USER_EXCLUDE_PATTERN_PREF, []);
|
|
1220
1195
|
// Resolve the set of roots to search and how each root's results should be rendered.
|
|
1221
1196
|
const targets = [];
|
|
1222
1197
|
if (searchRoot) {
|
|
@@ -1261,7 +1236,7 @@ let FindFilesByPattern = class FindFilesByPattern {
|
|
|
1261
1236
|
limit: maxResults - found.size + 1 + foundInRoot
|
|
1262
1237
|
}, cancellationToken);
|
|
1263
1238
|
for (const match of matches) {
|
|
1264
|
-
const matchUri = new
|
|
1239
|
+
const matchUri = new URI(match);
|
|
1265
1240
|
const display = this.toDisplayPath(matchUri, target);
|
|
1266
1241
|
if (display !== undefined) {
|
|
1267
1242
|
found.set(matchUri.toString(), { uri: matchUri, display });
|
|
@@ -1311,24 +1286,20 @@ let FindFilesByPattern = class FindFilesByPattern {
|
|
|
1311
1286
|
return this.workspaceScope.toWorkspaceRelativePath(match) ?? match.path.fsPath();
|
|
1312
1287
|
}
|
|
1313
1288
|
};
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
(0, inversify_1.inject)(WorkspaceFunctionScope),
|
|
1317
|
-
tslib_1.__metadata("design:type", WorkspaceFunctionScope)
|
|
1289
|
+
__decorate([
|
|
1290
|
+
inject(WorkspaceFunctionScope)
|
|
1318
1291
|
], FindFilesByPattern.prototype, "workspaceScope", void 0);
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
tslib_1.__metadata("design:type", Object)
|
|
1292
|
+
__decorate([
|
|
1293
|
+
inject(PreferenceService)
|
|
1322
1294
|
], FindFilesByPattern.prototype, "preferences", void 0);
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
tslib_1.__metadata("design:type", Object)
|
|
1295
|
+
__decorate([
|
|
1296
|
+
inject(FileSearchService)
|
|
1326
1297
|
], FindFilesByPattern.prototype, "fileSearchService", void 0);
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
tslib_1.__metadata("design:type", browser_1.WorkspaceService)
|
|
1298
|
+
__decorate([
|
|
1299
|
+
inject(WorkspaceService)
|
|
1330
1300
|
], FindFilesByPattern.prototype, "workspaceService", void 0);
|
|
1331
|
-
|
|
1332
|
-
|
|
1301
|
+
FindFilesByPattern = FindFilesByPattern_1 = __decorate([
|
|
1302
|
+
injectable()
|
|
1333
1303
|
], FindFilesByPattern);
|
|
1304
|
+
export { FindFilesByPattern };
|
|
1334
1305
|
//# sourceMappingURL=workspace-functions.js.map
|