Skip to content

Commit fc34ba0

Browse files
committed
Remove path mappings artifacts
1 parent 63a5598 commit fc34ba0

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/php-wasm/cli/src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ ${process.argv[0]} ${process.execArgv.join(' ')} ${process.argv[1]}
136136
useHostFilesystem(php);
137137

138138
// If xdebug, and experimental IDE are enabled,
139-
// recreate the symlink pointing to the temporary
140-
// directory and add the new IDE config.
139+
// add the new IDE config.
141140
if (hasXdebugOption && experimentalUnsafeIDEIntegrationOptions) {
142141
try {
143142
const IDEConfigName = 'PHP.wasm CLI - Listen for Xdebug';

packages/php-wasm/cli/src/xdebug-path-mappings.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ type PhpStormConfigNode = {
5656
component?: PhpStormConfigNode[];
5757
servers?: PhpStormConfigNode[];
5858
server?: PhpStormConfigNode[];
59-
path_mappings?: PhpStormConfigNode[];
60-
mapping?: PhpStormConfigNode[];
6159
configuration?: PhpStormConfigNode[];
6260
method?: PhpStormConfigNode[];
6361
};
@@ -136,7 +134,6 @@ export function updatePhpStormConfig(
136134
// is provided in `host`. The separate `port` field is ignored or misinterpreted,
137135
// so we rely solely on host: "host:port".
138136
host: `${host}:${port}`,
139-
// use_path_mappings: 'true',
140137
},
141138
};
142139

@@ -358,7 +355,7 @@ export function updateVSCodeConfig(
358355
}
359356

360357
/**
361-
* Implement necessary parameters and path mappings in IDE configuration files.
358+
* Implement necessary parameters in IDE configuration files.
362359
*
363360
* @param name The configuration name.
364361
* @param mounts The PHP.wasm CLI mount options.
@@ -452,7 +449,7 @@ export async function addXdebugIDEConfig({
452449
}
453450

454451
/**
455-
* Remove stale parameters and path mappings in IDE configuration files.
452+
* Remove stale parameters in IDE configuration files.
456453
*
457454
* @param name The configuration name.
458455
* @param cwd The current working directory.

0 commit comments

Comments
 (0)