Skip to content

Commit d595977

Browse files
committed
Refactor keyword handling to uniformly support file paths, changes, and selection keywords, enabling deletion and display logic for all types
1 parent 1c8565c commit d595977

6 files changed

Lines changed: 539 additions & 328 deletions

File tree

‎packages/ui/src/components/editor/panel/ChatInput/ChatInput.module.scss‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
}
134134
}
135135

136-
.file-keyword {
136+
.keyword {
137137
font-size: var(--font-size-12px);
138138
background-color: color-mix(
139139
in srgb,
@@ -153,7 +153,6 @@
153153

154154
&::before {
155155
font-family: 'codicon';
156-
content: '\ea7b';
157156
font-size: var(--font-size-12px);
158157
transition: none;
159158
}
@@ -167,6 +166,26 @@
167166
&__text {
168167
cursor: pointer;
169168
}
169+
170+
&--file &__icon::before {
171+
content: '\ea7b';
172+
}
173+
174+
&--changes &__icon::before {
175+
content: '\ebdb';
176+
}
177+
178+
&--selection &__icon::before {
179+
content: '\eb84';
180+
}
181+
182+
&--selection-error {
183+
background-color: color-mix(
184+
in srgb,
185+
var(--vscode-charts-red) 20%,
186+
transparent
187+
);
188+
}
170189
}
171190

172191
.footer {

0 commit comments

Comments
 (0)