Commit Graph

114 Commits (d226a2a497b928d78aa654f74c8af5317d3becfb)

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 ed4e6eda59
Update grammars (#219070) 2024-06-28 11:56:38 +02:00
Alex Ross b8e3432a0b
Update grammars (#214005) 2024-05-31 15:09:59 +02:00
Alex Ross 35d97bc7e4
Update grammars (#203521) 2024-01-26 13:06:22 +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 3c86ede5f5
Update grammars (#200730) 2023-12-13 13:08:01 +01:00
Gabriel Staples b4368691e9
all color themes: treat comment docstrings as comments too (#182162)
* monokai-color-theme.json: treat Python comment string blocks

...as comments too

* Update *all* themes to consider Python block string comments as comments

	modified:   extensions/theme-abyss/themes/abyss-color-theme.json
	modified:   extensions/theme-defaults/themes/dark_vs.json
	modified:   extensions/theme-defaults/themes/hc_black.json
	modified:   extensions/theme-defaults/themes/hc_light.json
	modified:   extensions/theme-defaults/themes/light_vs.json
	modified:   extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json
	modified:   extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json
	modified:   extensions/theme-monokai/themes/monokai-color-theme.json
	modified:   extensions/theme-quietlight/themes/quietlight-color-theme.json
	modified:   extensions/theme-red/themes/Red-color-theme.json
	modified:   extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json
	modified:   extensions/theme-solarized-light/themes/solarized-light-color-theme.json
	modified:   extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json

* Update all changes to use "string.quoted.docstring"

...instead of "string.quoted.docstring.multi.python", per
@aeschli's request here:
https://github.com/microsoft/vscode/pull/182162#issuecomment-1545296640

This way the comment formatting applies to *all* language quoted
docstrings, instead of just to Python.

* bring back python colorize tests

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2023-05-15 14:38:43 +02:00
Martin Aeschlimann 3eff2128ce
offside languages: changing ignoreTrimWhitespace default to false (#169555) 2022-12-20 10:09:56 +01:00
Alex Ross cf4c9e469d
Update python grammar (#164191) 2022-10-20 15:45:17 -07:00
jannisspeer b2d7afc634
Remove Snakefile from being classified as Python (#162749)
Update package.json

Co-authored-by: Alex Ross <alros@microsoft.com>
2022-10-10 21:32:26 +02:00
6⭐ Sygna Suit Red-EX dd4d29dd8b
Update Python source highlighting example to be more idiomatic (#154013) 2022-09-28 11:29:18 -07:00
Alex Dima 03ca148fd7
Fixes #143953: Remove no longer necessary `extensionKind` 2022-02-25 11:51:07 +01:00
Philipp Nagel e58932d492
Recognize .pyt files in Python extension (#133546) 2021-09-29 00:51:42 -07:00
Sandeep Somavarapu 961c2e353d
remove web extension kind in builtin extensions 2021-09-01 15:09:21 +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
Alexandru Dima 2d5f7fd072
Move `onEnterRules` to `language-configuration.json` 2021-01-20 12:20:27 +01:00
Martin Aeschlimann 849acd83eb Treat SConstruct/SConscript files as python automatically. Fixes #105623 2020-09-08 14:33:06 +02:00
Alex Ross 893314330c Update grammars 2020-08-19 16:00:28 +02:00
Alex Dima 91cdca1bdb
Do not ship unnecessary files with extensions 2020-07-24 13:57:51 +02:00
Alex Dima 2fa41fb23e
Add "web" as extensionKind to extensions which support this 2020-07-24 10:41:03 +02:00
Martin Aeschlimann 16be2c9885 used shared webpack-config for browser 2020-06-25 23:22:02 +02:00
Martin Aeschlimann 79b6605b4d serverless: add python basic extension 2020-06-12 18:10:21 +02:00
Matt Bierner 040034f7ae Update colorizer baselines 2020-05-26 16:22:50 -07:00
Alex Ross 074fc4d8da Update Python grammar
Fixes #98179
2020-05-20 10:43:20 +02:00
Alex Ross 884fcedf97 Update grammars 2020-05-11 14:03:54 +02:00
Alex Ross f474fcb271 update-grammars 2020-04-06 13:29:57 +02:00
Alex Ross 2f6da279c7 Update grammars 2020-03-03 16:20:05 +01:00
Miguel Solorio 666fcc0d62 Fix #88418, update number color for color contrast 2020-01-21 10:23:18 -08:00
Alex Dima 697c7d5c43
Prefer running the built-in python extension on the UI side (fixes #88837) 2020-01-17 22:27:14 +01:00
Alex Ross a2c591f8ca Allow relative paths for python firstLine detection
Fixes #87214
2019-12-20 09:46:22 +01:00
Alex Ross a0bc43dd73 Update grammars 2019-10-21 11:21:03 +02:00
Joao Moreno 66e14b8be8 cleanup 2019-07-15 07:25:46 +02:00
Joao Moreno cf64ef0884 remove legacy extensions compilation
- update vscode-nls-dev
- fix CopyWebpackPlugin usage
- fix extra data in html extension
- add webpack to python
2019-07-10 09:38:05 +02:00
Brett Cannon 64031a2360 Remove snakemake files from being classified as Python files (#76625)
They are not actually syntactically valid Python source.

Fixes #76624
2019-07-08 15:18:35 +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
Martin Aeschlimann afb0837035 Update Snakemake files types to include `Snakefile` to provide syntax detection. Fixes #73737 2019-05-27 12:40:04 +02:00
Alex Ross 9c00167f2e Update grammars 2019-04-05 12:51:44 +00:00
Martin Aeschlimann c10ea17d96 Syntax highlighting and check for .ipy files. Fixes #69694 2019-03-04 09:31:27 +01:00
Martin Aeschlimann 85119f3faf Language features not supported for ".pyi" python type files. Fixes #66652 2019-01-28 22:59:54 +01: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
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
Alex Ross fd8d4b09e1 Update grammars 2018-10-23 16:13:27 +02:00
Martin Aeschlimann 10a1d2a50a update grammars 2018-10-04 12:00:39 +02:00