Skip to content

Commit

Permalink
Point release for May release (#5846)
Browse files Browse the repository at this point in the history
* Revert "Ensure using request: launch item in launch.json for debugging sends pathmappings (#5552)"

This reverts commit 1fad96f.

* Update change log

* Update version numbers
  • Loading branch information
DonJayamanne authored May 30, 2019
1 parent 3ea2782 commit 4b2d7ae
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 286 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Changelog

## 2019.5.1 (30 May 2019)

## 2019.5.0 (28 May 2019)
### Fixes

1. Revert changes related to pathMappings in `launch.json` for `debugging` [#3568](https:/Microsoft/vscode-python/issues/3568)
([#5833](https:/microsoft/vscode-python/issues/5833))


## 2019.5.17059 (28 May 2019)

### Enhancements

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "python",
"displayName": "Python",
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.",
"version": "2019.5.0",
"version": "2019.5.1",
"languageServerVersion": "0.2.82",
"publisher": "ms-python",
"author": {
Expand Down
13 changes: 0 additions & 13 deletions src/client/debugger/extension/configuration/resolvers/launch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,6 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc
if (debugConfiguration.pyramid) {
debugConfiguration.program = (await this.configurationProviderUtils.getPyramidStartupScriptFilePath(workspaceFolder))!;
}
if (!debugConfiguration.pathMappings) {
debugConfiguration.pathMappings = workspaceFolder ? [{
localRoot: workspaceFolder.fsPath,
remoteRoot: '.'
}] : [];
}
// This is for backwards compatibility.
if (debugConfiguration.localRoot && debugConfiguration.remoteRoot) {
debugConfiguration.pathMappings!.push({
localRoot: debugConfiguration.localRoot,
remoteRoot: debugConfiguration.remoteRoot
});
}
this.sendTelemetry(
debugConfiguration.request as 'launch' | 'test',
debugConfiguration
Expand Down
6 changes: 3 additions & 3 deletions src/client/debugger/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ interface ICommonDebugArguments {
// Show return values of functions while stepping.
showReturnValue?: boolean;
subProcess?: boolean;
}
export interface IKnownAttachDebugArguments extends ICommonDebugArguments {
workspaceFolder?: string;
// An absolute path to local directory with source.
localRoot?: string;
remoteRoot?: string;
pathMappings?: { localRoot: string; remoteRoot: string }[];
}
export interface IKnownAttachDebugArguments extends ICommonDebugArguments {
workspaceFolder?: string;
customDebugger?: boolean;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,16 +373,6 @@ suite('Debugging - Config Resolver Launch', () => {
expect(debugConfig).to.have.property('justMyCode', testParams.expectedResult);
});
});
test('Ensure pathMappings property is correctly derived', async () => {
const pythonPath = `PythonPath_${new Date().toString()}`;
const workspaceFolder = createMoqWorkspaceFolder(__dirname);
const pythonFile = 'xyz.py';
setupIoc(pythonPath);
setupActiveEditor(pythonFile, PYTHON_LANGUAGE);
const debugConfig = await debugProvider.resolveDebugConfiguration!(workspaceFolder, { localRoot: 'abc', remoteRoot: 'remoteabc' } as LaunchRequestArguments);
expect(debugConfig).to.have.property('pathMappings');
expect(debugConfig!.pathMappings).to.deep.equal([{ localRoot: workspaceFolder.uri.fsPath, remoteRoot: '.' }, { localRoot: 'abc', remoteRoot: 'remoteabc' }]);
});
async function testFixFilePathCase(isWindows: boolean, isMac: boolean, isLinux: boolean) {
const pythonPath = `PythonPath_${new Date().toString()}`;
const workspaceFolder = createMoqWorkspaceFolder(__dirname);
Expand Down
Loading

0 comments on commit 4b2d7ae

Please sign in to comment.