File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
* Copyright (c) Microsoft Corporation. All Rights Reserved.
3
3
* See 'LICENSE' in the project root for license information.
4
4
* ------------------------------------------------------------------------------------------ */
5
+ 'use strict' ;
5
6
6
7
/**
7
8
* This file is used for packaging the application and should not be referenced
Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ async function offlineInstallation(): Promise<void> {
78
78
setInstallationStage ( 'makeOfflineBinariesExecutable' ) ;
79
79
await makeOfflineBinariesExecutable ( info ) ;
80
80
81
+ setInstallationStage ( 'removeUnnecessaryFile' ) ;
82
+ await removeUnnecessaryFile ( ) ;
83
+
81
84
setInstallationStage ( 'rewriteManifest' ) ;
82
85
await rewriteManifest ( ) ;
83
86
@@ -147,7 +150,9 @@ function removeUnnecessaryFile(): Promise<void> {
147
150
let sourcePath : string = util . getDebugAdaptersPath ( "bin/OpenDebugAD7.exe.config" ) ;
148
151
if ( fs . existsSync ( sourcePath ) ) {
149
152
fs . rename ( sourcePath , util . getDebugAdaptersPath ( "bin/OpenDebugAD7.exe.config.unused" ) , ( err : NodeJS . ErrnoException ) => {
150
- getOutputChannelLogger ( ) . appendLine ( "removeUnnecessaryFile: fs.rename failed" ) ;
153
+ if ( err ) {
154
+ getOutputChannelLogger ( ) . appendLine ( `ERROR: fs.rename failed with "${ err . message } ". Delete ${ sourcePath } manually to enable debugging.` ) ;
155
+ }
151
156
} ) ;
152
157
}
153
158
}
You can’t perform that action at this time.
0 commit comments