File tree Expand file tree Collapse file tree
src/commands/apply-chat-response-command/utils/preview Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ export let response_preview_promise_resolve:
99export 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 }
You can’t perform that action at this time.
0 commit comments