File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ CodeChat Editor. If not, see
1919# Changelog
2020
2121- [ Github master] ( https://github.com/bjones1/CodeChat_Editor ) :
22+ - Correctly handle file not found in VSCode.
2223 - Correct filename handling on Windows.
2324- v0.1.7, 2025-Jan-08:
2425 - Fixed hyperlink navigation.
Original file line number Diff line number Diff line change @@ -433,14 +433,20 @@ export const activate = (context: vscode.ExtensionContext) => {
433433 const current_file = value as string ;
434434 vscode . workspace
435435 . openTextDocument ( current_file )
436- . then ( ( document ) => {
437- ignore_active_editor_change = true ;
438- vscode . window . showTextDocument (
439- document ,
440- current_editor ?. viewColumn
441- ) ;
442- send_result ( id ) ;
443- } ) ;
436+ . then (
437+ ( document ) => {
438+ ignore_active_editor_change = true ;
439+ vscode . window . showTextDocument (
440+ document ,
441+ current_editor ?. viewColumn
442+ ) ;
443+ send_result ( id ) ;
444+ } ,
445+ ( reason ) =>
446+ send_result ( id , {
447+ Err : `Error: unable to open file ${ current_file } : ${ reason } ` ,
448+ } )
449+ ) ;
444450 break ;
445451 }
446452
You can’t perform that action at this time.
0 commit comments