Commit graph

336 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
Matt Bierner d69a8fb36d
Align JS and TS snippets (#219917)
Mostly should be the same with a few small differences
2024-07-04 09:12:15 +02:00
Matt Bierner ee8937a604
Rename snippet placeholder (#219904)
Fixes #214760
2024-07-03 17:02:21 -07:00
Aiday Marlen Kyzy d309e11579
Remove brackets from comments, strings and regexes before evaluating the indentation (#210641)
* wip

* polishing the code

* adding code

* adding the language

* reshuffling the code to avoid cyclic dependency

* polihsing code

* uncommenting tests

* also adopting the indentation rules within the reindentation operation

* using instead the sliced line tokens instead of the scoped line tokens

* polishing the code

* using start indices instead

* using value everywhere

* using the token data to type the tokens

* setting to number instead of standard token type

* using token data from autoindenttest.ts

* using same code in both test files

* placing instantiation service into the registerLanguage method

* copying object into the node js autoindent.ts
2024-05-27 11:18:00 +02:00
Aiday Marlen Kyzy f62931d09b
Making same changes to JavaScript language configuration file as for TypeScript (#209038)
making the language configuration file the same as for typescript
2024-03-28 18:25:55 +01:00
Aiday Marlen Kyzy 946d53e850
Merge branch 'main' into fix-autoindent-on-closing-paren 2024-03-11 09:42:02 +01: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
Russell Davis bac1926029 Fix decreaseIndentPattern for javascript and typescript
Fixes #201424

It wasn't matching closing parens, which resulted in these issues:
* Pressing enter with just a closing paren to the right of the caret
wouldn't result in a dedent on the next line
* With the caret at the start of the line below a line containing only a
closing paren, pressing tab would result in an extra level of
indentation
2023-12-22 20:15:13 -08:00
Alpha Romer Coma 7ef754c2f6
Fix supported markdown-lint violations in markdown files (#190750)
docs: fix supported markdownlint violations
2023-08-24 08:37:25 +00:00
Henning Dieterichs fd63cf62b9
Merge branch 'main' into singleLineDeindent 2023-07-07 20:30:51 +02:00
Alex Ross c778cc6117
Update grammars (#186752) 2023-06-30 09:14:40 -07:00
Matt Bierner b242a8730c
Bump JS/TS grammars (#180160) 2023-04-17 21:27:38 +01:00
Matt Bierner 0461b885d5
Update JS/TS grammar (#179069) 2023-04-04 00:56:01 +02:00
Henning Dieterichs e3cab63a12
Merge branch 'main' into singleLineDeindent 2023-02-28 11:16:22 +01:00
Alex Ross cf4acb8050
Update grammars (#175350) 2023-02-24 17:22:41 +01:00
Alex Ross 166b8e2d90
Update grammars (#172807) 2023-01-30 06:27:20 -08:00
Matt Bierner 9ad5c4a205
Use JSX in display names of the TypeScript React and JavaScript React languages (#168368)
Use JSX in display names of the TypeScript React and JavaScript React languages

Fixes #138285

This changes the display name of the languages `JavaScript React` -> `JavaScript JSX` and `TypeScript React` -> `TypeScript JSX`

This only changes the display names and leaves the ids alone. Changing the ids would be a very breaking change for extensions with no real user benefits
2022-12-08 00:56:04 +01:00
Matt Bierner cf01f3bb99
Update TS grammars (#167479)
Pulls in support for TS accessor syntax
2022-11-28 16:30:49 -08:00
Stephen Sigwart 3894c48a02 JS/TS fixes 2022-11-21 21:41:18 -05:00
Matt Bierner 46caa3b490
Exclude @ from word pattern in js/ts (#165764)
Fixes #162862

#148874 Still seems to be working too after this change
2022-11-07 15:53:11 -08:00
Alex Ross fd4346210f
Update grammars (#162673) 2022-10-04 08:50:55 -07:00
Alex Ross ec5b41ddc2
Update grammars (#159445)
Update grammar
2022-08-29 14:08:44 +02:00
Matt Bierner 9f3cafba7d
Update grammars (#151383)
Updates the markdown and JS/TS grammars
2022-06-07 09:37:14 -07:00
Matt Bierner e6f42433cf
Include @ in JS/TS word pattern (#148962)
Fixes #148874

`@` is used both for decorators and in imports
2022-05-06 21:10:45 +00:00
Quan Zhuo 05043332f8
Add newpromise snippets in javascript (#148755) 2022-05-05 09:38:07 -07:00
Alex Ross f3b1b53443
Update grammars 2022-05-02 11:20:10 +02:00
Matt Bierner e9636bbce1
Don't have space in snippet
Fixes #146503
2022-04-01 11:15:25 -07:00
Matt Bierner 9b32ee6588
Fix regular expression for auto indent
Fixes #144505

Removes a `/` that was mistakenly copied over when moving these rules to json
2022-03-07 17:01:40 -08:00
Matt Bierner 1da08937d8
Remove text mate highlighting of more JS/TS built-ins
Identifying specific symbols is a better fit for semantic highlighting instead of textmate as semantic highlighting prevents false positives

This keeps around a few of the most built-ins for now but we may revisit these in the future
2022-03-01 16:17:16 -08:00
Martin Aeschlimann db9e8fba63 remove unecessary files in build 2022-02-18 20:38:55 +01:00
Matt Bierner 2b92835853
Move js/ts language configs to json file
Fixes #125748
2022-02-03 11:38:09 -08:00
Alex Ross a1a4c0a63b
Update grammars 2022-01-31 16:52:03 +01:00
Daniel Rosenwasser 4fb22d76cf
"Surround with" in TS/JS snippets (#138565)
* Preserve selected text in snippets to provide "surround-with"-like functionality.

* Add the same "surround with"-like functionality to JS snippets.
2021-12-06 18:01:09 -08:00
Alex Ross 9efc116de0
Update grammars 2021-11-02 15:32:34 +01:00
Matt Bierner ffd414feeb
Include < as surroundingPairs in JS
Fixes #136127

These are already listed in TS
2021-10-29 13:03:15 -07:00
Alex Dima 174db5eb99
Fixes #134662: Configure strings and comments embedded in template expressions to be identified as strings and comments 2021-10-28 17:46:56 +02:00
Alex Dima 8358d0ca67
Define 2500 chars max limit for javascript, not typescript (#135573) 2021-10-22 14:22:20 +02:00
Henning Dieterichs d6b2e78477
Fixes #132847 by configuring ${...} as bracket pair. 2021-09-21 12:28:25 +02:00
Henning Dieterichs 9f6e7a7e9f
Implements language configurable colorizedBracketPairs property. 2021-08-23 15:21:51 +02:00
Matt Bierner bc0e917553
Mark embedded template expressions as other
Fixes #127005
Fixes ##124270
2021-08-05 17:08:52 -07:00
Alex Ross 3e32c1aae2
Update grammars 2021-07-02 17:06:19 +02:00
Matt Bierner e870a6d700
Update js/ts grammar 2021-04-14 20:42:41 -07:00
Matt Bierner 5207b98402
Update JS/TS grammars 2021-04-07 17:45:59 -07:00
Matt Bierner 05b52df98a Update JS/TS grammar 2021-04-06 17:17:43 -07:00
Alex Ross 17e7a257ff
Update grammars 2021-03-29 15:16:24 +02:00
João Moreno 8bf9b56ade
Merge branch 'joao/extensions' 2021-02-02 12:06:01 +01:00
Alex Ross b37252c182 Update grammars 2021-02-01 17:48:44 +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