Skip to content

editor.wordSegmenterLocales configuration don't take effect in simpleWidget editors (like chat or SCM input Editor) #223920

@Ninglo

Description

@Ninglo

Does this issue occur when all extensions are disabled?: Yes

About VSCode:

Version: 1.91.1 (Universal)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:07:54.982Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 22.6.0

Background

Issue #50045 has been resolved by PR #203605. However, this PR ignored simpleWidget editors (like chat or SCM input Editor).

Steps to Reproduce:

  1. Config "editor.wordSegmenterLocales": ["zh-CN"], in settings.json
  2. Paste 测试测试测试测试测试测试 (or any other test string) into chat or SCM input editor
  3. Trigger cursorWordLeft or cursorWordRight (shortcut: Option + ArrowLeft or ArrowRight)
  4. editor.wordSegmenterLocales configuration don't take effect in these editors

Reason

The getSimpleEditorOptions function don't return wordSegmenterLocales property.

image

ScreenShot

bug.mov

Metadata

Metadata

Assignees

Labels

chatfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersscmGeneral SCM compound issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions