vysker / vscode-php-formatter

Visual Studio Code extension. A wrapper for the Sensiolabs PHP CS Fixer. Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible).
MIT License
94 stars 11 forks source link

Doesnt return formatted code #21

Open Tommixoft opened 7 years ago

Tommixoft commented 7 years ago
[Extension Host] PHPFormatter: Creating temp file.
extensionHost.ts:285 [Extension Host] PHPFormatter: Tempfile fd: 4
extensionHost.ts:285 [Extension Host] PHPFormatter: Tempfile name: C:\Users\Tomm\AppData\Local\Temp\phpfmt-6972Za7J6RyhqHMi.tmp
extensionHost.ts:285 [Extension Host] PHPFormatter: Writing current document content to temp file. Until VSCode will have a way of querying encoding, utf8 will be used for reading and writing.
extensionHost.ts:285 [Extension Host] PHPFormatter: Full command being executed: "D:\Darbas\Ampps\php\php.exe" "D:\Darbas\Ampps\php\php-cs-fixer.phar" fix "C:\Users\Tomm\AppData\Local\Temp\phpfmt-6972Za7J6RyhqHMi.tmp" --level=psr2 --fixers=linefeed,short_tag,indentation
extensionHost.ts:285 [Extension Host] PHPFormatter: Logging PHP-CS-Fixer command stdout result
extensionHost.ts:285 [Extension Host] PHPFormatter: Fixed all files in 0.025 seconds, 5.000 MB memory used
extensionHost.ts:285 [Extension Host] PHPFormatter: Logging PHP-CS-Fixer command stderr result
extensionHost.ts:285 [Extension Host] PHPFormatter: You are running php-cs-fixer with xdebug enabled. This has a major impact on runtime performance.
extensionHost.ts:285 [Extension Host] PHPFormatter: Reading temp file content.
extensionHost.ts:285 [Extension Host] PHPFormatter: Replacing editor content with formatted code.
extensionHost.ts:285 [Extension Host] PHPFormatter: Document successfully formatted (209 lines).

It says formatted and so on but code stays exactly the same. Looks like changes are not applied to VS editor.