Skip to content

Commit 5c7aa54

Browse files
Copilotsapphi-red
andauthored
Add TypeScript icon for tsconfig files (#27)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
1 parent f2ae782 commit 5c7aa54

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/components/InputContainer.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,20 @@ function setEntry(name: string) {
7272
</template>
7373

7474
<template #tab-prefix="{ value }">
75+
<div
76+
v-if="value.startsWith('tsconfig.') && value.endsWith('.json')"
77+
i-vscode-icons:file-type-tsconfig
78+
h-3.5
79+
title="TypeScript Config"
80+
/>
81+
<img
82+
v-else-if="CONFIG_FILES.includes(value)"
83+
src="/rolldown-bracketless.svg"
84+
h-3.5
85+
title="Config File"
86+
/>
7587
<button
76-
v-if="!CONFIG_FILES.includes(value)"
88+
v-else
7789
title="Toggle Entry"
7890
p="0.5"
7991
mr="0.5"
@@ -90,7 +102,6 @@ function setEntry(name: string) {
90102
>
91103
<div title="Toggle Entry" i-ph:house-line-duotone />
92104
</button>
93-
<img v-else src="/rolldown-bracketless.svg" h-3.5 title="Config File" />
94105
</template>
95106
</Tabs>
96107
</div>

0 commit comments

Comments
 (0)