Skip to content

Commit

Permalink
Show decompiled content directly on opened classfile.
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
  • Loading branch information
rgrunber committed Sep 6, 2024
1 parent 1d7163f commit 8923a98
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/javaClassEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,9 @@ export class JavaClassEditorProvider implements vscode.CustomReadonlyEditorProvi
${style}
</head>
<body>
<div class="center">
<p>This file is not displayed in the text editor because it is a Java class file. Click here to decompile and open.</p>
<button id="btn"><center>Decompile Class File</center></button>
<div>
<script nonce="${nonce}">
const vscode = acquireVsCodeApi();
document.getElementById("btn").addEventListener("click", decompiled);
function decompiled() {
vscode.postMessage({ command: 'decompiled' });
}
vscode.postMessage({ command: 'decompiled' });
</script>
</body>
</html>
Expand Down

0 comments on commit 8923a98

Please sign in to comment.