Skip to content

Conversation

sjf
Copy link
Contributor

@sjf sjf commented Aug 3, 2025

Switch over the remaining uses of vscode.window.show*Message APIs to use the HostBridge.

Turn on the linter check to prevent these APIs being reintroduced later.
Turn on linter check for vscode.window.showInputBox.

Exclude test files from the linter check.


Important

Switch remaining vscode.window.show*Message calls to HostBridge and enforce via linter, excluding test files.

  • Behavior:
    • Replace vscode.window.show*Message with HostProvider.window.showMessage in detect-omission.ts, TelemetryService.ts, and github-url-utils.ts.
    • Add linter rule to disallow vscode.window.show*Message and vscode.window.showInputBox in no-direct-vscode-api.js.
    • Exclude test files from linter checks in no-direct-vscode-api.js.
  • Linter:
    • Update no-direct-vscode-api.test.ts to reflect new linter rules, allowing vscode.postMessage in test files.
    • Enable linter checks for vscode.window.showInputBox in no-direct-vscode-api.js.
  • Misc:
    • Remove commented-out linter rules in no-direct-vscode-api.js.

This description was created by Ellipsis for 3e2dd0c. You can customize this summary. It will automatically update as commits are pushed.

Copy link

changeset-bot bot commented Aug 3, 2025

⚠️ No Changeset found

Latest commit: 4f0a2d5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sjf sjf changed the title Move remaining uses of vscode.window.show*Message to the HostBridge Switch remaining uses of vscode.window.show*Message to the HostBridge Aug 3, 2025
@sjf sjf force-pushed the sjf-a3-messages branch from 2a97385 to f5d4628 Compare August 3, 2025 22:56
sjf added 2 commits August 4, 2025 00:43
Switch over the remaining uses.

Turn on the linter check to prevent these APIs being reintroduced later.

Exclude test files from the linter check.
@sjf sjf force-pushed the sjf-a3-messages branch from 3e2dd0c to 4f0a2d5 Compare August 3, 2025 23:43
Copy link
Contributor

github-actions bot commented Aug 3, 2025

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

✅ Coverage increased or remained the same

Overall Assessment

Test coverage has been maintained or improved

Last updated: 2025-08-03T23:52:36.067798

@sjf sjf merged commit 6d5c3e6 into main Aug 4, 2025
13 checks passed
@sjf sjf deleted the sjf-a3-messages branch August 14, 2025 12:53
dtrugman pushed a commit to dtrugman/cline that referenced this pull request Aug 24, 2025
…ine#5324) (cline#5849)

* feat: add Issue Fixer Orchestrator mode

* fix: allow export task history while API is active (cline#5324)

- Add exportAlwaysEnabled prop to TaskActions component
- Export button remains enabled when exportAlwaysEnabled is true
- Other action buttons still respect buttonsDisabled state
- Add tests to verify the new behavior

This fixes the regression where users couldn't export task history
during API operations, which is a common debugging workflow.

* fix: simplify export button to always be enabled

The export functionality is not impacted by the model streaming state,
so the button should always be enabled. Removed the unnecessary
exportAlwaysEnabled prop and simplified the implementation.

- Remove exportAlwaysEnabled prop from TaskActions
- Remove disabled attribute from export button entirely
- Update TaskHeader to remove exportAlwaysEnabled prop usage
- Update tests to reflect that export is always enabled

* fix: enable export, share, and copy buttons during API operations

- Export, share, and copy buttons now remain enabled when API is active
- Delete button still respects buttonsDisabled state for safety
- Removed unnecessary exportAlwaysEnabled prop
- Updated tests to reflect new behavior

---------

Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants