Skip to content

Commit c929aba

Browse files
committed
Run prettier
1 parent 1033f43 commit c929aba

18 files changed

Lines changed: 54 additions & 61 deletions

File tree

‎packages/browser/src/views/popup/index.css‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
body {
22
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
4-
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
3+
font-family:
4+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
5+
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
56
width: 360px;
67
}
78

‎packages/browser/src/views/popup/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

‎packages/ui/src/components/editor/panel/ResponsePreview/ResponsePreview.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ export const ResponsePreview: FC<Props> = (props) => {
189189
file.diff_fallback_method == 'recount'
190190
? ' (fallback used: git apply with --recount flag)'
191191
: file.diff_fallback_method ==
192-
'search_and_replace'
193-
? ' (fallback used: search and replace matching fragments)'
194-
: ''
192+
'search_and_replace'
193+
? ' (fallback used: search and replace matching fragments)'
194+
: ''
195195
}`}
196196
on_click={(e) => {
197197
e.stopPropagation()

‎packages/ui/src/components/editor/panel/modals/ProgressModal/ProgressModal.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ export const ProgressModal: React.FC<Props> = (props) => {
142142
file.status == 'done'
143143
? 100
144144
: file.status == 'receiving' &&
145-
file.progress !== undefined
146-
? file.progress
147-
: 0
145+
file.progress !== undefined
146+
? file.progress
147+
: 0
148148
}%`
149149
}}
150150
/>

‎packages/ui/src/styles/foundation/_colors.scss‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,12 @@
151151
);
152152
--cwc-box-shadow-sm: 0 2px 8px 0px var(--cwc-shadow-secondary);
153153
--cwc-box-shadow-md: 0 0 8px 2px var(--cwc-shadow-primary);
154-
--cwc-box-shadow-lg: 0 0 4px 0 hsla(0, 0%, 100%, 0.05) inset,
154+
--cwc-box-shadow-lg:
155+
0 0 4px 0 hsla(0, 0%, 100%, 0.05) inset,
155156
0 0 3px 0 var(--cwc-shadow-secondary),
156157
0 16px 24px 0 var(--cwc-shadow-tertiary);
157-
--cwc-box-shadow-xl: 0 0 4px 0 hsla(0, 0%, 100%, 0.05) inset,
158+
--cwc-box-shadow-xl:
159+
0 0 4px 0 hsla(0, 0%, 100%, 0.05) inset,
158160
0 0 6px 8px var(--cwc-shadow-secondary),
159161
0 24px 16px 6px var(--cwc-shadow-tertiary);
160162
--cwc-shadow-workbench: 0 0 8px 2px

‎packages/vscode/src/commands/apply-chat-response-command/apply-chat-response-command.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,8 @@ export const apply_chat_response_command = (params: {
178178
let current_content = ''
179179
try {
180180
if (fs.existsSync(sanitized_file_path)) {
181-
const document = await vscode.workspace.openTextDocument(
182-
sanitized_file_path
183-
)
181+
const document =
182+
await vscode.workspace.openTextDocument(sanitized_file_path)
184183
current_content = document.getText()
185184
}
186185
} catch (error) {

‎packages/vscode/src/commands/apply-chat-response-command/utils/preview/file-preparer.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ export const prepare_files_from_original_states = async (params: {
3535
let current_content = ''
3636
try {
3737
if (fs.existsSync(sanitized_file_path)) {
38-
const document = await vscode.workspace.openTextDocument(
39-
sanitized_file_path
40-
)
38+
const document =
39+
await vscode.workspace.openTextDocument(sanitized_file_path)
4140
current_content = document.getText()
4241
}
4342
} catch (error) {

‎packages/vscode/src/commands/apply-context-command/sources/unstaged-files-source.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ export async function handle_unstaged_files_source(
6464
const workspace_roots = workspace_provider.getWorkspaceRoots()
6565
const quick_pick_items = await Promise.all(
6666
existing_unstaged_files.map(async (file_path) => {
67-
const token_count = await workspace_provider.calculate_file_tokens(
68-
file_path
69-
)
67+
const token_count =
68+
await workspace_provider.calculate_file_tokens(file_path)
7069

7170
const formatted_token_count = display_token_count(token_count)
7271

‎packages/vscode/src/commands/find-paths-in-clipboard-command/find-paths-in-clipboard-command.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ export function find_paths_in_clipboard_command(
9797

9898
const quick_pick_items = await Promise.all(
9999
existing_paths.map(async (file_path) => {
100-
const token_count = await workspace_provider.calculate_file_tokens(
101-
file_path
102-
)
100+
const token_count =
101+
await workspace_provider.calculate_file_tokens(file_path)
103102
const formatted_token_count = display_token_count(token_count)
104103
return {
105104
label: path.basename(file_path),

‎packages/vscode/src/context/context-initialization.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,8 @@ export const context_initialization = async (
266266
for (const file_path of checked_files) {
267267
try {
268268
const file_uri = vscode.Uri.file(file_path)
269-
const content_uint8_array = await vscode.workspace.fs.readFile(
270-
file_uri
271-
)
269+
const content_uint8_array =
270+
await vscode.workspace.fs.readFile(file_uri)
272271
const content = new TextDecoder().decode(content_uint8_array)
273272

274273
let display_path: string

0 commit comments

Comments
 (0)