Skip to content

Conversation

@hediet
Copy link
Member

@hediet hediet commented Oct 23, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 23, 2025 13:27
@hediet hediet enabled auto-merge (squash) October 23, 2025 13:27
@hediet hediet self-assigned this Oct 23, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the observable system's type safety and documentation by introducing a conditional type helper and clarifying the IReader interface's purpose.

Key changes:

  • Introduces IObservableWithOptionalChange conditional type to differentiate observables with and without change tracking
  • Updates derived function signatures to use the new conditional type
  • Adds JSDoc documentation for the IReader interface

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/base/common/observableInternal/base.ts Defines new IObservableWithOptionalChange conditional type and adds documentation for IReader
src/vs/base/common/observableInternal/observables/derived.ts Updates derived function signatures to return IObservableWithOptionalChange instead of IObservableWithChange

@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 23, 2025
@Tyriar
Copy link
Member

Tyriar commented Oct 23, 2025

Red CI

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.

3 participants