Skip to content

Editor empty hint text problem #1949

@feynhang

Description

@feynhang

raw editor empty hint text:
Image

when chinese language pack was installed:
Image

An extra character "]" is inserted into the empty hint text in Chinese, which seems to affect the subsequent text which link to settings.

Activity

crsuzukimsft

crsuzukimsft commented on Jun 24, 2025

@crsuzukimsft

@TylerLeonhardt this should be resolved.

TylerLeonhardt

TylerLeonhardt commented on Jun 25, 2025

@TylerLeonhardt
Member

@feynhang let us know if this is not the resolved for you!

feynhang

feynhang commented on Jun 25, 2025

@feynhang
Author

It still has not been resolved. Now it has become:

Image

I see that the value of "emptyTextEditorHintWithInlineChat" in the ‘main.i18n.json’ file is correct, but I'm not sure if there is a problem with the parsing of the text.

feynhang

feynhang commented on Jun 25, 2025

@feynhang
Author

Also, I think the text "[[不再显示]]" should be linked to setting "workbench.editor.empty.hint" (value to "hidden").

crsuzukimsft

crsuzukimsft commented on Jun 25, 2025

@crsuzukimsft

@TylerLeonhardt @feynhang could you help me understand what is the change needed by pointing out the current string what what needs to be changed?
example (I am making these up):

current: "workbench.editor.empty.hint": "控制空编辑器文本提示是否应在编辑器中可见。",
suggested: "workbench.editor.empty.hint": "控制空编辑器文本提示是否应在编辑器中可见SOMETHING NEW。",

current: "emptyTextEditorHintWithInlineChat": "[打开聊天][选择语言][使用模板填充]以开始使用。\r\n开始输入以关闭或[[不再显示]]此信息。",
suggested: current: "emptyTextEditorHintWithInlineChat": "[打开聊天][选择语言][使用模板填充] 以开始使用。\r\n开始输入以关闭或[[不再显示]]此信息。",

feynhang

feynhang commented on Jun 26, 2025

@feynhang
Author

@TylerLeonhardt @feynhang could you help me understand what is the change needed by pointing out the current string what what needs to be changed? example (I am making these up):

current: "workbench.editor.empty.hint": "控制空编辑器文本提示是否应在编辑器中可见。", suggested: "workbench.editor.empty.hint": "控制空编辑器文本提示是否应在编辑器中可见SOMETHING NEW。",

current: "emptyTextEditorHintWithInlineChat": "[打开聊天][选择语言][使用模板填充]以开始使用。\r\n开始输入以关闭或[[不再显示]]此信息。", suggested: current: "emptyTextEditorHintWithInlineChat": "[打开聊天][选择语言][使用模板填充] 以开始使用。\r\n开始输入以关闭或[[不再显示]]此信息。",

About text "[[不再显示]]", I mean:
In the empty file hint of the vscode in English, I saw texts with links:

  1. Open chat (which corresponds to "打开聊天" in Chinese)
  2. select a language(which corresponds to "选择语言" in Chinese)
  3. fill with template(which corresponds to "使用模板填充" in Chinese)
  4. don't show(which corresponds to "不再显示" in Chinese)

but I only saw three indexes("{0}", "{1}", "{2}", I thought they should be used to refer to link options) in the value of "emptyTextEditorHintWithInlineChat"(in main.i18n.json file),the text "[[不再显示]]" should also has a index "{3}" to link to "workbench.editor.empty.hint".

TylerLeonhardt

TylerLeonhardt commented on Jul 9, 2025

@TylerLeonhardt
Member

The English string for this is changing this month so let's see what the translation ends up looking like.

feynhang

feynhang commented on Jul 12, 2025

@feynhang
Author
Image

It has been resolved. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @TylerLeonhardt@feynhang@crsuzukimsft

      Issue actions

        Editor empty hint text problem · Issue #1949 · microsoft/vscode-loc