Skip to content

Fixes #191. Add Configuration doesn't show PHP - #194

Closed
blockscoped wants to merge 3 commits into
xdebug:mainfrom
blockscoped:master
Closed

Fixes #191. Add Configuration doesn't show PHP#194
blockscoped wants to merge 3 commits into
xdebug:mainfrom
blockscoped:master

Conversation

@blockscoped

Copy link
Copy Markdown

When selecting Add Configuration in a VS Code launch.json file PHP is no longer shown as an option. The new configurationSnippets resolves this.

When selecting `Add Configuration` in a VS Code launch.json file PHP is no longer shown as an option. The new `configurationSnippets` resolves this.
@codecov

codecov Bot commented Oct 5, 2017

Copy link
Copy Markdown

Codecov Report

Merging #194 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #194   +/-   ##
=======================================
  Coverage   76.34%   76.34%           
=======================================
  Files           2        2           
  Lines          93       93           
  Branches       17       17           
=======================================
  Hits           71       71           
  Misses         14       14           
  Partials        8        8

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 2920b51...2def94d. Read the comment docs.

Comment thread package.json
}
}
},
"initialConfigurations": [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove initialConfigurations?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can reserve initialConfigurations and add configurationSnippets like the third suggestion in #318.

@tom-shan tom-shan Apr 3, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw

        "configurationSnippets": [
          {
            "label": "PHP: Listen for XDebug",
            "description": "Listening for XDebug",
            "body": {
              "name": "Listen for XDebug",
              "type": "php",
              "request": "launch",
              "port": 9000
            }
          },
          {
            "label": "PHP: Launch currently open script",
            "description": "Launch currently open script",
            "body": {
              "name": "Launch currently open script",
              "type": "php",
              "request": "launch",
              "program": "^\"${1:\\${file\\}}\"",
              "cwd": "^\"${2:\\${fileDirname\\}}\"",
              "port": 9000
            }
          }
        ]

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

zobo commented Feb 8, 2021

Copy link
Copy Markdown
Contributor

I tried to apply this PR to main, but can’t seem to get it working. The snippets that show up in launch.json do not include these defined here. I tried to build and install the extension locally. The structure also seem similar to other adapters of the same kind. Any ideas?

@zobo

zobo commented Mar 23, 2021

Copy link
Copy Markdown
Contributor

Due to larger refactors of the codebase I decided to reimplement the fix with additional changes. Moved the code to #527.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants