Commit graph

230 commits

Author SHA1 Message Date
Robo b5a6aa14a8
feat: switch to npm as default package manager (#226927)
* feat: move from yarn to npm

* chore: skip yarn.lock files

* fix: playwright download

* chore: fix compile and hygiene

* chore: bump vsce@2.17.0

Refs 8b49e9dfdf

* test: update results for bat and sh colorizer tests

* fix: add missing lock files for windows

* fix: switch to legacy-peer-deps

* chore: update markdown-it@14.1.0

Refs 737c95a129

esbuild step in extensions-ci-pr was previously using markdown-it
from root which had userland punycode and was able to compile successfully.

* ci: increase pr timeout for windows integration tests

* chore: fix product build

* build: ignore extension dev dependency for rcedit

* build: fix working directory inside container

* build: fix dependency generation

* npm: update dependencies

* ci: use global npmrc

* ci: update cache

* ci: setup global npmrc for private npm auth

* build: fix extension bundling

* chore: sync npm dependencies

* ci: debug env variables for container

* ci: fix win32 cli pipeline

* build: fix npmrc config usage for build/ and remote/ dirs

* fix: windows build

* fix: container builds

* fix: markdown-language-features tests and bundling

```
[03:58:22] Error: Command failed: /Users/demohan/.nvm/versions/node/v20.15.1/bin/node /Users/demohan/github/vscode/extensions/markdown-language-features/esbuild-notebook.js --outputRoot /Users/demohan/github/vscode/.build/extensions/markdown-language-features
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds userland package based on beed9aee2c

* fix: container builds for distro

* chore: update yarn occurrences

* fixup! chore: bump vsce@2.17.0

Uses the closest version to `main` branch that does not
include d3cc84cdec
while still having the fix 8b49e9dfdf

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: throw error when yarn is used for installation

* chore: add review feedback

* chore: switch exec => run where needed

* chore: npm sync dependencies

* fix: markdown-language-features bundling

```
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds missing userland package based on markdown-it/markdown-it@beed9ae,
can be removed once we update markdown-it >= 14.1.0

* ci: rename no-yarn-lock-changes.yml

* chore: sync npm dependencies

* ci: restore no-yarn-lock-changes.yml

We can disable it in a separate PR to keep the required
checks happy and also need workflow edit perms.

* chore: sync npm dependencies

* ci: rebuild cache

* ci: fix no-package-lock-changes.yml

* chore: bump distro

* chore: rm yarn.lock files

* chore: rm yarn.lock files without dependencies

* chore: add vscode-selfhost-import-aid to postinstall dirs

* chore: bump distro
2024-09-06 22:18:02 +09:00
Sandeep Somavarapu 1e0580ec23
Use categories for builtin extensions groups (#202453)
* support grouping of extensions

* remove grouping

* reuse categories parsing

* cleanup

* fix tests
2024-01-14 18:19:29 +01:00
Rob Lourens a8eda33032
Fix invalid php snippet (#192246)
Fix #189561
2023-09-06 02:13:03 +02:00
Henning Dieterichs fd63cf62b9
Merge branch 'main' into singleLineDeindent 2023-07-07 20:30:51 +02:00
Alex Ross 9cf00f5cd8
Update cgmanifest for php grammar (#183190) 2023-05-23 13:52:42 +02:00
Rob Lourens 047b9cd0f5
Restore preexisting php snippets (#182929)
That shouldn't have been deleted in #174889
And also bring back one constructor snippet
2023-05-19 02:17:56 +02:00
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
KapitanOczywisty 06401b39b1
Update PHP grammar from fork (#180100) 2023-04-17 18:42:57 +00:00
Stephen Sigwart 10fe0823a3
Merge branch 'main' into singleLineDeindent 2022-10-27 08:19:18 -04:00
Harald Kirschner ea5b244abd
File snippets for HTML and PHP (#161881)
* Adding file snippets for HTML and PHP to start small.

* Adding TS
2022-09-27 08:15:57 -07:00
Stephen Sigwart 16f501ee33 Fix single line if/else and loop indentation 2022-06-04 23:55:58 -04:00
Rob Lourens 3649387f3f
Bump php grammar, fix #142824, fix #116103 (#150067) 2022-05-21 00:18:25 +00:00
Matt Bierner e214493d0c
Migrate update grammar to mjs 2022-03-01 17:24:59 -08:00
Rob Lourens 1f015b2382 Update PHP grammar 2022-01-14 16:28:13 -08:00
KapitanOczywisty 01e9eb59a7
Fix PHP update-grammar.js 2022-01-13 12:05:28 +01:00
Alex Ross 95dcb89a92
Update grammars 2021-12-07 15:12:01 +01:00
Alex Ross dd4fd68940
Update grammars 2021-08-10 17:06:42 +02:00
Logan Ramos 63fad00228
Fix misspelling of parameters 2021-07-14 10:48:12 -04:00
Alex Ross 57a760e71f
Update grammars 2021-06-11 10:11:40 +02:00
Henning Dieterichs dcf81c6265
Removes g flag from wordPatterns. 2021-05-31 19:47:57 +02:00
Henning Dieterichs a1af8aa651
Refactors calls to languages.setLanguageConfiguration to declarative descriptions in language-configuration.json. This fixes #98621. 2021-05-17 09:12:01 +02:00
Rob Lourens c22fad1fa4 Fix php autoindent with ])
Fix #122899
2021-05-04 15:06:52 -07:00
Alex Ross df15c8e832
Update grammars 2021-05-04 13:42:19 +02:00
KapitanOczywisty 50ce190203
Update PHP grammar 2021-04-01 13:35:07 +02:00
João Moreno c3b556727e
fix update-grammars script 2021-02-02 12:30:08 +01:00
João Moreno 03da2de889 add proper yarn.lock files 2021-02-01 14:35:52 +01:00
João Moreno ec805db5ed
add repository field to extensions package.json 2021-01-29 15:30:45 +01:00
João Moreno 9a5d14e307
run prettier over extensions json files 2021-01-29 15:19:18 +01:00
João Moreno 3b03189afa
Restore extensions in core (#114921)
* bring back grammar extensions

* fix hygiene

* Revert "pull themes from the marketplace"

This reverts commit 0738f76dac.
2021-01-25 17:07:56 +01:00
João Moreno bc7d3c9ea6
remove grammar extensions 2021-01-15 12:35:17 +01:00
Rob Lourens b3d57e69b0 Update PHP grammar, fix #113185 2021-01-12 15:41:23 -08:00
Alex Ross 4301777727 Update grammars 2020-12-14 15:50:30 +01:00
Connor Peet f4e49a5f3a
php: revert break deindent behavior
Fixes https://github.com/microsoft/vscode/issues/104836
2020-11-04 15:40:46 -08:00
ChaseKnowlden e8760a5d6c Fix capitalization of GitHub org 2020-09-17 11:43:03 +02:00
Alex Ross 5cd1eff604 Update grammars 2020-09-07 16:47:30 +02:00
Alex Ross 893314330c Update grammars 2020-08-19 16:00:28 +02:00
Matt Bierner 040034f7ae Update colorizer baselines 2020-05-26 16:22:50 -07:00
Martin Aeschlimann d5e12a12dd Use code-snippet suffix for extension snippets. Fixes #94625 2020-04-08 10:12:23 +02:00
Rob Lourens ddebb29935 Update PHP grammar, fix #88441 2020-04-05 08:03:27 -07:00
Alex Ross efa12b2f49 Update grammars 2020-02-03 13:01:47 +01:00
Miguel Solorio 666fcc0d62 Fix #88418, update number color for color contrast 2020-01-21 10:23:18 -08:00
Martin Aeschlimann 18bab626b9 [html] issues caused by HTML grammar associating '<' with JS. Fixes #86998 2019-12-20 16:27:22 +01:00
Alex Ross 54421ea4fa Update PHP grammar
Fixes #85132
2019-11-20 09:46:24 +00:00
Alex Ross a0bc43dd73 Update grammars 2019-10-21 11:21:03 +02:00
Rob Lourens 3e1276cb51
Merge pull request #82377 from microsoft/fix/php-custom-tags
php - fix custom tags appearing invalid
2019-10-14 16:00:04 -07:00
Connor Peet 78fd1e5ec2
php - fix break statement not reducing indent level
Fixes https://github.com/microsoft/vscode/issues/57964
2019-10-11 13:36:36 -07:00
Connor Peet b6b011b294
php - increment indentation for inline php tags
Fixes https://github.com/microsoft/vscode/issues/44137
2019-10-11 11:56:32 -07:00
Connor Peet 867bcaee0d
php - fix identation drifting on empty single-long blocks
Fixes https://github.com/microsoft/vscode/issues/34424
2019-10-11 11:22:13 -07:00
Connor Peet f840384927
php - fix custom tags appearing invalid
Fixes https://github.com/microsoft/vscode/issues/76997
2019-10-11 08:48:05 -07:00
Rob Lourens c0bd994bc7 Fix PHP indentation rule for 'case'
Fix #81107
2019-10-09 18:30:30 -07:00