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 (
9191 try {
9292 // Must happen before other event handling that might dispatch more
9393 // changes that invalidate our position.
94- queueMicrotask ( ( ) => {
94+ queueMicrotask ( async ( ) => {
95+ const result = await client . connection . sendRequest (
96+ SignatureHelpRequest . type ,
97+ params
98+ ) ;
9599 view . dispatch ( {
96- effects : [ setSignatureHelpRequestPosition . of ( pos ) ] ,
100+ effects : [
101+ setSignatureHelpRequestPosition . of ( pos ) ,
102+ setSignatureHelpResult . of ( result ) ,
103+ ] ,
97104 } ) ;
98105 } ) ;
99- const result = await client . connection . sendRequest (
100- SignatureHelpRequest . type ,
101- params
102- ) ;
103- view . dispatch ( {
104- effects : [ setSignatureHelpResult . of ( result ) ] ,
105- } ) ;
106106 } catch ( e ) {
107107 if ( ! isErrorDueToDispose ( e ) ) {
108108 logException ( state , e , "signature-help" ) ;
You can’t perform that action at this time.
0 commit comments