Commit Graph

91 Commits (415dd0470c33a1eb49283c71175f4e69c80cfbe5)

Author SHA1 Message Date
Aiday Marlen Kyzy b73c976b2a
Setting defaultColorDecorators setting to false for languages that use # for start of comments (#233303)
adding default setting for default color decorators for some languages
2024-11-07 11:41:05 +01:00
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
Alex Ross 9473445f7d
Update grammars (#224167) 2024-07-29 02:33:03 -07:00
Lee Zee 6d186d4c33
shellscript: Register .eclass extension as shell-like (#219631)
Gentoo provides a framework to define modular code that can be reused between ebuilds and packages; the file extension for Gentoo eclasses should be registered as shell-like syntax in addition to ebuilds.

https://wiki.gentoo.org/wiki/Eclass
2024-07-20 13:14:18 +02:00
Alex Ross 5c213a1e84
Update grammars (#211439) 2024-04-26 04:52:52 -07:00
Alex Ross b557947e50
Update grammars (#209932) 2024-04-09 12:20:39 +02:00
Alex Ross 6285faddc6
Update shellscript grammar (#207828) 2024-03-15 12:52:46 +01: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
Alex Ross a16d8d0a3e
Update shellscript grammar (#193488) 2023-09-19 09:33:30 -07:00
Alex Ross ca6ebd67d1
Update shellscript grammar (#187811) 2023-07-13 14:09:30 +02:00
Alex Ross d77e53a2b3
Update shellscript grammar (#179758) 2023-04-12 13:39:51 +01:00
Alex Ross 24483e964e
Update shellscript grammar (#177087) 2023-03-14 06:50:36 -07:00
Alex Ross 782ea94050
Update shellscript grammar (#176978) 2023-03-13 09:40:43 -07:00
Alex Ross 8ca37ee70f
Update shellscript grammar (#176491) 2023-03-08 11:18:43 +01:00
Alex Ross 71f59872f3
Update shellscript grammar (#176241) 2023-03-06 17:29:54 +01:00
Tobias Hernstig c612c5d163
Add shellscript `filenamePatterns` for `.env.*` (#173426)
* Add shellscript `filenamePatterns` for `.env*`

In some cases, projects use `.env` files such as `.env.development`
or `.env.production` or similar things.

Adding this to extensions/shellscript/package.json as a
`filenamePatterns` avoids developers having to add specific
`"files.associations"` to their VS Code settings files.

Fixes #173425

* Change pattern from .env* to .env.*
2023-02-10 14:22:32 +00:00
Alex Ross 90c3ebe980
Update shellscript grammar to get fix (#173574) 2023-02-06 07:14:56 -08:00
Alex Ross 7b369be6af Get latest shellscript grammar and update tests 2023-02-06 12:32:44 +01:00
Alex Ross c3a17a3ebf Revert shellscript grammar change and add more tests 2023-02-06 12:32:44 +01:00
Alex Ross 166b8e2d90
Update grammars (#172807) 2023-01-30 06:27:20 -08:00
Alex Ross fcb4dd3b18
Try out new shellscript grammar! (#169118)
Part of #77675
2022-12-14 12:52:31 +01:00
Daniel Imms 5c2cbe2b7d
Add .fish to shell script language 2022-08-09 08:19:27 -07:00
Alex Ross 01cfc62ead
Update shellscript grammar and add new test 2022-04-12 16:49:52 +02:00
Henning Dieterichs 9aaa850fe4
Adopts "containsBalancedBrackets" flag from vscode/text-mate. 2022-04-07 00:42:19 +02:00
Martin Aeschlimann 73c6f34f9e Do not recognize Debian's .install file as a shell script. Fixes #124295 2021-05-21 11:20:33 +02:00
Yongming Lai 151c7d5dff
Recognise commonly sourced files as shellscript (#121373)
Added files commonly sourced by display managers.

- `.xsession` and its variants referenced in `/etc/X11/Xsession`
- `.xprofile` referenced in `/etc/gdm3/Xsession`

This PR fixes #121372.
2021-04-15 16:32:02 +02:00
Alex Ross 0f17001790 Fix update-grammar scripts for cross-platform use 2021-02-08 15:39:56 +01: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
Aditya Thakral 242781566c Support more shell script file extensions 2020-05-12 17:49:35 -04:00
Aditya Thakral a33d16d97e Convert extension array to multiline array 2020-05-12 17:44:39 -04:00
Helloimbob 59391f4636
Merge branch 'master' into patch-1 2020-02-20 21:01:59 +00:00
Helloimbob e7f9230340
Autodetect csh script as shellscript
Identify csh scripts (file extenstion `.csh` or `#!/usr/bin/csh` in first line) as shellscript.
2020-02-17 15:51:57 +00:00
John Blackbourn 97831cfa80
Treat .envrc files as Shell scripts 2020-02-17 13:57:34 +00:00
Martin Aeschlimann e9bb8b306c do not autoclose quotes when in strings. Fixes #88265 2020-01-09 10:34:43 +01:00
Martin Aeschlimann daaf92b5bc [shellscript] Make \n the default eol. Fixes #49418 2019-10-08 14:53:24 +02:00
Jakub Čábera e82130da4b
shellscript: Add folding markers 2019-06-20 11:13:15 +02:00
TBK bdc1fd4234
Add support for APKBUILD
APKBUILD is the build shell script format for Alpine Linux aports (packages - .apk) - https://wiki.alpinelinux.org/wiki/APKBUILD_Reference
2019-06-18 16:55:48 +02:00
Aurélien Pupier 7a5bca9faf Add License field to package.jsons #68423 (#68771)
it should avoid to have "warning XXX: No license field" during yarn
build

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
2019-06-06 11:44:50 +02:00
William Whittle 6764b4c70a Add 'qsh' as a valid shellscript firstline
This is the shell on IBM i
2019-04-26 13:45:36 +01:00
Martin Aeschlimann a721a6c236 Add 'ash' as a valid shellscript firstline. Fixes #71426 2019-04-01 15:37:07 +02:00
Alex Ross 6c6cd0aab4 Update grammars 2018-12-12 17:25:07 +01:00
isidor 9edd984da8 delete OSSREADME.json 2018-11-20 12:54:22 +01:00
Alex Dima 976cfe3aa7 Merge branch 'master' into isidorn/cgmanifest 2018-11-16 17:52:27 +01:00
isidor 2ba92aa3e8 add commitHash to cgmanifest 2018-11-15 17:43:46 +01:00
isidor 347fb6347b add all cgmanifests. Still no commitHash 2018-11-14 18:18:25 +01:00