Skip to content

Conversation

@jakebailey
Copy link
Member

Following the lead of the other scripts we have.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modernizes the LSP generator script by converting it from JavaScript (.mjs) to TypeScript (.mts) format, utilizing Node.js's experimental strip-types feature for direct TypeScript execution.

  • Converts the LSP protocol generator from JSDoc-style comments to proper TypeScript type annotations
  • Updates the build pipeline to use --experimental-strip-types for direct .mts execution
  • Configures TypeScript compiler options to support the strip-types workflow

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
internal/lsp/lsproto/lsp_generated.go Updates generated file header comment to reflect new .mts source
internal/lsp/lsproto/_generate/tsconfig.json Adds TypeScript compiler options for strip-types compatibility
internal/lsp/lsproto/_generate/generate.mts Converts from JSDoc to TypeScript syntax with proper type annotations
.github/workflows/ci.yml Updates CI workflow to use strip-types for executing .mts files

@jakebailey jakebailey enabled auto-merge July 22, 2025 22:17
@jakebailey jakebailey added this pull request to the merge queue Jul 22, 2025
Merged via the queue into main with commit 79d0450 Jul 22, 2025
22 checks passed
@jakebailey jakebailey deleted the jabaile/lsp-mts branch July 22, 2025 22:52
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