File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,14 @@ See https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/Choose-an-ActionScript-S
119
119
:major-modes '(actionscript-mode)
120
120
:priority -1
121
121
:server-id 'as3mxml-ls
122
- :download-server-fn (lambda (_client _callback error-callback _update? )
122
+ :download-server-fn (lambda (_client callback error-callback _update? )
123
123
(lsp-package-ensure
124
124
'as3mxml
125
125
(lambda ()
126
126
; ; TODO: Error handling when unzip failed
127
127
(lsp-unzip (lsp-actionscript--extension-path-zip)
128
- (lsp-actionscript--extension-root)))
128
+ (lsp-actionscript--extension-root))
129
+ (funcall callback))
129
130
error-callback))))
130
131
131
132
(lsp-consistency-check lsp-actionscript)
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ This is differ from the variable `lsp-zig-zls-executable'; this is local storage
270
270
and not the global storage."
271
271
(executable-find (f-join lsp-zig-server-store-path " bin/zls" )))
272
272
273
- (defun lsp-zig--extract-compressed-file ()
273
+ (defun lsp-zig--extract-compressed-file (callback )
274
274
" Install zls."
275
275
(cond ((file-exists-p lsp-zig--downloaded-file)
276
276
; ; Suprisingly, you can just use `tar' to unzip a zip file on Windows.
@@ -279,7 +279,8 @@ and not the global storage."
279
279
; ; Delete the zip file.
280
280
(ignore-errors (delete-file lsp-zig--downloaded-file)))
281
281
(t
282
- (error " Can't extract the downloaded file: %s " lsp-zig--downloaded-file))))
282
+ (error " Can't extract the downloaded file: %s " lsp-zig--downloaded-file)))
283
+ (funcall callback))
283
284
284
285
(lsp-dependency
285
286
'zls
@@ -332,8 +333,11 @@ and not the global storage."
332
333
:priority -1
333
334
:server-id 'zls
334
335
:download-server-fn
335
- (lambda (_client _callback error-callback _update? )
336
- (lsp-package-ensure 'zls #'lsp-zig--extract-compressed-file error-callback))))
336
+ (lambda (_client callback error-callback _update? )
337
+ (lsp-package-ensure 'zls
338
+ (lambda (&rest _ )
339
+ (lsp-zig--extract-compressed-file callback))
340
+ error-callback))))
337
341
338
342
(lsp-consistency-check lsp-zig)
339
343
You can’t perform that action at this time.
0 commit comments