提交 4439de9a 编写于 作者: J Johannes Rieken

tweak setting name `editor.suggest.showInlineDetails`, #109690

上级 7efc22cc
......@@ -3041,7 +3041,7 @@ export interface ISuggestOptions {
/**
* Show details inline with the label. Defaults to true.
*/
showStatusDetailsInline?: boolean;
showInlineDetails?: boolean;
/**
* Show method-suggestions.
*/
......@@ -3165,7 +3165,7 @@ class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSugge
shareSuggestSelections: false,
showIcons: true,
showStatusBar: false,
showStatusDetailsInline: true,
showInlineDetails: true,
showMethods: true,
showFunctions: true,
showConstructors: true,
......@@ -3238,10 +3238,10 @@ class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSugge
description: nls.localize('suggest.showStatusBar', "Controls the visibility of the status bar at the bottom of the suggest widget.")
},
'editor.suggest.showStatusDetailsInline': {
'editor.suggest.showInlineDetails': {
type: 'boolean',
default: defaults.showStatusDetailsInline,
description: nls.localize('suggest.showStatusDetailsInline', "Controls whether sugget details show inline with the label or only in the details widget")
default: defaults.showInlineDetails,
description: nls.localize('suggest.showInlineDetails', "Controls whether sugget details show inline with the label or only in the details widget")
},
'editor.suggest.maxVisibleSuggestions': {
type: 'number',
......@@ -3408,7 +3408,7 @@ class EditorSuggest extends BaseEditorOption<EditorOption.suggest, InternalSugge
shareSuggestSelections: EditorBooleanOption.boolean(input.shareSuggestSelections, this.defaultValue.shareSuggestSelections),
showIcons: EditorBooleanOption.boolean(input.showIcons, this.defaultValue.showIcons),
showStatusBar: EditorBooleanOption.boolean(input.showStatusBar, this.defaultValue.showStatusBar),
showStatusDetailsInline: EditorBooleanOption.boolean(input.showStatusDetailsInline, this.defaultValue.showStatusDetailsInline),
showInlineDetails: EditorBooleanOption.boolean(input.showInlineDetails, this.defaultValue.showInlineDetails),
showMethods: EditorBooleanOption.boolean(input.showMethods, this.defaultValue.showMethods),
showFunctions: EditorBooleanOption.boolean(input.showFunctions, this.defaultValue.showFunctions),
showConstructors: EditorBooleanOption.boolean(input.showConstructors, this.defaultValue.showConstructors),
......
......@@ -214,7 +214,7 @@ export class ItemRenderer implements IListRenderer<CompletionItem, ISuggestionTe
data.root.title = `${textLabel}${completion.label.parameters ?? ''} ${completion.label.qualifier ?? ''} ${completion.label.type ?? ''}`;
}
if (this._editor.getOption(EditorOption.suggest).showStatusDetailsInline) {
if (this._editor.getOption(EditorOption.suggest).showInlineDetails) {
show(data.detailsLabel);
} else {
hide(data.detailsLabel);
......
......@@ -3718,7 +3718,7 @@ declare namespace monaco.editor {
/**
* Show details inline with the label. Defaults to true.
*/
showStatusDetailsInline?: boolean;
showInlineDetails?: boolean;
/**
* Show method-suggestions.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册