Skip to content

Recognise OCaml in settings labels#325457

Open
smorimoto wants to merge 1 commit into
microsoft:mainfrom
smorimoto:fix/recognise-ocaml-settings
Open

Recognise OCaml in settings labels#325457
smorimoto wants to merge 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.

@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 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:

@rzhao271

Matched files:

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

@ulugbekna ulugbekna 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.

Lgtm, thanks @smorimoto ! ;)

@rzhao271 hope it's ok to approve

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.

4 participants