Skip to content

Commit 8923a98

Browse files
committed
Show decompiled content directly on opened classfile.
Signed-off-by: Roland Grunberg <[email protected]>
1 parent 1d7163f commit 8923a98

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/javaClassEditor.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,9 @@ export class JavaClassEditorProvider implements vscode.CustomReadonlyEditorProvi
4141
${style}
4242
</head>
4343
<body>
44-
<div class="center">
45-
<p>This file is not displayed in the text editor because it is a Java class file. Click here to decompile and open.</p>
46-
<button id="btn"><center>Decompile Class File</center></button>
47-
<div>
4844
<script nonce="${nonce}">
4945
const vscode = acquireVsCodeApi();
50-
document.getElementById("btn").addEventListener("click", decompiled);
51-
function decompiled() {
52-
vscode.postMessage({ command: 'decompiled' });
53-
}
46+
vscode.postMessage({ command: 'decompiled' });
5447
</script>
5548
</body>
5649
</html>

0 commit comments

Comments
 (0)