Skip to content

Add project-scoped compiler feature flags#10826

Open
timotheeguerin wants to merge 5 commits into
microsoft:mainfrom
timotheeguerin:features-enable
Open

Add project-scoped compiler feature flags#10826
timotheeguerin wants to merge 5 commits into
microsoft:mainfrom
timotheeguerin:features-enable

Conversation

@timotheeguerin
Copy link
Copy Markdown
Member

Summary

  • add project-only features support in tspconfig.yaml with validation for known compiler feature names
  • gate internal modifier and function declaration experimental warnings behind compiler feature flags for project code
  • add tsp info features to list available compiler features and enabled state

Validation

  • pnpm --filter @typespec/compiler test
  • pnpm --filter @typespec/compiler build
  • pnpm --filter @typespec/compiler lint
  • touched-file prettier --check
  • pnpm chronus verify

@microsoft-github-policy-service microsoft-github-policy-service Bot added the compiler:core Issues for @typespec/compiler label May 28, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 28, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/compiler@10826

commit: 5047193

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 28, 2026

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - feature ✏️

Add project-scoped compiler feature flags to tspconfig.yaml. Compiler feature definitions,> are tracked internally with descriptions and can be listed with tsp info features.,> ,> yaml title=tspconfig.yaml,> kind: project,> features:,> - internal-modifier,> - function-declarations,>

@azure-sdk-automation
Copy link
Copy Markdown

azure-sdk-automation Bot commented May 28, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@timotheeguerin timotheeguerin marked this pull request as ready for review May 28, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:core Issues for @typespec/compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant