Skip to content

Commit

Permalink
feat: Add command for texlab.cancelbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
ROCKTAKEY committed Jun 14, 2023
1 parent 51bd8a0 commit 603d8d4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lsp-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -1048,13 +1048,24 @@ the file specified by TEXT-DOCUMENT-IDENTIFIER."
:position (lsp-point-to-position point)
:newName new-name))))

;; TODO: Add process for returned value
(defun lsp-latex-find-environment (point)
""
(interactive
(list
(point)))
(let* ((environment-location-list
(lsp-workspace-command-execute "texlab.findEnvironments"
(vector
(lsp--text-document-position-params)))))))

(declare-function graphviz-dot-mode "ext:graphviz-dot-mode")
(defun lsp-latex-show-dependency-graph ()
"Show dependency graph written by DOT format.
`graphviz-dot-mode' is needed if you needs syntax highlights
or a graphical image."
(interactive)
(let ((dot-language-text (lsp-workspace-command-execute "texlab.showDependencyGraph"))
(let ((dot-language-text (lsp-workspace-command-execute "texlab.showDependencyGraph")bff)
(buffer (get-buffer-create "*lsp-latex: Dependency Graph*")))
(with-current-buffer buffer
(read-only-mode -1)
Expand All @@ -1065,5 +1076,9 @@ or a graphical image."
(read-only-mode +1))
(pop-to-buffer buffer)))

(defun lsp-latex-cancel-build ()
"Cancel builds by texlab."
(lsp-workspace-command-execute "texlab.cancelBuild"))

(provide 'lsp-latex)
;;; lsp-latex.el ends here

0 comments on commit 603d8d4

Please sign in to comment.