Skip to content

Add batched version for the several API - #63904

Open
Titian Cernicova-Dragomir (dragomirtitian) wants to merge 1 commit into
microsoft:mainfrom
bloomberg:add-more-batched-apis
Open

Add batched version for the several API#63904
Titian Cernicova-Dragomir (dragomirtitian) wants to merge 1 commit into
microsoft:mainfrom
bloomberg:add-more-batched-apis

Conversation

@dragomirtitian

Copy link
Copy Markdown
Contributor

Add batched version for the following API methods :

  • getDeclaredTypeOfSymbol
  • getAliasedSymbol
  • getImmediateAliasedSymbol
  • getExportsOfModule
  • getMemberInModuleExports

Fixes #63903

- getDeclaredTypeOfSymbol
- getAliasedSymbol
- getImmediateAliasedSymbol
- getExportsOfModule
- getMemberInModuleExports
Copilot AI balanced review requested due to automatic review settings August 20, 2026 10:23
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Aug 20, 2026
@typescript-automation typescript-automation Bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Aug 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds batched checker APIs requested by #63903 to reduce IPC overhead.

Changes:

  • Adds batched protocol methods and Go handlers for five checker operations.
  • Adds synchronous and asynchronous TypeScript overloads.
  • Adds API tests for all new batched methods.

Reviewed changes

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

Show a summary per file
File Description
tsc/internal/api/session.go Implements batched request handlers.
tsc/internal/api/proto.go Defines methods and request parameters.
packages/typescript/src/api/proto.generated.ts Adds generated protocol typings.
packages/typescript/src/api/sync/api.ts Adds synchronous overloads.
packages/typescript/src/api/async/api.ts Adds asynchronous overloads.
packages/typescript/test/sync/api.test.ts Tests synchronous batching.
packages/typescript/test/async/api.test.ts Tests asynchronous batching.
Suppressed comments (1)

packages/typescript/src/api/proto.generated.ts:115

  • This result type excludes null, but handleGetMembersInModuleExports deliberately leaves nil entries for missing members, producing payloads such as [null]; the new public overload also promises undefined for those entries. Generate (SymbolResponse | null)[] so the protocol accurately models the server response.
    getMembersInModuleExports: APIMethod<GetMembersInModuleExportsParams, SymbolResponse[]>;

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

getAliasedSymbol: APIMethod<CheckerSymbolParams, SymbolResponse>;
getAliasedSymbols: APIMethod<CheckerSymbolsParams, SymbolResponse[]>;
getImmediateAliasedSymbol: APIMethod<CheckerSymbolParams, SymbolResponse | null>;
getImmediateAliasedSymbols: APIMethod<CheckerSymbolsParams, SymbolResponse[] | null>;
Comment on lines +3434 to +3436
if len(exports) == 0 {
continue
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

[7.1 API] Add more batched methods to the API

2 participants