| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Co-authored-by: andrewbranch <3277153+andrewbranch@users.noreply.github.com>
There was a problem hiding this comment.
Remove those meaningless tests and instead see if you can devise a way that will ensure we don't miss any new compiler-option-referenced enums in the future.
Sorry, something went wrong.
Co-authored-by: andrewbranch <3277153+andrewbranch@users.noreply.github.com>
|
Copilot do not generate deprecated enums. Delete the meaningless tests. Ensure codegen guarantees completeness or a test asserts completeness of generated enums. |
Sorry, something went wrong.
Co-authored-by: andrewbranch <3277153+andrewbranch@users.noreply.github.com>
Addressed in 561b2d6a. Removed the added API/value tests, restored deprecated-field filtering with explicit API opt-ins only for the two required options, and changed codegen so every referenced enum is automatically exported from the generated protocol module. |
Sorry, something went wrong.
Co-authored-by: andrewbranch <3277153+andrewbranch@users.noreply.github.com>
There was a problem hiding this comment.
Exposes compiler-option enums through public API entry points, but compatibility options remain omitted.
Changes:
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file| File | Description |
|---|---|
| tools/gen-proto/main.go | Generates enum re-exports. |
| tools/gen-proto/main_test.go | Removes obsolete import assertions. |
| packages/typescript/src/api/proto.generated.ts | Adds generated enum exports. |
| packages/typescript/src/api/sync/api.ts | Exports two enums synchronously. |
| packages/typescript/src/api/async/api.ts | Exports two enums asynchronously. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
| names := r.imports[path] | ||
| sort.Strings(names) | ||
| fmt.Fprintf(&out, "import type { %s } from %q;\n", strings.Join(names, ", "), path) | ||
| fmt.Fprintf(&out, "import { %s } from %q;\n", strings.Join(names, ", "), path) |
| export { formatDiagnostics, formatDiagnosticsWithColorAndContext } from "../diagnosticFormatter.ts"; | ||
| export { documentURIToFileName, fileNameToDocumentURI } from "../path.ts"; | ||
| export { CheckFlags, CompletionItemKind, DiagnosticCategory, ElementFlags, EmitOnly, ModifierFlags, ModuleKind, NodeBuilderFlags, ObjectFlags, SignatureFlags, SignatureKind, SymbolFlags, TypeFlags, TypeFormatFlags, TypePredicateKind }; | ||
| export { CheckFlags, CompletionItemKind, DiagnosticCategory, ElementFlags, EmitOnly, JsxEmit, ModifierFlags, ModuleKind, ModuleResolutionKind, NodeBuilderFlags, ObjectFlags, SignatureFlags, SignatureKind, SymbolFlags, TypeFlags, TypeFormatFlags, TypePredicateKind }; |
| Back | FazBrowse Home | New Git URL |
CompilerOptions referenced enums unavailable through public exports and omitted accepted compatibility options.
Enum exports
Compiler options
Coverage