Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
pieandcakes committed Jan 17, 2018
2 parents 3f62c3d + be11d40 commit cdab065
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Extension/src/Debugger/copyScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Copyright (c) Microsoft Corporation. All Rights Reserved.
* See 'LICENSE' in the project root for license information.
* ------------------------------------------------------------------------------------------ */
'use strict';

/**
* This file is used for packaging the application and should not be referenced
Expand Down
7 changes: 6 additions & 1 deletion Extension/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ async function offlineInstallation(): Promise<void> {
setInstallationStage('makeOfflineBinariesExecutable');
await makeOfflineBinariesExecutable(info);

setInstallationStage('removeUnnecessaryFile');
await removeUnnecessaryFile();

setInstallationStage('rewriteManifest');
await rewriteManifest();

Expand Down Expand Up @@ -147,7 +150,9 @@ function removeUnnecessaryFile(): Promise<void> {
let sourcePath: string = util.getDebugAdaptersPath("bin/OpenDebugAD7.exe.config");
if (fs.existsSync(sourcePath)) {
fs.rename(sourcePath, util.getDebugAdaptersPath("bin/OpenDebugAD7.exe.config.unused"), (err: NodeJS.ErrnoException) => {
getOutputChannelLogger().appendLine("removeUnnecessaryFile: fs.rename failed");
if (err) {
getOutputChannelLogger().appendLine(`ERROR: fs.rename failed with "${err.message}". Delete ${sourcePath} manually to enable debugging.`);
}
});
}
}
Expand Down

0 comments on commit cdab065

Please sign in to comment.