Skip to content

Commit be28578

Browse files
committed
details -> type
1 parent c1a0def commit be28578

5 files changed

Lines changed: 10 additions & 14 deletions

File tree

src/vs/editor/common/modes.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,11 @@ export interface CompletionItemLabel {
380380
// signature?: string; // parameters
381381
// The fully qualified name, like package name, file path etc
382382
// qualifier?: string;
383-
// The return-type of a function or type of a property, variable etc
384-
// type?: string;
385383

386384
/**
387-
* Details of the completion item that is rendered less
388-
* prominent to the right.
385+
* The return-type of a function or type of a property, variable
389386
*/
390-
details?: string;
387+
type?: string;
391388
}
392389

393390
export const enum CompletionItemTag {

src/vs/editor/contrib/suggest/suggestWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class ItemRenderer implements IListRenderer<CompletionItem, ISuggestionTemplateD
241241
data.detailsLabel.textContent = (suggestion.detail || '').replace(/\n.*$/m, '');
242242
removeClass(data.right, 'always-show-details');
243243
} else {
244-
data.detailsLabel.textContent = (suggestion.label.details || '').replace(/\n.*$/m, '');
244+
data.detailsLabel.textContent = (suggestion.label.type || '').replace(/\n.*$/m, '');
245245
addClass(data.right, 'always-show-details');
246246
}
247247

src/vs/monaco.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5202,10 +5202,9 @@ declare namespace monaco.languages {
52025202
*/
52035203
name: string;
52045204
/**
5205-
* Details of the completion item that is rendered less
5206-
* prominent to the right.
5205+
* The return-type of a function or type of a property, variable
52075206
*/
5208-
details?: string;
5207+
type?: string;
52095208
}
52105209

52115210
export enum CompletionItemTag {

src/vs/vscode.proposed.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,10 +1396,9 @@ declare module 'vscode' {
13961396
// signature?: string; // parameters
13971397
// The fully qualified name, like package name, file path etc
13981398
// qualifier?: string;
1399-
// The return-type of a function or type of a property, variable etc
1400-
// type?: string;
14011399

1402-
details?: string;
1400+
// The return-type of a function or type of a property, variable etc
1401+
type?: string;
14031402
}
14041403

14051404
//#endregion

src/vs/workbench/api/common/extHostTypes.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,8 +1358,9 @@ export enum CompletionItemTag {
13581358

13591359
export interface CompletionItemLabel {
13601360
name: string;
1361-
// description?: string;
1362-
details?: string;
1361+
// signature?: string; // parameters
1362+
// qualifier?: string;
1363+
type?: string;
13631364
}
13641365

13651366

0 commit comments

Comments
 (0)