Skip to content

Recognise OCaml in settings labels - #325457

Merged
Raymond Zhao (rzhao271) merged 1 commit into
microsoft:mainfrom
smorimoto:fix/recognise-ocaml-settings
Jul 13, 2026
Merged

Raymond Zhao (rzhao271) merged 1 commit into
microsoft:mainfrom
smorimoto:fix/recognise-ocaml-settings

Conversation

@smorimoto

Copy link
Copy Markdown
Contributor

Summary

  • recognise ocaml as the OCaml term when formatting settings labels
  • add a regression test for nested OCaml settings

Configuration keys such as ocaml.server.extendedHover are currently rendered as Ocaml › Server: Extended Hover. This change uses the official OCaml spelling while leaving configuration keys unchanged.

Ulugbek Abdullaev (@ulugbekna), could you please have a look? This affects the presentation of settings contributed by the OCaml extension.

Testing

  • npm run typecheck-client
  • npm run gulp compile-client
  • ./scripts/test.sh --grep 'settingKeyToDisplayFormat - known acronym/term'
  • npm run eslint -- src/vs/workbench/contrib/preferences/common/preferences.ts src/vs/workbench/contrib/preferences/test/browser/settingsTreeModels.test.ts
Copilot AI review requested due to automatic review settings July 12, 2026 02:50
@smorimoto

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@smorimoto
Sora Morimoto (smorimoto) marked this pull request as ready for review July 12, 2026 02:52

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.

Pull request overview

Adds official OCaml capitalization to settings labels without changing configuration keys.

Changes:

  • Maps ocaml to OCaml during label formatting.
  • Adds regression coverage for nested OCaml settings.

Reviewed changes

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

File Description
src/vs/workbench/contrib/preferences/common/preferences.ts Adds the OCaml term mapping.
src/vs/workbench/contrib/preferences/test/browser/settingsTreeModels.test.ts Verifies nested OCaml label formatting.
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Raymond Zhao (@rzhao271)

Matched files:

  • src/vs/workbench/contrib/preferences/common/preferences.ts
  • src/vs/workbench/contrib/preferences/test/browser/settingsTreeModels.test.ts

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.

Lgtm, thanks Sora Morimoto (@smorimoto) ! ;)

Raymond Zhao (@rzhao271) hope it's ok to approve

@rzhao271
Raymond Zhao (rzhao271) merged commit 3123f80 into microsoft:main Jul 13, 2026
29 checks passed
@rzhao271 Raymond Zhao (rzhao271) added this to the 1.130.0 milestone Jul 13, 2026
@smorimoto
Sora Morimoto (smorimoto) deleted the fix/recognise-ocaml-settings branch July 13, 2026 17:08
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Aug 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

6 participants