Skip to content

Commit ed080f2

Browse files
committed
feat(core): use display-buffer to show results
Display buffer is better choice than pop-to-buffer because most of the time the user wants to edit the query and see the result somewhere else without being forced to switch the active window. Also display-buffer is customizable via display-buffer-alist settings, so this way users have more freedom on how exactly results are displayed.
1 parent ee82e99 commit ed080f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lsp-mssql.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ PARAMS the params."
309309
(org-mode)
310310
(goto-char (marker-position marker))
311311
(org-table-align)
312-
(pop-to-buffer (current-buffer))))
312+
(display-buffer (current-buffer))))
313313
:mode 'detached))))))
314314

315315
(defun lsp-mssql--batch-complete (_workspace _params)
@@ -344,7 +344,7 @@ PARAMS batch handler params."
344344
;; ("character" endColumn))))))
345345
;; (insert "#+END_SRC\n\n")
346346
)
347-
(display-buffer-in-side-window (current-buffer) '((side . bottom)))))
347+
(display-buffer (current-buffer))))
348348

349349
(defun lsp-mssql--connection-changed (_workspace _params)
350350
"Hanler for batch complete.")

0 commit comments

Comments
 (0)