about summary refs log tree commit diff
path: root/editors/code/src/commands.ts
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2023-03-10 10:13:30 +0100
committerLukas Wirth <lukastw97@gmail.com>2023-03-10 10:13:30 +0100
commit2cb60343ed3774d4645d7d14dff8a1119d3c6785 (patch)
tree650ba91180babc33547000b95e9259100c2be5f7 /editors/code/src/commands.ts
parent0d19ccb3dfb9841ba84367c82a4e75930c189823 (diff)
downloadrust-2cb60343ed3774d4645d7d14dff8a1119d3c6785.tar.gz
rust-2cb60343ed3774d4645d7d14dff8a1119d3c6785.zip
Add fancy buttons to the vscode status message
Diffstat (limited to 'editors/code/src/commands.ts')
-rw-r--r--editors/code/src/commands.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index 70b91fe7dc8..f4a4579a92c 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -93,6 +93,14 @@ export function triggerParameterHints(_: CtxInit): Cmd {
     };
 }
 
+export function openLogs(ctx: CtxInit): Cmd {
+    return async () => {
+        if (ctx.client.outputChannel) {
+            ctx.client.outputChannel.show();
+        }
+    };
+}
+
 export function matchingBrace(ctx: CtxInit): Cmd {
     return async () => {
         const editor = ctx.activeRustEditor;