Commit Graph

990 Commits

Author SHA1 Message Date
Robo
a22b77d5e1 chore: bump electron@19.1.11 (#175531)
* chore: bump electron@19.1.11

* chore: update chromium version for security patches
2023-02-27 13:57:52 +01:00
Benjamin Pasero
9bbce647b3 debt - strict layer rules for more services (#175411) 2023-02-25 15:49:47 +01:00
Robo
20c4065239 chore: bump electron@19.1.10 (#174808) 2023-02-20 08:07:18 +01:00
Tyler James Leonhardt
d5277e8e2b Ensure language packs are installed on the server side (#174622) 2023-02-17 07:23:00 -08:00
Martin Aeschlimann
911f119120 generalize limit indicator and use for color decorators (#173730)
* generalize limit indicator and use for color decorators

* remove updateDebounceInfo max
2023-02-08 07:43:29 +01:00
Johannes Rieken
7e69465303 don't use underscore for native JS things (#173282) 2023-02-03 03:47:51 -08:00
Johannes
f7f42dbd63 print/fwd SWC errors properly
https://github.com/microsoft/vscode/issues/173074
2023-02-02 11:57:38 +01:00
Jean Pierre
22cfea1eb7 Fixes compilation in windows
Related #170767
2023-01-29 17:37:06 -05:00
Matt Bierner
d67db9d358 Pick up latest TS for building VS Code (#172033) 2023-01-23 11:39:28 -08:00
Johannes Rieken
3db45fbd42 use normalized path when checking for mangled new contents, (#171964)
* use normalized path when checking for mangled new contents,

https://github.com/microsoft/vscode/issues/170767

* add missing js file
2023-01-23 14:11:36 +01:00
Daniel Imms
70ed6fa10a Add workbench suggest o i18n.resources.json 2023-01-19 13:22:58 -08:00
Tyler James Leonhardt
7c0e51357d Pull l10n files from build folder for extensions that don't live in source (#171217)
This will allow the l10n build to pick up the bundle.l10n.json inside of js-debug

cc @connor4312
2023-01-13 08:34:14 +01:00
Connor Peet
314d7b6c47 debug: allow setting breakpoints in plain .js files (#168921)
* debug: allow setting breakpoints in plain .js files

Fixes #159684

* fixup! don't change sourceURLs in build
2023-01-06 09:22:46 +01:00
João Moreno
326876fa9e bump vsce (#168071)
* bump vsce

* remainder

* use latest vsce

* compile build output
2022-12-22 17:00:21 +01:00
Tyler James Leonhardt
0510da84dd Use new version of @vscode/l10n-dev that uses tree-sitter (#169668)
Use new version of @vscode/l10n-dev

Required a bit more refactoring because an API had to be made async.
2022-12-20 19:53:50 +01:00
João Moreno
983b06e9bf polish mangler output to align with build (#169388) 2022-12-16 13:20:07 +01:00
Johannes
0d5f87e9dd change source map merge logic to be like applying line edits to the typescript source maps (based on the input source maps) 2022-12-14 15:57:55 +01:00
Johannes
59f0d9c20e fix ts2ts source map generation 2022-12-14 12:22:56 +01:00
Johannes
f73bb21f27 wip 2022-12-02 13:03:16 +01:00
Matt Bierner
ce934ff443 Also run cleanNodeModules on extensions/node_modules (#167476)
Also run cleanNodeModules on extensions/node_modules

Fixes #166652
2022-11-29 12:15:09 -08:00
Martin Aeschlimann
86ff830c3a fix string.replace (for #167239) (#167259) 2022-11-25 14:45:57 +00:00
Johannes Rieken
1e3d0b5c05 mangle polish (#166604)
* mangle polish

* missing js files (again...)
2022-11-24 14:52:10 +01:00
Johannes
fdc39b56e4 missing JS files 2022-11-16 13:47:07 +01:00
Johannes Rieken
3ffb834054 Merge branch 'main' into joh/rewrite-privates 2022-11-16 10:20:49 +01:00
Matt Bierner
d0d28a6295 Reapply building of web server (#166391)
* Reapply building of web server

Revert 8b4642ab23

* Fix critical dep error
2022-11-15 14:55:40 -08:00
Henning Dieterichs
b11207c539 Revert "Copy webServer from Typescript to VS Code (#165771)"
This reverts commit cb43019d6a.
2022-11-15 14:45:32 +01:00
Johannes
c281755a1b more missing JS files 2022-11-15 09:45:01 +01:00
Johannes
5912ad3ff1 Merge branch 'main' into joh/rewrite-privates 2022-11-15 09:44:34 +01:00
Johannes
424a88c0ef missing JS files 2022-11-15 09:05:07 +01:00
Nathan Shively-Sanders
cb43019d6a Copy webServer from Typescript to VS Code (#165771)
* Initial draft.

Not working.
Also not correctly formatted, I'll do that later.

* Various fixes

It works now

* A bit of cleanup

* Move webServer to its own directory

And prepare for getting rid of dynamicImportCompat.js hack

* Remove dynamicImportCompat.js hack

* Revert unrelated change

* Webpac tsserver.web.js with webServer.ts as entrypoint

Instead of using CopyPlugin.

1. Shipping multiple entrypoints in a single file required fixes to
build code.
2. There are a couple of warnings from `require` calls in
tsserverlibrary.js. Those are not relevant since they're in non-web
code, but I haven't figured how to turn them off; they are fully dynamic
so `externals` didn't work.

* Ignore warnings from dynamic import in tsserver

* Add to .vscodeignore files
2022-11-14 10:56:31 -08:00
Johannes
aeb79e48a0 free memory when TS2TS mangling is done 2022-11-14 16:54:13 +01:00
Johannes
85c28e5927 improve printing of implicit public cases 2022-11-14 16:15:11 +01:00
Johannes
d481999d09 make TS-mangler part of compile-build 2022-11-14 15:55:02 +01:00
Johannes
201e6a3e11 make mangler a class with mangle call, return vinyl instances 2022-11-14 13:51:21 +01:00
Johannes
fb8187c953 source maps for build/lib 2022-11-14 11:57:01 +01:00
Johannes
66198056ea source maps for build/lib 2022-11-14 11:56:32 +01:00
Johannes
58e979f39e Merge branch 'main' into joh/rewrite-privates 2022-11-14 11:56:16 +01:00
Tyler James Leonhardt
964dc545ab Pickup bundle.l10n.json (#166169)
For npm modules that have bundled `@vscode/l10n`, they can export their strings to a bundle.l10n.json file which will get picked up by this change and included in the overall bundle for the extension.
2022-11-12 14:42:39 -08:00
Johannes
15cb324f3f do it all with the language service 2022-11-11 17:16:29 +01:00
Johannes
17737278ae rename to typescript manger, (mostly) use language service rename feature 2022-11-11 13:48:21 +01:00
Johannes
696c1cf199 build utils with source map to enable JS debug console 2022-11-10 15:05:47 +01:00
Matt Bierner
d950552131 Allow trailing commas while minifying json resources (#165870)
I noticed a few of our built-in extension's json resources were not being minified. The root cause appears to be trailing commas in the json
2022-11-08 14:38:53 -08:00
易良
59faab44cd Only use string of the remote/web/package.json browser field (#165163)
fix(build): Close #165162, only use string of the package.json `browser` field
2022-11-08 10:30:02 -05:00
Tyler James Leonhardt
a8ae2cedaf Include JS files in XLF creation for extensions (#165774)
* Bumps @vscode/l10n-dev to a version that supports JS files
* Pulls in JS files (and TSX & JSX) in addition to TS to account for scenarios like Emmet which pulls in @vscode/emmet-helper as an npm package
2022-11-07 19:50:39 -08:00
Tyler James Leonhardt
0249ba460f use the actual extension id as the id in the language pack (#165436)
Past behavior caused 404s to be thrown by the unpkg service because core was trying to load:

`${extensionId}` -> `vscode.markdown`

and not what the build creates in the language packs:
`vscode.${extensionFolder}` -> `vscode.markdown-basics`

this aligns build time and runtime.
2022-11-03 15:50:50 -07:00
Matt Bierner
e7e403d83f Bump target for build scripts (#165287) 2022-11-03 12:19:54 -07:00
Tyler James Leonhardt
0a80e31f6f Sort the keys in order to be more predictable (#164920)
sort the keys in order to be more predictable
2022-10-28 21:16:05 +02:00
Martin Aeschlimann
c83eff40dd Remove too many folding regions notification (#163854)
* Remove too many folding regions notification

* remove duplicate folding limit item for JSON/JSONC

* polish

* fix test
2022-10-17 14:42:02 -07:00
Tyler James Leonhardt
4502088b10 fix empty check for json (#163576) 2022-10-13 11:01:05 -07:00
Tyler James Leonhardt
77d14a4711 use size to check if any files were added (#163571)
use size
2022-10-13 09:54:57 -07:00