Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Prefer base HTML icon for .html files
Julius Marminge0f208447ed78
diff --git a/apps/web/src/vscode-icons.test.ts b/apps/web/src/vscode-icons.test.tsindex b00cf0cdc..e03f5a4c3 100644--- a/apps/web/src/vscode-icons.test.ts+++ b/apps/web/src/vscode-icons.test.ts@@ -30,12 +30,14 @@ describe("getVscodeIconUrlForEntry", () => {const tsxUrl = getVscodeIconUrlForEntry("checkbox.tsx", "file", "light");const dockerfileUrl = getVscodeIconUrlForEntry("Dockerfile", "file", "dark");const shellUrl = getVscodeIconUrlForEntry("entrypoint.sh", "file", "dark");+ const htmlUrl = getVscodeIconUrlForEntry("index.html", "file", "dark");const cursorRulesUrl = getVscodeIconUrlForEntry("general.mdc", "file", "dark");const githubWorkflowUrl = getVscodeIconUrlForEntry(".github/workflows/ci.yml", "file", "light");assert.isTrue(tsxUrl.endsWith("/file_type_reactts.svg"));assert.isTrue(dockerfileUrl.endsWith("/file_type_docker.svg"));assert.isTrue(shellUrl.endsWith("/file_type_shell.svg"));+ assert.isTrue(htmlUrl.endsWith("/file_type_html.svg"));assert.isTrue(cursorRulesUrl.endsWith("/file_type_markdown.svg"));assert.isTrue(githubWorkflowUrl.endsWith("/file_type_light_yaml.svg"));});diff --git a/apps/web/src/vscode-icons.ts b/apps/web/src/vscode-icons.tsindex e2c0d9583..3d9a59702 100644--- a/apps/web/src/vscode-icons.ts+++ b/apps/web/src/vscode-icons.ts@@ -45,6 +45,9 @@ const languageIdByFileName = toLowercaseLookup(languageAssociations.fileNameToLaconst localLanguageIdByExtensionOverrides = {// Cursor rules files (*.mdc) are commonly treated as markdown in VSCode/Cursor.mdc: "markdown",+ // Upstream languages.ts currently maps .html to django-html before html.+ // Prefer the base HTML icon for standalone HTML files.+ html: "html",// Upstream languages.ts maps yml/yaml to specialized language ids that can produce// non-generic YAML icons (for example cloudfoundry/esphome). Prefer the base YAML icon// unless a more specific basename/extension match (e.g. azure-pipelines.yml) is found.