Saoud Rizwan 1 год назад
Родитель
Сommit
cfc2ee830e

+ 8 - 0
CHANGELOG.md

@@ -4,6 +4,14 @@ All notable changes to the "claude-dev" extension will be documented in this fil
 
 <!-- Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. -->
 
+## [1.8.0]
+
+- You can now use '@' in the textarea to add context!
+    - @url: Paste in a URL for the extension to fetch and convert to markdown, useful when you want to give Claude the latest docs!
+    - @problems: Add workspace errors and warnings for Claude to fix, no more back-and-forth about debugging
+    - @file: Adds a file's contents so you dont have to waste an API request approving a read file (+ type to search files)
+    - @folder: Adds folder's files all at once to speed up your workflow even more
+
 ## [1.7.0]
 
 - Adds problems monitoring to keep Claude updated on linter/compiler/build issues, letting him proactively fix errors on his own! (adding missing imports, fixing type errors, etc.)

+ 1 - 1
package.json

@@ -2,7 +2,7 @@
   "name": "claude-dev",
   "displayName": "Claude Dev",
   "description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
-  "version": "1.7.5",
+  "version": "1.8.0",
   "icon": "icons/icon.png",
   "galleryBanner": {
     "color": "#1E1E1E",

+ 1 - 1
src/providers/ClaudeDevProvider.ts

@@ -54,7 +54,7 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
 	private view?: vscode.WebviewView | vscode.WebviewPanel
 	private claudeDev?: ClaudeDev
 	private workspaceTracker?: WorkspaceTracker
-	private latestAnnouncementId = "sep-14-2024" // update to some unique identifier when we add a new announcement
+	private latestAnnouncementId = "sep-19-2024" // update to some unique identifier when we add a new announcement
 
 	constructor(readonly context: vscode.ExtensionContext, private readonly outputChannel: vscode.OutputChannel) {
 		this.outputChannel.appendLine("ClaudeDevProvider instantiated")

+ 18 - 8
webview-ui/src/components/Announcement.tsx

@@ -31,14 +31,24 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
 			<h3 style={{ margin: "0 0 8px" }}>
 				🎉{"  "}New in v{version}
 			</h3>
-			<p style={{ margin: "5px 0px" }}>
-				Commands now run directly in your terminal thanks to VSCode 1.93's new shell integration updates! Plus a
-				new 'Proceed While Running' button to let Claude continue working while commands run, sending him new
-				output along the way (i.e. letting him react to server errors as he edits files).{" "}
-				<VSCodeLink style={{ display: "inline" }} href="https://x.com/sdrzn/status/1833316974518014072">
-					See a demo here.
-				</VSCodeLink>
-			</p>
+			<p style={{ margin: "5px 0px" }}>You can now use '@' in the textarea to add context!</p>
+			<ul style={{ margin: "0 0 8px", paddingLeft: "12px" }}>
+				<li>
+					<strong>@url:</strong> Paste in a URL for the extension to fetch and convert to markdown, useful
+					when you want to give Claude the latest docs!
+				</li>
+				<li>
+					<strong>@problems:</strong> Add workspace errors and warnings for Claude to fix, no more
+					back-and-forth about debugging
+				</li>
+				<li>
+					<strong>@file:</strong> Adds a file's contents so you don't have to waste an API request approving a
+					read file (+ type to search files)
+				</li>
+				<li>
+					<strong>@folder:</strong> Adds folder's files all at once to speed up your workflow even more
+				</li>
+			</ul>
 			{/* <p style={{ margin: "5px 0px" }}>
 				Claude can now monitor workspace problems to keep updated on linter/compiler/build issues, letting him
 				proactively fix errors on his own! (adding missing imports, fixing type errors, etc.)

+ 1 - 1
webview-ui/src/components/ContextMenu.tsx

@@ -49,7 +49,7 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
 			case ContextMenuOptionType.Problems:
 				return <span>Problems</span>
 			case ContextMenuOptionType.URL:
-				return <span>Paste URL to scrape</span>
+				return <span>Paste URL to fetch contents</span>
 			case ContextMenuOptionType.NoResults:
 				return <span>No results found</span>
 			case ContextMenuOptionType.File: