Skip to content

Commit 5c78b14

Browse files
committed
Shorten temporary file naming prefix from "cwc-preview" to "cwc"
1 parent d1f5e3a commit 5c78b14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/vscode/src/commands/apply-chat-response-command/utils/preview

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const prepare_files_from_original_states = async (params: {
5353
.createHash('md5')
5454
.update(sanitized_file_path)
5555
.digest('hex')
56-
const temp_filename = `cwc-preview-${hash}.tmp`
56+
const temp_filename = `cwc-${hash}.tmp`
5757
const temp_file_path = path.join(os.tmpdir(), temp_filename)
5858

5959
const original_content_for_diff = state.file_path_to_restore
@@ -109,7 +109,7 @@ export const prepare_files_from_original_states = async (params: {
109109
.createHash('md5')
110110
.update(restored_sanitized_file_path)
111111
.digest('hex')
112-
const restored_temp_filename = `cwc-preview-${restored_hash}.tmp`
112+
const restored_temp_filename = `cwc-${restored_hash}.tmp`
113113
const restored_temp_file_path = path.join(
114114
os.tmpdir(),
115115
restored_temp_filename

0 commit comments

Comments
 (0)