Saoud Rizwan 1 rok temu
rodzic
commit
98441bf98c

+ 1 - 1
.vscodeignore

@@ -36,7 +36,7 @@ webview-ui/node_modules/**
 !node_modules/@vscode/codicons/dist/codicon.ttf
 
 # Include default themes JSON files used in getTheme
-!src/utils/default-themes/**
+!src/integrations/theme/default-themes/**
 
 # Include icons
 !icons/**

+ 1 - 1
src/core/webviews/ClaudeDevProvider.ts

@@ -9,7 +9,7 @@ import * as path from "path"
 import fs from "fs/promises"
 import { HistoryItem } from "../../shared/HistoryItem"
 import axios from "axios"
-import { getTheme } from "../../utils/getTheme"
+import { getTheme } from "../../integrations/theme/getTheme"
 import { openFile, openImage } from "../../utils/open-file"
 import WorkspaceTracker from "../../integrations/WorkspaceTracker"
 import { openMention } from "../../utils/context-mentions"

+ 0 - 0
src/utils/default-themes/dark_modern.json → src/integrations/theme/default-themes/dark_modern.json


+ 0 - 0
src/utils/default-themes/dark_plus.json → src/integrations/theme/default-themes/dark_plus.json


+ 0 - 0
src/utils/default-themes/dark_vs.json → src/integrations/theme/default-themes/dark_vs.json


+ 0 - 0
src/utils/default-themes/hc_black.json → src/integrations/theme/default-themes/hc_black.json


+ 0 - 0
src/utils/default-themes/hc_light.json → src/integrations/theme/default-themes/hc_light.json


+ 0 - 0
src/utils/default-themes/light_modern.json → src/integrations/theme/default-themes/light_modern.json


+ 0 - 0
src/utils/default-themes/light_plus.json → src/integrations/theme/default-themes/light_plus.json


+ 0 - 0
src/utils/default-themes/light_vs.json → src/integrations/theme/default-themes/light_vs.json


+ 2 - 2
src/utils/getTheme.ts → src/integrations/theme/getTheme.ts

@@ -54,7 +54,7 @@ export async function getTheme() {
 		if (currentTheme === undefined && defaultThemes[colorTheme]) {
 			const filename = `${defaultThemes[colorTheme]}.json`
 			currentTheme = await fs.readFile(
-				path.join(getExtensionUri().fsPath, "src", "utils", "default-themes", filename),
+				path.join(getExtensionUri().fsPath, "src", "integrations", "theme", "default-themes", filename),
 				"utf-8"
 			)
 		}
@@ -64,7 +64,7 @@ export async function getTheme() {
 
 		if (parsed.include) {
 			const includeThemeString = await fs.readFile(
-				path.join(getExtensionUri().fsPath, "src", "utils", "default-themes", parsed.include),
+				path.join(getExtensionUri().fsPath, "src", "integrations", "theme", "default-themes", parsed.include),
 				"utf-8"
 			)
 			const includeTheme = parseThemeString(includeThemeString)