Merge branch 'master' into sabre/event-5.0.3-#166.1.0
commit
2c059c905a
|
@ -40,9 +40,11 @@ I recommend to disable VS Code's built-in PHP IntelliSense by setting `php.sugge
|
||||||
### Column-accurate error reporting
|
### Column-accurate error reporting
|
||||||

|

|
||||||
|
|
||||||
### Format code
|
### Code style linting
|
||||||
Please use a dedicated extension like [PHP CodeSniffer](https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs).
|
Please use a dedicated extension like [PHP CodeSniffer](https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs).
|
||||||
|
|
||||||
|
### Format code
|
||||||
|
Please use a dedicated extension like [PHP CS Fixer](https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer).
|
||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
- Rename
|
- Rename
|
||||||
|
@ -54,7 +56,7 @@ Clone whole repository and in root directory execute:
|
||||||
```bash
|
```bash
|
||||||
composer install
|
composer install
|
||||||
npm install
|
npm install
|
||||||
npm run compile
|
npm run build
|
||||||
code .
|
code .
|
||||||
```
|
```
|
||||||
The last command will open the folder in VS Code. Hit `F5` to launch an Extension Development Host with the extension.
|
The last command will open the folder in VS Code. Hit `F5` to launch an Extension Development Host with the extension.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"require": {
|
"require": {
|
||||||
"felixfbecker/language-server": "v5.3.7"
|
"felixfbecker/language-server": "v5.4.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"parse-stubs": "LanguageServer\\ComposerScripts::parseStubs",
|
"parse-stubs": "LanguageServer\\ComposerScripts::parseStubs",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "80898332fb242b9c923adfeb741b3c0c",
|
"content-hash": "384d25adb13c4fee0e9cbbd7196b7c75",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "composer/ca-bundle",
|
"name": "composer/ca-bundle",
|
||||||
|
@ -265,6 +265,50 @@
|
||||||
],
|
],
|
||||||
"time": "2017-04-03T19:08:52+00:00"
|
"time": "2017-04-03T19:08:52+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "composer/xdebug-handler",
|
||||||
|
"version": "1.1.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/composer/xdebug-handler.git",
|
||||||
|
"reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/c919dc6c62e221fc6406f861ea13433c0aa24f08",
|
||||||
|
"reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": "^5.3.2 || ^7.0",
|
||||||
|
"psr/log": "^1.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Composer\\XdebugHandler\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "John Stevenson",
|
||||||
|
"email": "john-stevenson@blueyonder.co.uk"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Restarts a process without xdebug.",
|
||||||
|
"keywords": [
|
||||||
|
"Xdebug",
|
||||||
|
"performance"
|
||||||
|
],
|
||||||
|
"time": "2018-04-11T15:42:36+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "felixfbecker/advanced-json-rpc",
|
"name": "felixfbecker/advanced-json-rpc",
|
||||||
"version": "v3.0.1",
|
"version": "v3.0.1",
|
||||||
|
@ -308,26 +352,27 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "felixfbecker/language-server",
|
"name": "felixfbecker/language-server",
|
||||||
"version": "v5.3.7",
|
"version": "v5.4.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/felixfbecker/php-language-server.git",
|
"url": "https://github.com/felixfbecker/php-language-server.git",
|
||||||
"reference": "e10896f90554c2f95b052c09fbc3685e84fb9a60"
|
"reference": "02b7d2fdb6ec81badef53668d3693412bd00b748"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/felixfbecker/php-language-server/zipball/e10896f90554c2f95b052c09fbc3685e84fb9a60",
|
"url": "https://api.github.com/repos/felixfbecker/php-language-server/zipball/02b7d2fdb6ec81badef53668d3693412bd00b748",
|
||||||
"reference": "e10896f90554c2f95b052c09fbc3685e84fb9a60",
|
"reference": "02b7d2fdb6ec81badef53668d3693412bd00b748",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer/composer": "^1.3",
|
"composer/xdebug-handler": "^1.0",
|
||||||
"felixfbecker/advanced-json-rpc": "^3.0.0",
|
"felixfbecker/advanced-json-rpc": "^3.0.0",
|
||||||
"jetbrains/phpstorm-stubs": "dev-master",
|
"jetbrains/phpstorm-stubs": "dev-master",
|
||||||
"microsoft/tolerant-php-parser": "0.0.*",
|
"microsoft/tolerant-php-parser": "0.0.*",
|
||||||
"netresearch/jsonmapper": "^1.0",
|
"netresearch/jsonmapper": "^1.0",
|
||||||
"php": "^7.0",
|
"php": "^7.0",
|
||||||
"phpdocumentor/reflection-docblock": "^4.0.0",
|
"phpdocumentor/reflection-docblock": "^4.0.0",
|
||||||
|
"psr/log": "^1.0",
|
||||||
"sabre/event": "^5.0",
|
"sabre/event": "^5.0",
|
||||||
"sabre/uri": "^2.0",
|
"sabre/uri": "^2.0",
|
||||||
"webmozart/glob": "^4.1",
|
"webmozart/glob": "^4.1",
|
||||||
|
@ -374,7 +419,7 @@
|
||||||
"studio",
|
"studio",
|
||||||
"visual"
|
"visual"
|
||||||
],
|
],
|
||||||
"time": "2018-02-28T19:21:04+00:00"
|
"time": "2018-03-11T20:50:12+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "jetbrains/phpstorm-stubs",
|
"name": "jetbrains/phpstorm-stubs",
|
||||||
|
@ -477,16 +522,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "microsoft/tolerant-php-parser",
|
"name": "microsoft/tolerant-php-parser",
|
||||||
"version": "v0.0.9",
|
"version": "v0.0.10",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Microsoft/tolerant-php-parser.git",
|
"url": "https://github.com/Microsoft/tolerant-php-parser.git",
|
||||||
"reference": "59351ce2a6b32c6cafc667dc20a48da36f38a482"
|
"reference": "694b1538bb73fdcf1b8ea8e20f5acd03aae594e9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Microsoft/tolerant-php-parser/zipball/59351ce2a6b32c6cafc667dc20a48da36f38a482",
|
"url": "https://api.github.com/repos/Microsoft/tolerant-php-parser/zipball/694b1538bb73fdcf1b8ea8e20f5acd03aae594e9",
|
||||||
"reference": "59351ce2a6b32c6cafc667dc20a48da36f38a482",
|
"reference": "694b1538bb73fdcf1b8ea8e20f5acd03aae594e9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -514,7 +559,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
|
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
|
||||||
"time": "2018-02-14T18:39:41+00:00"
|
"time": "2018-03-18T03:12:58+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "netresearch/jsonmapper",
|
"name": "netresearch/jsonmapper",
|
||||||
|
|
|
@ -93,7 +93,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
|
||||||
// Options to control the language client
|
// Options to control the language client
|
||||||
const clientOptions: LanguageClientOptions = {
|
const clientOptions: LanguageClientOptions = {
|
||||||
// Register the server for php documents
|
// Register the server for php documents
|
||||||
documentSelector: ['php'],
|
documentSelector: [
|
||||||
|
{ scheme: 'file', language: 'php' },
|
||||||
|
{ scheme: 'untitled', language: 'php' }
|
||||||
|
],
|
||||||
uriConverters: {
|
uriConverters: {
|
||||||
// VS Code by default %-encodes even the colon after the drive letter
|
// VS Code by default %-encodes even the colon after the drive letter
|
||||||
// NodeJS handles it much better
|
// NodeJS handles it much better
|
||||||
|
|
Loading…
Reference in New Issue