This repository was archived by the owner on Nov 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,10 @@ export class SignatureHelpProvider implements vscode.SignatureHelpProvider {
27
27
token ,
28
28
) . then ( hover => this . hoverToSignatureHelp ( hover ) ) ;
29
29
} else if ( context . triggerCharacter === ',' ) {
30
- if ( this . previousFunctionPosition && position . line === this . previousFunctionPosition . line ) {
30
+ if (
31
+ this . previousFunctionPosition &&
32
+ position . line === this . previousFunctionPosition . line
33
+ ) {
31
34
return this . provideHover (
32
35
this . languageClient ,
33
36
document ,
@@ -116,7 +119,10 @@ export class SignatureHelpProvider implements vscode.SignatureHelpProvider {
116
119
return undefined ;
117
120
}
118
121
119
- const doc = hover . contents . length > 1 ? hover . contents . slice ( - 1 ) [ 0 ] as vscode . MarkdownString : undefined ;
122
+ const doc =
123
+ hover . contents . length > 1
124
+ ? ( hover . contents . slice ( - 1 ) [ 0 ] as vscode . MarkdownString )
125
+ : undefined ;
120
126
const si = new vscode . SignatureInformation ( label , doc ) ;
121
127
122
128
// without parsing the function definition, we don't have a way to get more info on parameters.
Original file line number Diff line number Diff line change 11
11
"interface-name" : [true , " never-prefix" ],
12
12
"variable-name" : [true , " allow-leading-underscore" ],
13
13
"member-ordering" : [true , {"order" : " fields-first" }],
14
+ "arrow-return-shorthand" : true ,
14
15
15
16
"object-literal-sort-keys" : false ,
16
17
"no-console" : false ,
You can’t perform that action at this time.
0 commit comments