Skip to content

Commit

Permalink
rename parameter to signature, #39441
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jun 15, 2021
1 parent 298b6df commit d02cb73
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/vs/editor/common/modes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export interface CompletionItemLabel {
/**
* The parameters without the return type. Render after `name`.
*/
parameters?: string;
signature?: string;

/**
* The fully qualified name, like package name or file path. Rendered after `signature`.
Expand Down
4 changes: 2 additions & 2 deletions src/vs/editor/contrib/suggest/suggestWidgetRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ export class ItemRenderer implements IListRenderer<CompletionItem, ISuggestionTe
data.root.classList.add('string-label');
data.root.title = '';
} else {
data.parametersLabel.textContent = stripNewLines(completion.label.parameters || '');
data.parametersLabel.textContent = stripNewLines(completion.label.signature || '');
data.qualifierLabel.textContent = stripNewLines(completion.label.qualifier || '');
data.detailsLabel.textContent = stripNewLines(completion.label.type || '');
data.root.classList.remove('string-label');
data.root.title = `${element.textLabel}${completion.label.parameters ?? ''} ${completion.label.qualifier ?? ''} ${completion.label.type ?? ''}`;
data.root.title = `${element.textLabel}${completion.label.signature ?? ''} ${completion.label.qualifier ?? ''} ${completion.label.type ?? ''}`;
}

if (this._editor.getOption(EditorOption.suggest).showInlineDetails) {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/monaco.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5669,7 +5669,7 @@ declare namespace monaco.languages {
/**
* The parameters without the return type. Render after `name`.
*/
parameters?: string;
signature?: string;
/**
* The fully qualified name, like package name or file path. Rendered after `signature`.
*/
Expand Down
3 changes: 1 addition & 2 deletions src/vs/vscode.proposed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,7 @@ declare module 'vscode' {
/**
* The parameters without the return type. Render after `name`.
*/
//todo@API rename to signature
parameters?: string;
signature?: string;

/**
* The fully qualified name, like package name or file path. Rendered after `signature`.
Expand Down

0 comments on commit d02cb73

Please sign in to comment.