File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export class AlicloudApiCommands {
37
37
label : `${ inter . method ? `[${ inter . method } ] ` : "" } ${ inter . path ? inter . path : inter . name } ` ,
38
38
detail : `${ pontSpec . name ? pontSpec . name + "/" : "" } ${ inter . name } ` ,
39
39
description : `${ inter . description || inter . summary || "" } ` ,
40
+ summary : `${ inter . summary || "" } ` ,
40
41
} ;
41
42
} ) ;
42
43
} )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class CompletionItemProvider {
33
33
completionItems = searchAPIs ?. map ( ( api ) => {
34
34
let completionItem = new vscode . CompletionItem ( api . label , vscode . CompletionItemKind [ "Interface" ] ) ;
35
35
completionItem . detail = api . detail ;
36
- completionItem . documentation = api . description ;
36
+ completionItem . documentation = api . summary || api . description ;
37
37
38
38
// 代码替换位置,查找位置会同步应用
39
39
completionItem . range = new vscode . Range (
@@ -49,7 +49,7 @@ class CompletionItemProvider {
49
49
vscode . CompletionItemKind [ "Interface" ] ,
50
50
) ;
51
51
javaAsyncCompletionItem . detail = api . detail ;
52
- javaAsyncCompletionItem . documentation = api . description ;
52
+ javaAsyncCompletionItem . documentation = api . summary || api . description ;
53
53
54
54
// 代码替换位置,查找位置会同步应用
55
55
javaAsyncCompletionItem . range = new vscode . Range (
You can’t perform that action at this time.
0 commit comments