File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,11 @@ PARAMS the params."
262262 (goto-char (1+ start))
263263 (delete-char -1 ))))
264264
265+ (defvar lsp-mssql-after-render-table-hook nil
266+ " Hook called after data is rendered in the result buffer.
267+
268+ When the hook is called, the point is at the end of the buffer." )
269+
265270(defun lsp-mssql--result-set-complete (workspace params )
266271 " Result set complete handler.
267272WORKSPACE is the active workspace.
@@ -343,7 +348,8 @@ PARAMS the params."
343348 (insert (lsp-mssql--render-table result))
344349 (org-table-align )
345350 (forward-line 1 )
346- (render-load-more)))
351+ (render-load-more)
352+ (run-hooks 'lsp-mssql-after-render-table-hook )))
347353 :mode 'detached ))))
348354 'keymap (-doto (make-sparse-keymap )
349355 (define-key [M-return] 'push-button )
@@ -352,7 +358,8 @@ PARAMS the params."
352358 (insert " \n\n " )
353359 (goto-char (marker-position marker))
354360 (org-table-align )
355- (display-buffer (current-buffer ))))
361+ (display-buffer (current-buffer ))
362+ (run-hooks 'lsp-mssql-after-render-table-hook )))
356363 :mode 'detached ))))))
357364
358365(defun lsp-mssql--batch-complete (_workspace _params )
You can’t perform that action at this time.
0 commit comments