Skip to content

[api] Move language service methods into dedicated namespace - #4893

Merged
Andrew Branch (andrewbranch) merged 2 commits into
microsoft:mainfrom
andrewbranch:api-language-service
Aug 13, 2026
Merged

[api] Move language service methods into dedicated namespace#4893
Andrew Branch (andrewbranch) merged 2 commits into
microsoft:mainfrom
andrewbranch:api-language-service

Conversation

@andrewbranch

Copy link
Copy Markdown
Member

I always intended these methods to be grouped (I think some of them were at one point but a merge conflict resolution lost it?), but this will be more important as some features from #4830 expose Programs without LanguageServices.

Copilot AI balanced review requested due to automatic review settings August 13, 2026 16:09
@@ -1,4 +1,3 @@
/// <reference path="../node/node.ts" preserve="true" />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Drive-by: at one point node.ts performed module augmentation, but that’s been gone for a while, so this is no longer needed.

@andrewbranch

Copy link
Copy Markdown
Member Author

navya9singh Piotr Tomiak (@piotrtomiak), methods you rely on are moving. I left deprecated aliases in for use in nightlies for now, but will be removed before the 7.1 release.

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

Groups language-service APIs under Project.languageService, preparing APIs for Programs without LanguageServices while retaining deprecated compatibility methods.

Changes:

  • Adds sync/async LanguageService namespaces and migrates tests.
  • Keeps deprecated forwarding methods.
  • Extracts JSDoc rendering from the language service.

Reviewed changes

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

Show a summary per file
File Description
internal/ls/jsdoc.go Removes language-service JSDoc helpers.
internal/jsdoc/jsdoc.go Adds standalone JSDoc extraction and rendering.
internal/api/session.go Uses standalone JSDoc helpers.
_packages/native-preview/src/api/async/api.ts Adds the async language-service namespace.
_packages/native-preview/src/api/sync/api.ts Adds the generated sync namespace.
_packages/native-preview/src/api/async/types.ts Updates async API documentation links.
_packages/native-preview/src/api/sync/types.ts Updates sync API documentation links.
_packages/native-preview/test/async/api.test.ts Migrates async language-service tests.
_packages/native-preview/test/sync/api.test.ts Migrates sync language-service tests.

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

Comment thread internal/jsdoc/jsdoc.go Outdated
Comment thread internal/jsdoc/jsdoc.go Outdated

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

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

@andrewbranch
Andrew Branch (andrewbranch) added this pull request to the merge queue Aug 13, 2026
Merged via the queue into microsoft:main with commit c2d16ec Aug 13, 2026
21 checks passed
@andrewbranch
Andrew Branch (andrewbranch) deleted the api-language-service branch August 13, 2026 19:28
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