Commit Graph

925 Commits

Author SHA1 Message Date
Johannes
d6f5727021 also use SWC for extensions transpile 2022-09-07 11:18:53 +02:00
Johannes
87e54a0759 consume swc as libaray and wire up into the existing transpiler logic 2022-09-07 10:46:27 +02:00
Johannes
d7fafc7ada remove swc as executable task 2022-09-07 10:40:45 +02:00
Johannes
2f390ceb5d add missing JS file 2022-08-31 16:59:37 +02:00
Johannes
872e9dfc81 comments, todos 2022-08-31 14:56:23 +02:00
Johannes
a252938303 Merge branch 'main' into joh/swc 2022-08-30 14:14:22 +02:00
Matt Bierner
5e92794be6 Re-enable running our eslint rules using ts-node (#159495)
Resubmission of #157532 with the following changes:

- Use `eslint-plugin-local` instead of `yarn` link to run our plugins
- Move our plugins to a top level `.eslintplugin` dir (as required by `eslint-plugin-local`)
- Update all names to `local/`
2022-08-30 08:40:04 +02:00
Matt Bierner
9e5248072a Fix ts-node for eslint (#159483)
Bumps the cachesalt to make sure ts-node is installed
2022-08-29 20:51:12 +02:00
Matt Bierner
5b21c7f28b Run our custom eslint rules using ts-node (#157532)
* Run our custom eslint rules using ts-node

Use `ts-node` to run our custom eslint rules.  This lets us delete the pre-compiled js. It also means you can don't have to compile the rules while editing them

As part of this change, I've also switched us to using an eslint plugin instead of a rulesDir. This is now the preferred way to ship custom rules

* Fix two more disables

* Move ts-node to project root

* Enable transpileOnly
2022-08-29 09:39:09 -07:00
Matt Bierner
b5a1bb34e9 Pick up latest TS for building VS Code (#158420) 2022-08-26 23:00:38 +02:00
Johannes
7ec1ebdd5f * tweak createSwcClientStream to have async exec
* add `transpileClientSWC` and corresponding gulp task
2022-08-26 15:02:01 +02:00
Johannes
18e45ac6cd don't use --copy-files options has it seems to break BOM 2022-08-26 11:58:36 +02:00
Johannes
93e346a449 Merge branch 'main' into joh/swc 2022-08-26 08:59:51 +02:00
João Moreno
3e014a7459 argh, still wrong EOL (#159160) 2022-08-25 08:48:58 -04:00
Alex Burgel
c27c1638ec Add swift to supported darwin document types (#159002)
* Add swift to supported darwin document types

* add compilation output

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-08-24 13:06:19 +00:00
João Moreno
934940b58d Improve language pack fetching for policies (#159048)
fixes #157219
2022-08-24 14:10:48 +02:00
Johannes
c7c4b4999b Merge branch 'main' into joh/swc 2022-08-23 18:56:48 +02:00
Tyler James Leonhardt
108916901d Pull in web strings into Language Pack (#158053)
remove old tasks and include web strings in export
2022-08-15 13:46:34 -04:00
Benjamin Pasero
0895639566 debt - mention our wiki when putting out layer errors (#157768) 2022-08-10 15:37:21 +02:00
Matt Bierner
460768a452 Update TS versions (#157550)
* Update TS versions

Update the bundled TS and build TS version

* Add explicit annotations

* Recompile JS
2022-08-09 11:26:24 -07:00
Tyler James Leonhardt
49394cc44d Enable translations for extension code for the web (#155355)
* Initial attempt

* alex feedback
2022-08-08 09:11:16 -07:00
Alexandru Dima
c0560907e9 Merge pull request #157171 from mjbvz/able-rooster
Try using AbortController for disposable dom listeners
2022-08-05 15:06:16 +02:00
Benjamin Pasero
73fd3f1103 fix build (#157217)
* fix build

* fix compile

* flaky

* .
2022-08-05 09:16:20 +02:00
Matt Bierner
a43e9acd68 Add AbortController to core types 2022-08-04 16:26:18 -07:00
Connor Peet
ca48c64699 build: cache built-in extensions to avoid rate limiting (#156918) 2022-08-03 00:27:16 +02:00
Michael Lively
3c0dba1c00 oh. had to run yarn compile from within the /build/ folder 2022-07-27 10:30:01 -07:00
Michael Lively
e617076801 added ipynb/esbuild.js to the media scripts when building extensions 2022-07-27 09:34:22 -07:00
Henning Dieterichs
d392b284c2 Merge branch 'main' into hediet/bp2-usage-telemetry 2022-07-26 09:57:47 +02:00
Alexandru Dima
a649d8f404 Explicitly enqueue files that only forward symbols (#156150)
Fixes #154083: Explicitly enqueue files that only forward symbols
2022-07-25 15:07:54 +02:00
João Moreno
76758809f1 fix api proposal generation EOL (#155991)
on Windows, my files are checked out with LF. the script which generates extensionApiProposals.ts always uses os.EOL, so it always is dirty on my repo every time I compile
2022-07-22 14:21:20 -07:00
Henning Dieterichs
5f21c372de Make treeshaking work on windows (#155952) 2022-07-22 14:07:44 +02:00
Johannes
e93326976a add node-script to run swc 2022-07-19 14:32:46 +02:00
Henning Dieterichs
d29ab10eb6 Implements telemetry for bracket colorizer 2 extension usage 2022-07-18 16:55:11 +02:00
Henning Dieterichs
8630720a0b Fixes #155179 by implementing DeprecatedExtensionMigratorContribution (#155318)
* Fixes #155179 by implementing DeprecatedExtensionMigratorContribution

* Fixes CI.
2022-07-15 18:15:12 +02:00
Johannes Rieken
2e247a1162 tweak event-naming rule and remove disable-pragma from vscode.d.ts, (#154914)
fixes https://github.com/microsoft/vscode/issues/154526
2022-07-12 14:28:07 +02:00
João Moreno
f44c00cac8 Download policy translations for previous version if current version fails (#154892) 2022-07-12 07:58:50 +02:00
João Moreno
274aed07cc policies: skip languages which do not exist (#154395) 2022-07-08 06:03:08 +02:00
Joyce Er
934408aea7 Debt - sessionSync -> editSessions (#154289) 2022-07-06 11:03:38 -07:00
Benjamin Pasero
f4f1b04d87 Add a setting to enable sandbox: true for windows (#154062)
* sandbox - allow enabled sandbox in a full build

* sandbox - reduce `electron-browser` in workbench

* sandbox - reduce `electron-browser` in platform

* sandbox - add a setting to enable sandbox mode for window

* fix lint

* Revert "sandbox - reduce `electron-browser` in workbench"

This reverts commit 36a5167cf9.

* Revert "sandbox - reduce `electron-browser` in platform"

This reverts commit 6f49d704a5.

* fix layer issue

* fix some js errors
2022-07-05 09:54:28 +02:00
Tyler James Leonhardt
13f136fc46 Include comments exporting of translations (#153769)
Include comments in call to addFile. Fixes #150990
2022-06-30 11:11:48 +02:00
Johannes Rieken
0182e175eb fix transpile on windows (#153285)
make sure to normalize paths before entering internal TS API, also add better error logging to know what file paths fail
2022-06-27 12:01:17 +02:00
Johannes
214e276bd5 have compilation#transpileTask as a separate place for tweaks 2022-06-23 17:32:20 +02:00
Johannes
b942d2ea65 use a different _internal_ API to get the output file names for a TS input file and its config... way faster than creating a program and using its internal API but needs some massage... 2022-06-23 16:20:21 +02:00
Matt Bierner
bbe7b54cf4 Remove custom editor tests (#152777)
These tests are not actively being run or maintained. Removing them for now
2022-06-21 15:37:19 -04:00
Matt Bierner
2a84b0fb6d Enable alwaysStrict for build scripts (#152778)
Turns on `alwaysStrict` and removes `'use strict';` from our `.ts` files
2022-06-21 19:00:43 +00:00
Logan Ramos
963c961b59 Ensure 1DS can load on the web (#152678)
* Ensure 1DS can load on the web

* Add compiled file
2022-06-20 16:06:16 -07:00
Alexandru Dima
0d160ac237 Fix bundling (#152389)
* Ensure stable order in bundled loader.js

* Avoid packaging build version of loader plugins
2022-06-16 21:05:10 +00:00
Alexandru Dima
9db5a3674e Bring the nls loader plugin into our sources (#152338) 2022-06-16 22:01:19 +02:00
Alexandru Dima
d132489cd0 Bring the css loader plugin into our sources (#152205) 2022-06-15 16:53:02 +02:00
Johannes Rieken
9e21aff42e joh/ts transpile (#152199)
transpile-only tasks for client and extensions

* extract transpile into its own file
* add transpile-client task, polish transpiler
* add transpile-extensions, improve transpile logic
* move declaration of "const enum" above it usage so that it can be used with const-enum-inlining
* (ugly) make d.ts transpilation configurable because it is needed for extensions but a problem for client
* hack my way around so that `getOwnEmitOutputFilePath` is reusable by our transpile
* honor `noEmit` flag
2022-06-15 16:52:48 +02:00