Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 3 commits into from

Conversation

blockscoped
Copy link

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
Copy link

codecov bot commented Oct 5, 2017

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.

@@ -188,20 +188,28 @@
}
}
},
"initialConfigurations": [
Copy link
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

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.

Copy link

@tom-shan tom-shan Apr 3, 2020

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
Copy link
Contributor

zobo commented Feb 8, 2021

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
Copy link
Contributor

zobo commented Mar 23, 2021

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