- {messages.map((message) => (
+ {messages.map((message, index) => (
Hello World!
-
Howdy!
+
Howdy!
diff --git a/webview-ui/src/components/SettingsView.tsx b/webview-ui/src/components/SettingsView.tsx
index 16fc79c..f190980 100644
--- a/webview-ui/src/components/SettingsView.tsx
+++ b/webview-ui/src/components/SettingsView.tsx
@@ -61,13 +61,13 @@ const SettingsView = () => {
color: "var(--vscode-descriptionForeground)",
fontSize: "12px",
lineHeight: "1.5",
- fontStyle: "italic"
+ fontStyle: "italic",
}}>
Made possible by the latest breakthroughs in Claude 3.5 Sonnet's agentic coding capabilities.
- This project was submitted to Anthropic's "Build with Claude June 2024 contest".
+ This project was submitted to Anthropic's
"Build with Claude June 2024 contest"
- github.com/saoudrizwan/claude-dev
+ https://github.com/saoudrizwan/claude-dev
diff --git a/webview-ui/src/utilities/vscode.ts b/webview-ui/src/utilities/vscode.ts
index ab89936..7c754c5 100644
--- a/webview-ui/src/utilities/vscode.ts
+++ b/webview-ui/src/utilities/vscode.ts
@@ -1,3 +1,4 @@
+import { WebviewMessage } from "@shared/WebviewMessage"
import type { WebviewApi } from "vscode-webview"
/**
@@ -28,7 +29,7 @@ class VSCodeAPIWrapper {
*
* @param message Abitrary data (must be JSON serializable) to send to the extension context.
*/
- public postMessage(message: unknown) {
+ public postMessage(message: WebviewMessage) {
if (this.vsCodeApi) {
this.vsCodeApi.postMessage(message)
} else {
diff --git a/webview-ui/tsconfig.json b/webview-ui/tsconfig.json
index 2eae7b2..cde1010 100644
--- a/webview-ui/tsconfig.json
+++ b/webview-ui/tsconfig.json
@@ -14,7 +14,10 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
- "jsx": "react-jsx"
+ "jsx": "react-jsx",
+ "paths": {
+ "@shared/*": ["../src/shared/*"]
+ }
},
- "include": ["src"]
+ "include": ["src", "../src/shared"]
}