File tree Expand file tree Collapse file tree 4 files changed +17
-11
lines changed
Expand file tree Collapse file tree 4 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## [ Unreleased]
88
9+ ## [ 0.0.7] - 2019-06-21
10+ ### Changed
11+ - Description for some configurations
12+ - Code cleanup
13+
914## [ 0.0.6] - 2019-06-19
1015### Added
1116- Extension Icon
@@ -32,7 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3237## [ 0.0.1] - 2019-06-19
3338- Initial release
3439
35- [ Unreleased ] : https://github.com/higoka/php-cs-fixer/compare/v0.0.6...HEAD
40+ [ Unreleased ] : https://github.com/higoka/php-cs-fixer/compare/v0.0.7...HEAD
41+ [ 0.0.7 ] : https://github.com/higoka/php-cs-fixer/releases/tag/v0.0.7
3642[ 0.0.6 ] : https://github.com/higoka/php-cs-fixer/releases/tag/v0.0.6
3743[ 0.0.5 ] : https://github.com/higoka/php-cs-fixer/releases/tag/v0.0.5
3844[ 0.0.4 ] : https://github.com/higoka/php-cs-fixer/releases/tag/v0.0.4
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ For more information please visit: https://cs.symfony.com/
1313
1414## Configuration
1515
16- * ` php-cs-fixer.executable ` : Path to the php-cs-fixer executable.
17- * ` php-cs-fixer.configFile ` : Path to the php-cs-fixer config.
18- * ` php-cs-fixer.pathMode ` : Appends the "--path-mode" parameter.
16+ * ` php-cs-fixer.executable ` : Path to php-cs-fixer executable.
17+ * ` php-cs-fixer.configFile ` : Path to php-cs-fixer config.
18+ * ` php-cs-fixer.pathMode ` : Set "--path-mode" parameter.
1919* ` php-cs-fixer.onSave ` : Execute command on save.
2020
2121## Error Handling
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function activate(context) {
88
99 const config = vscode . workspace . getConfiguration ( 'php-cs-fixer' )
1010
11- context . subscriptions . push ( vscode . commands . registerCommand ( 'php-cs-fixer.fix' , function ( ) {
11+ context . subscriptions . push ( vscode . commands . registerCommand ( 'php-cs-fixer.fix' , ( ) => {
1212 const param = [ ]
1313
1414 if ( config . executable ) {
@@ -27,7 +27,7 @@ function activate(context) {
2727
2828 // console.log(param.join(' '))
2929
30- exec ( param . join ( ' ' ) , function ( err , stdout , stderr ) {
30+ exec ( param . join ( ' ' ) , ( err , stdout , stderr ) => {
3131 if ( err ) {
3232 vscode . window . showErrorMessage ( 'PHP-CS-Fixer: An error occurred.' )
3333 throw err
@@ -37,7 +37,7 @@ function activate(context) {
3737 } )
3838 } ) )
3939
40- context . subscriptions . push ( vscode . workspace . onWillSaveTextDocument ( function ( e ) {
40+ context . subscriptions . push ( vscode . workspace . onWillSaveTextDocument ( ( e ) => {
4141 if ( e . document . languageId === 'php' && config . onSave ) {
4242 e . waitUntil ( vscode . commands . executeCommand ( 'php-cs-fixer.fix' ) )
4343 }
Original file line number Diff line number Diff line change 22 "name" : " php-cs-fixer" ,
33 "displayName" : " PHP-CS-Fixer" ,
44 "description" : " Integrates PHP-CS-Fixer into Visual Studio Code." ,
5- "version" : " 0.0.6 " ,
5+ "version" : " 0.0.7 " ,
66 "publisher" : " higoka" ,
77 "author" : {
88 "name" : " higoka" ,
3939 "title" : " PHP-CS-Fixer" ,
4040 "properties" : {
4141 "php-cs-fixer.executable" : {
42- "description" : " Path to the php-cs-fixer executable." ,
42+ "description" : " Path to php-cs-fixer executable." ,
4343 "type" : " string" ,
4444 "default" : " /usr/local/bin/php-cs-fixer"
4545 },
4646 "php-cs-fixer.configFile" : {
47- "description" : " Path to the php-cs-fixer config." ,
47+ "description" : " Path to php-cs-fixer config." ,
4848 "type" : " string" ,
4949 "default" : " "
5050 },
5151 "php-cs-fixer.pathMode" : {
52- "description" : " Appends the \" --path-mode\" parameter" ,
52+ "description" : " Set \" --path-mode\" parameter. " ,
5353 "type" : " string" ,
5454 "enum" : [
5555 " override" ,
You can’t perform that action at this time.
0 commit comments