Skip to content

Conversation

sjf
Copy link
Contributor

@sjf sjf commented Aug 4, 2025

  • Return wasSaved: true only when the document was actually saved
  • Add integration tests for saveOpenDocumentIfDirty

Important

Update saveOpenDocumentIfDirty to return save status and add integration tests for various scenarios.

  • Behavior:
    • saveOpenDocumentIfDirty now returns SaveOpenDocumentIfDirtyResponse with wasSaved indicating if a document was saved.
    • Handles cases where the document is not found or does not need saving, returning an empty response.
  • Tests:
    • Added saveOpenDocumentIfDirty.test.ts for integration tests.
    • Tests include saving dirty documents, handling clean documents, non-existent files, multiple open documents, and empty/undefined file paths.
  • Proto Changes:
    • Updated saveOpenDocumentIfDirty RPC in workspace.proto to return SaveOpenDocumentIfDirtyResponse.

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

- Return wasSaved: true only when a dirty document is actually saved
- Add integration tests for the RPC
Copy link
Contributor

github-actions bot commented Aug 4, 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-04T14:31:11.686415

@sjf sjf merged commit 88bea8e into main Aug 4, 2025
13 checks passed
@sjf sjf deleted the sjf-a4-savedoc branch August 14, 2025 12:54
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