Skip to content

Codex-generated pull request#63

Closed
JeffAbrahamson wants to merge 1 commit intomasterfrom
codex/add-major-mode-for-typescript-files
Closed

Codex-generated pull request#63
JeffAbrahamson wants to merge 1 commit intomasterfrom
codex/add-major-mode-for-typescript-files

Conversation

@JeffAbrahamson
Copy link
Owner

Codex generated this pull request, but encountered an unexpected error after generation. This is a placeholder PR message.


Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d240b39972

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +12 to +14
'("\\.ts\\'" . (lambda ()
(if (fboundp 'typescript-ts-mode)
(typescript-ts-mode)

Choose a reason for hiding this comment

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

P2 Badge Guard typescript-ts-mode on tree-sitter grammar availability

In Emacs 29+, typescript-ts-mode is defined even if the tree-sitter TypeScript grammar is not installed. This entry only checks fboundp, so opening a .ts file on a machine without the grammar will raise an error and the buffer won’t open, instead of falling back to typescript-mode. Consider checking treesit-ready-p (or handling the error) before calling typescript-ts-mode so users without the grammar can still open .ts files.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant