Skip to content

Commit 6842779

Browse files
committed
Handle non diff code block
1 parent 6ac6fcd commit 6842779

32 files changed

Lines changed: 10683 additions & 4245 deletions

File tree

‎packages/shared/src/types/task.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export type Task = {
44
created_at: number
55
is_collapsed?: boolean
66
children?: Task[]
7-
}
7+
}

‎packages/ui/src/components/editor/common/SimpleCheckbox/SimpleCheckbox.stories.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ export const Default = () => {
99
const [checked, set_checked] = useState(false)
1010

1111
return (
12-
<div style={{ padding: '20px', background: 'var(--vscode-sideBar-background)' }}>
12+
<div
13+
style={{
14+
padding: '20px',
15+
background: 'var(--vscode-sideBar-background)'
16+
}}
17+
>
1318
<SimpleCheckbox
1419
checked={checked}
1520
on_change={set_checked}

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

Lines changed: 0 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -90,168 +90,4 @@
9090
> div:first-child {
9191
margin-top: 0;
9292
}
93-
94-
> div:last-child {
95-
margin-bottom: 0;
96-
}
97-
98-
&__item {
99-
display: flex;
100-
flex-direction: column;
101-
102-
&__progress {
103-
display: flex;
104-
align-items: center;
105-
gap: 6px;
106-
font-size: 11px;
107-
color: var(--vscode-descriptionForeground);
108-
margin-right: 4px;
109-
white-space: nowrap;
110-
}
111-
112-
&__file {
113-
display: flex;
114-
align-items: center;
115-
justify-content: space-between;
116-
gap: 8px;
117-
border: 1px solid var(--cwc-border-color-dimmed);
118-
padding: 0 8px;
119-
margin: 0 12px;
120-
height: 34px;
121-
border-radius: 8px;
122-
123-
&:hover {
124-
background-color: var(--vscode-list-hoverBackground);
125-
border-color: var(--cwc-border-color);
126-
127-
.list__item__file__actions {
128-
display: flex;
129-
}
130-
}
131-
132-
&--selected {
133-
background-color: var(--vscode-list-inactiveSelectionBackground);
134-
}
135-
136-
&--error {
137-
border-color: var(--vscode-errorForeground) !important;
138-
}
139-
140-
&--warning {
141-
border-color: var(--vscode-inputValidation-warningBorder) !important;
142-
}
143-
144-
&__left {
145-
display: flex;
146-
align-items: center;
147-
gap: 8px;
148-
overflow: hidden;
149-
150-
&__label {
151-
flex: 1;
152-
text-overflow: ellipsis;
153-
overflow: hidden;
154-
white-space: nowrap;
155-
156-
> span:last-child {
157-
opacity: 0.7;
158-
margin-left: 0.5em;
159-
font-size: 0.9em;
160-
}
161-
162-
&--new {
163-
color: var(--vscode-gitDecoration-untrackedResourceForeground);
164-
}
165-
166-
&--deleted {
167-
text-decoration: line-through;
168-
color: var(--vscode-gitDecoration-deletedResourceForeground);
169-
}
170-
}
171-
}
172-
173-
&__right {
174-
display: flex;
175-
align-items: center;
176-
gap: 4px;
177-
}
178-
179-
&__actions {
180-
display: none;
181-
align-items: center;
182-
}
183-
184-
&__line-numbers {
185-
display: flex;
186-
gap: 3px;
187-
188-
&__added {
189-
color: var(--vscode-gitDecoration-addedResourceForeground);
190-
}
191-
&__removed {
192-
color: var(--vscode-gitDecoration-deletedResourceForeground);
193-
}
194-
}
195-
}
196-
}
197-
198-
&__message {
199-
margin: 0 20px;
200-
display: flex;
201-
justify-content: space-between;
202-
gap: 4px;
203-
border: 1px solid var(--cwc-border-color-dimmed);
204-
border-top: none;
205-
border-bottom-left-radius: 6px;
206-
border-bottom-right-radius: 6px;
207-
overflow: hidden;
208-
209-
&--error {
210-
color: var(--vscode-errorForeground);
211-
border-color: var(--vscode-errorForeground);
212-
}
213-
214-
&--warning {
215-
color: var(--vscode-inputValidation-warningBorder);
216-
border-color: var(--vscode-inputValidation-warningBorder);
217-
}
218-
219-
&--success {
220-
color: var(--vscode-notebookStatusSuccessIcon-foreground);
221-
}
222-
223-
&__content {
224-
flex: 1;
225-
overflow: hidden;
226-
text-overflow: ellipsis;
227-
white-space: nowrap;
228-
font-size: 11px;
229-
padding: 2px 0 2px 6px;
230-
231-
> span:first-child {
232-
font-size: 12px !important;
233-
margin-right: 4px;
234-
transform: translateY(2px);
235-
}
236-
}
237-
238-
&__actions {
239-
display: flex;
240-
241-
&__item {
242-
display: flex;
243-
font-size: 12px;
244-
align-items: center;
245-
gap: 4px;
246-
cursor: pointer;
247-
white-space: nowrap;
248-
color: var(--vscode-textLink-foreground);
249-
padding: 0 6px 0 3px;
250-
251-
&:hover {
252-
background-color: var(--vscode-list-hoverBackground);
253-
}
254-
}
255-
}
256-
}
25793
}

0 commit comments

Comments
 (0)