File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/editor/codemirror/language-server Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -91,18 +91,18 @@ const triggerSignatureHelpRequest = async (
91
91
try {
92
92
// Must happen before other event handling that might dispatch more
93
93
// changes that invalidate our position.
94
- queueMicrotask ( ( ) => {
94
+ queueMicrotask ( async ( ) => {
95
+ const result = await client . connection . sendRequest (
96
+ SignatureHelpRequest . type ,
97
+ params
98
+ ) ;
95
99
view . dispatch ( {
96
- effects : [ setSignatureHelpRequestPosition . of ( pos ) ] ,
100
+ effects : [
101
+ setSignatureHelpRequestPosition . of ( pos ) ,
102
+ setSignatureHelpResult . of ( result ) ,
103
+ ] ,
97
104
} ) ;
98
105
} ) ;
99
- const result = await client . connection . sendRequest (
100
- SignatureHelpRequest . type ,
101
- params
102
- ) ;
103
- view . dispatch ( {
104
- effects : [ setSignatureHelpResult . of ( result ) ] ,
105
- } ) ;
106
106
} catch ( e ) {
107
107
if ( ! isErrorDueToDispose ( e ) ) {
108
108
logException ( state , e , "signature-help" ) ;
You can’t perform that action at this time.
0 commit comments