`shortTitle` 在 `contributes.commands` 中做什么?
What does `shortTitle` do in `contributes.commands`?
在开发VSCode扩展时,我在contributes.commands
下找到了这个shortTitle
属性,我尝试设置它,但找不到它显示的位置,是吗有人知道吗?
这是烘焙中的一项新功能,因此您可以在 GitHub 上跟踪其进度。
引用this comment、
的目的
This doesn't mean that there is no need for a short name and long name
but it must be on the command, not the menu. With that menu implements
decide what property to use, e.g already today the command palette
menu uses the title and category property whereas other menus only use
the title property.
In fact, internally we added support for shortTitle which complements
title
shortTitle
的描述已在 this commit 中更新:
(Optional) Short title by which the command is represented in the UI. Menus pick either title
or shortTitle
depending on the context in which they show commands.
在开发VSCode扩展时,我在contributes.commands
下找到了这个shortTitle
属性,我尝试设置它,但找不到它显示的位置,是吗有人知道吗?
这是烘焙中的一项新功能,因此您可以在 GitHub 上跟踪其进度。
引用this comment、
的目的This doesn't mean that there is no need for a short name and long name but it must be on the command, not the menu. With that menu implements decide what property to use, e.g already today the command palette menu uses the title and category property whereas other menus only use the title property.
In fact, internally we added support for shortTitle which complements title
shortTitle
的描述已在 this commit 中更新:
(Optional) Short title by which the command is represented in the UI. Menus pick either
title
orshortTitle
depending on the context in which they show commands.