vscode/extensions/php
David Freer 89636b9b4c
PHP Snippets Quality of Life and Continuity (#174889)
* QoL & continuity update to existing php snippets

- Sorted snippets by snippet title for discoverability
- Removed all doc comments from non 'doc_' prefixed snippets
- Added doc_trait for continuity with other patterns
- Updated snippet prefixes
	- Add kvp to keyval
	- Prefixed fun with class_
	- Changed doc_param to doc_var
	- Qualified 'con' to 'constructor' to not be confused with const
- Updated class snippet to default the 'class' placeholder to the file's base name
- Add snippet choices for private, public, protected where appropriate
- Add an additional tab stop to end of functions for additional args/params
- Remove array kvps since arrays can be associative or just values

* Add try catch finally php snippet

* Add param php snippet

* Add php func snippets

- Add fun for a general function out of scope of class
- Add fun_anonymous for anonymous functions
- Add fun_arrow for arrow functions

* Add promotion style constructor to php snippets

* Add property snippet to php snippets

* Add spaceship snippet to php snippets

* Add goto snippet to php snippets

* Add class_const snippet to php snippets

* Add here/now doc snippets to php snippets

* Add namespace related snippets to php snippets

* Add superglobal snippets to php snippets

* Add php 8 snippets

- Add match expression
- Add Attribute snippets
  - Add sensitive parameter
  - Add attribute target
  - Add attribute with target
- Rename class_const to const
- Add Dynamic Property Class snippet
- Add enum snippets
  - Basic Enum
  - Backed Enum
  - foreach enum

* Merge master to resolve conflict

* Remove php snippets as candidates

- Remove heredoc
- Remove nowdoc
- Remove php super global snippets
- Remove namespace_path
- Remove ethis (echo $this->)
- Remove try/catch finally

* Trim snippets

---------

Co-authored-by: Rob Lourens <roblourens@gmail.com>
2023-05-18 14:46:36 -07:00
..
.vscode Restore extensions in core (#114921) 2021-01-25 17:07:56 +01:00
build Update PHP grammar from fork (#180100) 2023-04-17 18:42:57 +00:00
snippets PHP Snippets Quality of Life and Continuity (#174889) 2023-05-18 14:46:36 -07:00
syntaxes Update PHP grammar from fork (#180100) 2023-04-17 18:42:57 +00:00
.vscodeignore Restore extensions in core (#114921) 2021-01-25 17:07:56 +01:00
cgmanifest.json Bump php grammar, fix #142824, fix #116103 (#150067) 2022-05-21 00:18:25 +00:00
language-configuration.json Removes g flag from wordPatterns. 2021-05-31 19:47:57 +02:00
package.json Migrate update grammar to mjs 2022-03-01 17:24:59 -08:00
package.nls.json run prettier over extensions json files 2021-01-29 15:19:18 +01:00
yarn.lock add proper yarn.lock files 2021-02-01 14:35:52 +01:00