Procházet zdrojové kódy

Fix paragraph word wrap

Saoud Rizwan před 1 rokem
rodič
revize
1ff481468c

+ 9 - 5
src/providers/ClaudeDevProvider.ts

@@ -394,11 +394,15 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
 		return await this.context.workspaceState.get(key)
 	}
 
-	private async clearAllWorkspaceState() {
-		this.context.workspaceState.keys().forEach((key) => {
-			this.context.workspaceState.update(key, undefined)
-		})
-	}
+	// private async clearState() {
+	// 	this.context.workspaceState.keys().forEach((key) => {
+	// 		this.context.workspaceState.update(key, undefined)
+	// 	})
+	// 	this.context.globalState.keys().forEach((key) => {
+	// 		this.context.globalState.update(key, undefined)
+	// 	})
+	// 	this.context.secrets.delete("apiKey")
+	// }
 
 	// secrets
 

+ 1 - 0
webview-ui/src/components/ChatRow.tsx

@@ -175,6 +175,7 @@ const ChatRow: React.FC<ChatRowProps> = ({
 		const pStyle: React.CSSProperties = {
 			margin: 0,
 			whiteSpace: "pre-line",
+			wordBreak: "break-word",
 		}
 
 		switch (message.type) {