Skip to content

feat: imrpove perf by Codex - #16

Merged
guyutongxue merged 6 commits into
mainfrom
perf-improvement
Sep 25, 2026
Merged

guyutongxue merged 6 commits into
mainfrom
perf-improvement

Conversation

@guyutongxue

Copy link
Copy Markdown
Member

No description provided.

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.

Copilot review overview

🟡 Changes recommended

Unresolved API compatibility, provider export, and debug configuration issues remain.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 Medium severity · 1 Low severity

Open (4)
What changed in this PR

Improves Volar/gtsc type-checking performance by adding type-checking-only generation and centralizing runtime typing helpers.

Changes:

  • Adds typeCheckingOnly support across the transpiler and language-plugin pipeline.
  • Optimizes generated typing and source-map replacements.
  • Updates runtime exports, documentation, and VS Code launch configuration.
File Summary
packages/​tsc/​src/​index.ts Enables type-checking-only generation.
packages/​transpiler/​src/​transform/​volar/​walker.ts Adds typing-only state and runtime utility imports; provider compatibility issue (moderate, 3 votes) and comment nit (2 votes).
packages/​transpiler/​src/​transform/​volar/​replacements.ts Refactors generated type checks and offset mappings.
packages/​transpiler/​src/​transform/​volar/​index.ts Adds the Volar option; public API compatibility issue (moderate, 3 votes).
packages/​transpiler/​src/​index.ts Updates the public Volar API; existing callers may no longer type-check (moderate, 1 vote).
packages/​runtime/​src/​typing.ts Adds shared typing utilities.
packages/​runtime/​src/​index.ts Exports typing utilities.
packages/​language-plugin/​src/​virtual_code.ts Uses the updated Volar configuration type.
packages/​language-plugin/​src/​language_plugin.ts Propagates type-checking-only configuration.
docs/​content/​docs/​internal/​language-tooling.md Documents type-checking-only generation.
.vscode/​launch.json Changes the debug target to an external sibling checkout (moderate, 4 votes).

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

Comment thread .vscode/launch.json
"args": [
"--extensionDevelopmentPath=${workspaceRoot}/packages/vscode",
"--folder-uri=${workspaceRoot}/examples/local"
"--folder-uri=${workspaceRoot}/../genius-invokation"
Comment on lines +20 to +22
export interface VolarTranspileOption extends TranspileOption {
/** Omit editor-only expressions, retaining all type validation. */
typeCheckingOnly: boolean;
Comment on lines +385 to +389
{
type: "ImportSpecifier",
imported: { type: "Identifier", name: "TypingUtils" },
local: state.utilNsId,
},
whiteSpaceEnd: number,
) => {
if (state.typeCheckingOnly) {
// type-checking do not need insert hint statement
@guyutongxue
guyutongxue merged commit b26950b into main Sep 25, 2026
1 check passed
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.

2 participants