Skip to content

Commit 6133ad2

Browse files
committed
Bump editor version to 1.853.0 and fix diff editor tab detection by using URIs instead of file paths
1 parent 3257d6e commit 6133ad2

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "The fastest way to code with AI (CWC)",
5-
"version": "1.852.0",
5+
"version": "1.853.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

apps/editor/src/commands/apply-chat-response-command/utils/preview/vscode-ui.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ export let response_preview_promise_resolve:
99
export const close_preview_diff_editors = async (
1010
prepared_files: PreparedFile[]
1111
): Promise<void> => {
12-
const temp_file_paths = new Set(prepared_files.map((f) => f.temp_file_path))
12+
const temp_uris = new Set(
13+
prepared_files.map((f) => vscode.Uri.file(f.temp_file_path).toString())
14+
)
1315
const promises: Thenable<boolean>[] = []
1416

1517
for (const tabGroup of vscode.window.tabGroups.all) {
1618
for (const tab of tabGroup.tabs) {
1719
if (
1820
tab.input instanceof vscode.TabInputTextDiff &&
19-
temp_file_paths.has(tab.input.original.fsPath)
21+
temp_uris.has(tab.input.original.toString())
2022
) {
2123
promises.push(vscode.window.tabGroups.close(tab, true))
2224
}

0 commit comments

Comments
 (0)