Saoud Rizwan 1 год назад
Родитель
Сommit
1ff481468c
2 измененных файлов с 10 добавлено и 5 удалено
  1. 9 5
      src/providers/ClaudeDevProvider.ts
  2. 1 0
      webview-ui/src/components/ChatRow.tsx

+ 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) {