We welcome any quality bugfixes or contributions!
To avoid a conflict, delete the installed extension at ~/.vscode/extensions/vsmobile.cordova-tools.
- In
C:/Users/<username>/.vscode/extensions/,git clonethis repository
git clonethis repository- Run
ln -s <path to repo> ~/.vscode/extensions/vscode-cordova - You could clone it to the extensions directory if you want, but working with hidden folders in OS X can be a pain.
cdto the folder you just cloned- Run
npm install -g gulpandnpm install- You may see an error if
bufferutilorutf-8-validatefail to build. These native modules required bywsare optional and the debug adapter should work fine without them.
- You may see an error if
- Run
gulp build
In VS Code, run the launch as server launch config - it will start the adapter as a server listening on port 4712. In your test app launch.json, include this flag at the top level: "debugServer": "4712". Then you'll be able to debug the adapter in the first instance of VS Code, in its original TypeScript, using sourcemaps.
There is a set of mocha tests for the debug adapter which can be run with npm test, and a set of mocha tests for the other functionality run as part of the test launch config. Also run gulp tslint to check your code against our tslint rules.
See the project under test/testProjcet/ for a sample project that should build and compile, allow debugging of plugins and merges, and enable intellisense for plugins.
You will need to complete a Contributor License Agreement (CLA). Briefly, this agreement testifies that you are granting us permission to use the submitted change according to the terms of the project's license, and that the work being submitted is under appropriate copyright.
Please submit a Contributor License Agreement (CLA) before submitting a pull request. You may visit https://cla.microsoft.com to sign digitally. Alternatively, download the agreement (Microsoft Contribution License Agreement.docx or Microsoft Contribution License Agreement.pdf), sign, scan, and email it back to cla@microsoft.com. Be sure to include your github user name along with the agreement. Once we have received the signed CLA, we'll review the request.
Your pull request should:
- Include a clear description of the change
- Be a child commit of a reasonably recent commit in the master branch
- Requests need not be a single commit, but should be a linear sequence of commits (i.e. no merge commits in your PR)
- It is desirable, but not necessary, for the tests to pass at each commit
- Have clear commit messages
- e.g. "Refactor feature", "Fix issue", "Add tests for issue"
- Include adequate tests
- At least one test should fail in the absence of your non-test code changes. If your PR does not match this criteria, please specify why
- Tests should include reasonable permutations of the target fix/change
- Include baseline changes with your change
- Ensure there are no linting issues ("gulp tslint")
- To avoid line ending issues, set
autocrlf = inputandwhitespace = cr-at-eolin your git configuration
- VS Code complains about Q promises and mark it as problems almost everywhere
This problems caused by incorrect Intellisense Typescript version choosed for the workspace. Change the Typescript version to workspace version in the lower right corner of the VS Code window.
Much of the debug adapter is a fork of the chrome debugging extension
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
