Skip to content

feat: implement longest prefix matching for pathMappings (closes #331) - #363

Merged
zobo merged 2 commits into
xdebug:nextfrom
bjoluc:master
Feb 6, 2021
Merged

feat: implement longest prefix matching for pathMappings (closes #331)#363
zobo merged 2 commits into
xdebug:nextfrom
bjoluc:master

Conversation

@bjoluc

@bjoluc bjoluc commented Jun 14, 2019

Copy link
Copy Markdown
Contributor

I decided to approach #331 and it turned out to be only a minor change. I also added longest prefix matching for the client to debugger mapping as there are use cases for this as well and it does not affect the existing mapping behavior (unless in actual use cases in which the change is most certainly welcome).

@bjoluc

bjoluc commented Jun 14, 2019

Copy link
Copy Markdown
Contributor Author

Hm, the Travis builds fail to install Xdebug. @felixfbecker Do you have any idea why?

robberphex pushed a commit to robberphex/vscode-php-debug that referenced this pull request Jun 22, 2019
@killua99

killua99 commented Apr 1, 2020

Copy link
Copy Markdown

Activating this.

Shall we take a look if this could be implemented ? this case scenario is quite common for WordPress development often wp-content is on its own and the WordPress folder maps differently.

@felixfbecker
felixfbecker changed the base branch from master to main December 21, 2020 20:20
@zobo

zobo commented Feb 3, 2021

Copy link
Copy Markdown
Contributor

Hi @bjoluc . Can you rebase this onto main? I'll have a fresh look at it then.

@bjoluc

bjoluc commented Feb 4, 2021

Copy link
Copy Markdown
Contributor Author

Sure, thanks!

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #363 (9e7e54b) into main (fa881ce) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #363   +/-   ##
=======================================
  Coverage   66.72%   66.72%           
=======================================
  Files           6        6           
  Lines        1070     1070           
  Branches      168      170    +2     
=======================================
  Hits          714      714           
  Misses        356      356           
Impacted Files Coverage Δ
src/paths.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa881ce...9e7e54b. Read the comment docs.

Comment thread src/test/paths.ts
Comment thread src/test/paths.ts
@bjoluc
bjoluc requested a review from zobo February 5, 2021 10:59
@zobo

zobo commented Feb 5, 2021

Copy link
Copy Markdown
Contributor

Looks great. I'll to another round of tests here and merge it then. Thanks!

@zobo
zobo changed the base branch from main to next February 6, 2021 09:09
@zobo
zobo merged commit 8ce0e35 into xdebug:next Feb 6, 2021
zobo pushed a commit that referenced this pull request Feb 6, 2021
…#363)

* fix: implement longest prefix matching for pathMappings (closes #331)

* test: add test cases for server path longest prefix matching

Based on the test cases over at
robberphex/vscode-php-debug@729be1d. Thanks @robberphex!
zobo pushed a commit that referenced this pull request Feb 6, 2021
…#363)

* fix: implement longest prefix matching for pathMappings (closes #331)

* test: add test cases for server path longest prefix matching

Based on the test cases over at
robberphex/vscode-php-debug@729be1d. Thanks @robberphex!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants