From 30779fe74e2da5ddb27c1fd0d4511125ac11705f Mon Sep 17 00:00:00 2001 From: andrepimenta Date: Mon, 16 Jun 2025 17:37:17 +0100 Subject: [PATCH] Separate UI --- src/extension.ts | 2288 +--------------------------------------------- src/ui.ts | 2288 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 2290 insertions(+), 2286 deletions(-) create mode 100644 src/ui.ts diff --git a/src/extension.ts b/src/extension.ts index e539ed4..638e3b6 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -2,6 +2,7 @@ import * as vscode from 'vscode'; import * as cp from 'child_process'; import * as util from 'util'; import * as path from 'path'; +import html from './ui'; const exec = util.promisify(cp.exec); @@ -1068,2292 +1069,7 @@ class ClaudeChatProvider { } private _getHtmlForWebview(): string { - return ` - - - - - Claude Code Chat - - - -
-
-

Claude Code Chat

- -
-
- - - -
-
- - - -
-
-
-
- -
- - - - -
-
-
-
- -
-
-
Initializing...
- -
- -
- In Beta. All Claude Code tools are allowed. Use at your own risk. -
- - - - - - - - - -`; + return html } public dispose() { diff --git a/src/ui.ts b/src/ui.ts new file mode 100644 index 0000000..517af54 --- /dev/null +++ b/src/ui.ts @@ -0,0 +1,2288 @@ +const html = ` + + + + + Claude Code Chat + + + +
+
+

Claude Code Chat

+ +
+
+ + + +
+
+ + + +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+
+
Initializing...
+ +
+ +
+ In Beta. All Claude Code tools are allowed. Use at your own risk. +
+ + + + + + + + + +`; + +export default html; \ No newline at end of file