Skip to content

Commit 4b2d7ae

Browse files
authored
Point release for May release (#5846)
* Revert "Ensure using request: launch item in launch.json for debugging sends pathmappings (#5552)" This reverts commit 1fad96f. * Update change log * Update version numbers
1 parent 3ea2782 commit 4b2d7ae

File tree

7 files changed

+257
-286
lines changed

7 files changed

+257
-286
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# Changelog
22

3+
## 2019.5.1 (30 May 2019)
34

4-
## 2019.5.0 (28 May 2019)
5+
### Fixes
6+
7+
1. Revert changes related to pathMappings in `launch.json` for `debugging` [#3568](https://github.com/Microsoft/vscode-python/issues/3568)
8+
([#5833](https://github.com/microsoft/vscode-python/issues/5833))
9+
10+
11+
## 2019.5.17059 (28 May 2019)
512

613
### Enhancements
714

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "python",
33
"displayName": "Python",
44
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.",
5-
"version": "2019.5.0",
5+
"version": "2019.5.1",
66
"languageServerVersion": "0.2.82",
77
"publisher": "ms-python",
88
"author": {

src/client/debugger/extension/configuration/resolvers/launch.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,6 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc
122122
if (debugConfiguration.pyramid) {
123123
debugConfiguration.program = (await this.configurationProviderUtils.getPyramidStartupScriptFilePath(workspaceFolder))!;
124124
}
125-
if (!debugConfiguration.pathMappings) {
126-
debugConfiguration.pathMappings = workspaceFolder ? [{
127-
localRoot: workspaceFolder.fsPath,
128-
remoteRoot: '.'
129-
}] : [];
130-
}
131-
// This is for backwards compatibility.
132-
if (debugConfiguration.localRoot && debugConfiguration.remoteRoot) {
133-
debugConfiguration.pathMappings!.push({
134-
localRoot: debugConfiguration.localRoot,
135-
remoteRoot: debugConfiguration.remoteRoot
136-
});
137-
}
138125
this.sendTelemetry(
139126
debugConfiguration.request as 'launch' | 'test',
140127
debugConfiguration

src/client/debugger/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ interface ICommonDebugArguments {
3636
// Show return values of functions while stepping.
3737
showReturnValue?: boolean;
3838
subProcess?: boolean;
39+
}
40+
export interface IKnownAttachDebugArguments extends ICommonDebugArguments {
41+
workspaceFolder?: string;
3942
// An absolute path to local directory with source.
4043
localRoot?: string;
4144
remoteRoot?: string;
4245
pathMappings?: { localRoot: string; remoteRoot: string }[];
43-
}
44-
export interface IKnownAttachDebugArguments extends ICommonDebugArguments {
45-
workspaceFolder?: string;
4646
customDebugger?: boolean;
4747
}
4848

src/test/debugger/extension/configuration/resolvers/launch.unit.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -373,16 +373,6 @@ suite('Debugging - Config Resolver Launch', () => {
373373
expect(debugConfig).to.have.property('justMyCode', testParams.expectedResult);
374374
});
375375
});
376-
test('Ensure pathMappings property is correctly derived', async () => {
377-
const pythonPath = `PythonPath_${new Date().toString()}`;
378-
const workspaceFolder = createMoqWorkspaceFolder(__dirname);
379-
const pythonFile = 'xyz.py';
380-
setupIoc(pythonPath);
381-
setupActiveEditor(pythonFile, PYTHON_LANGUAGE);
382-
const debugConfig = await debugProvider.resolveDebugConfiguration!(workspaceFolder, { localRoot: 'abc', remoteRoot: 'remoteabc' } as LaunchRequestArguments);
383-
expect(debugConfig).to.have.property('pathMappings');
384-
expect(debugConfig!.pathMappings).to.deep.equal([{ localRoot: workspaceFolder.uri.fsPath, remoteRoot: '.' }, { localRoot: 'abc', remoteRoot: 'remoteabc' }]);
385-
});
386376
async function testFixFilePathCase(isWindows: boolean, isMac: boolean, isLinux: boolean) {
387377
const pythonPath = `PythonPath_${new Date().toString()}`;
388378
const workspaceFolder = createMoqWorkspaceFolder(__dirname);

0 commit comments

Comments
 (0)