|
29 | 29 |
|
30 | 30 | (require 'lsp-mode) |
31 | 31 | (require 'lsp-treemacs) |
| 32 | +(require 'lsp-treemacs-generic) |
32 | 33 | (require 'gnutls) |
33 | 34 |
|
34 | 35 | (defgroup lsp-mssql nil |
@@ -205,7 +206,7 @@ PARAMS Session created handler." |
205 | 206 | (prog1 (save-excursion |
206 | 207 | (let ((inhibit-read-only t)) |
207 | 208 | ,@body)) |
208 | | - (org-show-all '(headings blocks))))) |
| 209 | + (org-fold-show-all '(headings blocks))))) |
209 | 210 |
|
210 | 211 | (defun lsp-mssql--connection-complete (_workspace params) |
211 | 212 | "Connection completed handler. |
@@ -367,7 +368,7 @@ PARAMS the params." |
367 | 368 | "Hanler for batch complete.") |
368 | 369 |
|
369 | 370 | (defun lsp-mssql--complete (_workspace _params) |
370 | | - "Hanler for complete." |
| 371 | + "Handler for complete." |
371 | 372 | (lsp-mssql-with-result-buffer)) |
372 | 373 |
|
373 | 374 | (defvar-local lsp-mssql--markers (ht)) |
@@ -663,14 +664,19 @@ NODES - all nodes." |
663 | 664 | "Show explorer. |
664 | 665 | TREE is the data to display, TITLE will be used for the |
665 | 666 | modeline in the result buffer." |
666 | | - (with-current-buffer (get-buffer-create "*SQL Object explorer*") |
667 | | - (lsp-treemacs-initialize) |
668 | | - (setq-local lsp-treemacs-tree tree) |
669 | | - (setq-local face-remapping-alist '((button . default))) |
670 | | - (lsp-treemacs-generic-refresh) |
671 | | - (display-buffer-in-side-window (current-buffer) '((side . right))) |
672 | | - (setq-local mode-name title) |
673 | | - (lsp-mssql-object-explorer-mode))) |
| 667 | + (lsp-treemacs-render tree title 0 |
| 668 | + "*SQL Object explorer*" nil) |
| 669 | + (with-current-buffer "*SQL Object explorer*" |
| 670 | + (display-buffer-in-side-window (current-buffer) '((side . right))) |
| 671 | + (lsp-mssql-object-explorer-mode))) |
| 672 | + |
| 673 | +;; - (with-current-buffer (get-buffer-create "*SQL Object explorer*") |
| 674 | +;; - (lsp-treemacs-initialize) |
| 675 | +;; - (setq-local lsp-treemacs-tree tree) |
| 676 | +;; - (setq-local face-remapping-alist '((button . default))) |
| 677 | +;; - (lsp-treemacs-generic-refresh);; - |
| 678 | +;; - (setq-local mode-name title) |
| 679 | + |
674 | 680 |
|
675 | 681 |
|
676 | 682 |
|
|
0 commit comments