Commit Graph
159 Commits
Author SHA1 Message Date
Aiday Marlen KyzyandGitHub 359ec5270a Add new line comment when pressing Enter from within line comment for languages that use double slash for line comment (#235407)
* add decrease and increase indent patterns for cpp

* adding new line with line comment on next line from within languages that use double slash for line comment
2024-12-06 11:51:50 +01:00
RoboandGitHub 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 https://github.com/microsoft/vscode-vsce/commit/8b49e9dfdf909ad3af2b9ec9c825f5b501f6d75e

* 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 https://github.com/markdown-it/markdown-it/commit/737c95a12976357df99652e4b51d831cac4a75aa

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 https://github.com/markdown-it/markdown-it/commit/beed9aee2c1b44819afc25d485e86a6c699b6ef0

* 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 https://github.com/microsoft/vscode-vsce/commit/d3cc84cdec99b8e9f24be63d1a2a54abe908f68b
while still having the fix https://github.com/microsoft/vscode-vsce/commit/8b49e9dfdf909ad3af2b9ec9c825f5b501f6d75e

* 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
powersagitarandGitHub fc8e4df4cd Add file extensions for C++20 module interface units (#214800)
Add file extensions: C++20 module interface units
2024-06-11 10:38:21 +00:00
Sean McManusandGitHub 739d4803af Add /** */ to cpp/language-configurations.json (#211202)
This fixes the issue at https://github.com/microsoft/vscode-cpptools/issues/12249 .

This was removed in https://github.com/microsoft/vscode/commit/98fa77a679fbd1095d05c0fcb381d6e9b775d743 .

Then PR https://github.com/microsoft/vscode/pull/160357 added /* */ autoClosingPair.
2024-05-15 09:10:15 +00:00
Sandeep SomavarapuandGitHub 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 RossandGitHub 48e93f756b Update grammars (#194614) 2023-10-02 15:56:43 +01:00
Alex RossandGitHub b2864137d0 Add license detail for cpp grammar repo (#193983)
Part of #193966
2023-09-26 09:12:28 +01:00
Alex Ross eb03486765 Freeze C++ grammar version 2023-08-10 00:30:24 +02:00
Henning DieterichsandGitHub fd63cf62b9 Merge branch 'main' into singleLineDeindent 2023-07-07 20:30:51 +02:00
Alex RossandGitHub 6ac83c7c7d Update grammars (#178508)
* Update grammars

* Update tests
2023-03-29 11:38:06 +02:00
Stephen Sigwart a99fb2c5c3 Add to C/C++ 2023-02-28 21:17:35 -05:00
Alex RossandGitHub cf4acb8050 Update grammars (#175350) 2023-02-24 17:22:41 +01:00
Alex RossandGitHub 166b8e2d90 Update grammars (#172807) 2023-01-30 06:27:20 -08:00
Alex RossandGitHub ceaf7a431b Update grammars (#165100) 2022-11-01 07:21:34 -07:00
Sean McManusandGitHub 3f2adbfe3e Update language-configuration.json (#163182) 2022-10-11 09:23:42 +02:00
Alex RossandGitHub fd4346210f Update grammars (#162673) 2022-10-04 08:50:55 -07:00
Colen Garoutte-CarsonandGitHub 33787082be Enable auto-close of multi-line comments in cpp (#160357) 2022-09-26 15:29:05 +02:00
Henning DieterichsandGitHub d7ad82454e Revert "Bracket support for #if and #endif in cpp" 2022-09-23 13:59:23 +02:00
Blip blopandGitHub 13a51cea1d Updated support for #if and #endif 2022-09-03 22:26:50 +05:30
Alex RossandGitHub 7b69a3c4e1 Update grammars (#154099) 2022-07-05 09:53:51 +02:00
Alex RossandGitHub 4e53b01452 Pull in cpp grammar fixes (#152449) 2022-06-17 11:17:09 +00:00
Alex RossandGitHub bd1abe08c3 Update C grammar locations (#151733)
Fixes #150288
2022-06-10 13:55:11 +00:00
Alex Ross a1a4c0a63b Update grammars 2022-01-31 16:52:03 +01:00
Alex Ross 95dcb89a92 Update grammars 2021-12-07 15:12:01 +01:00
Alex Ross 9efc116de0 Update grammars 2021-11-02 15:32:34 +01:00
Alex Ross 6ceee3192e Update grammars 2021-08-30 14:45:57 +02:00
Alfi MaulanaandGitHub 0f99773ce9 feat: add .tpp and .txx as c++ extensions (#130101) 2021-08-05 09:27:58 +02:00
Alex Ross 6e2b7dda7a Update cpp and objective c grammars 2021-07-13 11:44:15 +02:00
George WhiteandGitHub ac1bde29aa Add .ixx as a possible C++ extension
This extension is used for a C++ module interface file, required for it to be automatically compiled as a module in Visual Studio (as seen [here](https://docs.microsoft.com/en-us/cpp/cpp/modules-cpp?view=msvc-160#basic-example)). Therefore, files with this extension should be highlighted as C++.
2021-07-04 18:09:24 +01:00
Martin Aeschlimann 553d92817b Word selection is incomplete for C++ identifiers containing certain allowed characters. Fixes #121343 2021-04-26 22:08:38 +02:00
95420b39f2 Add cuda-cpp lang id, grammar and problem matchers (#119444)
* Adding a language ID for CUDA

* Adding aliases for CUDA C++

* Add problem matcher for cuda-cpp based on nvcc output

* Adding a grammar for cuda-cpp

* Adding a language configuration file for cuda-cpp

* Adding a colorizer test for cuda-cpp

* Update the update-grammars.js to pick up cuda-cpp.tmLanguage.json

* Add cgmanifest entry for cuda grammar

Co-authored-by: Alex Ross <alros@microsoft.com>
2021-03-30 11:18:48 +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 MorenoandGitHub 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
Alex Ross 4301777727 Update grammars 2020-12-14 15:50:30 +01:00
Alex Ross f5f4af6db3 Update C++ grammar 2020-11-04 16:57:02 +01:00
Caio 425da67728 treat .c++ & .h++ files as c++, & update icon theme 2020-08-09 19:05:57 -03:00
Alex Ross ca74bac4b0 Update grammars 2020-06-18 17:35:13 +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
Alex Ross fa84b60808 Add test for specific c++ grammar freeze 2020-03-27 16:36:57 +01:00
Alex Ross e096d95068 Revert C grammars to version from 1.43.1
There's still a line that can cause a freeze
2020-03-27 16:36:57 +01:00
Alex Ross 60cc1a28a5 Update C++ grammar 2020-03-23 10:49:14 +01:00
Alex Ross 2f6da279c7 Update grammars 2020-03-03 16:20:05 +01: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
Alex Ross c45e6cc623 Update grammars 2019-12-10 12:35:30 +01:00