Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: add nir decoding request #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lsp-metals.el
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ sources."
(defconst lsp-metals--javap-format-id "javap")

(defconst lsp-metals--javap-verbose-format-id "javap-verbose")
(defconst lsp-metals--nir-format-id "nir")

(defconst lsp-metals--semanticdb-compact-format-id "semanticdb-compact")

Expand All @@ -346,6 +347,7 @@ sources."

(defconst lsp-metals--all-format-ids (list lsp-metals--javap-format-id
lsp-metals--javap-verbose-format-id
lsp-metals--nir-format-id
lsp-metals--semanticdb-compact-format-id
lsp-metals--semanticdb-detailed-format-id
lsp-metals--tasty-decoded-format-id))
Expand Down Expand Up @@ -547,6 +549,11 @@ for more information on the metals \"files-decode\" command."
(interactive)
(lsp-metals-decode-file lsp-metals--javap-verbose-format-id))

(defun lsp-metals-view-nir ()
"View NIR for a class in the current file."
(interactive)
(lsp-metals-decode-file lsp-metals--nir-format-id))

(defun lsp-metals-view-semanticdb-compact ()
"View semanticdb compact for current file."
(interactive)
Expand Down
Loading