From 63d52b60a56da339cbfe1d2466b35b5615c63275 Mon Sep 17 00:00:00 2001 From: ykdojo Date: Sat, 24 Jun 2023 01:40:06 +0000 Subject: [PATCH] Updated README with Commands and Messages sections --- webview-sample/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/webview-sample/README.md b/webview-sample/README.md index 1e2ea222..adf969b0 100644 --- a/webview-sample/README.md +++ b/webview-sample/README.md @@ -32,3 +32,16 @@ Demonstrates VS Code's [webview API](https://code.visualstudio.com/api/extension - `F5` to start debugging Run the `Cat Coding: Start cat coding session` to create the webview. + +## Commands + +This extension provides the following commands: + +- `Cat Coding: Start cat coding session`: Creates and displays the Cat Coding webview. +- `Cat Coding: Do refactor`: Halves the count of lines of code displayed in the Cat Coding webview. + +## Messages + +The Cat Coding webview can send the following messages to the extension: + +- `alert`: Sent when the cat introduces a bug. The message includes the text '🐛 on line ' followed by the current line count. \ No newline at end of file