Commit Graph

33 Commits

Author SHA1 Message Date
Matt Bierner
e779f86b17 Build script cleanup
For #277526

Quick cleanup pass after converting these scripts
2025-11-24 14:07:28 -08:00
Matt Bierner
2648263d3e Run our build scripts directly as typescript (#277567)
* Run our build scripts directly as typescript #277567

Follow up on #276864
For #277526

* Remove a few more ts-node references

* Fix linux and script reference

* Remove `_build-script` ref

* Fix script missing closing quote

* use type only import

* Fix export

* Make sure to run copy-policy-dto

* Make sure we run the copy-policy-dto script

* Enable `verbatimModuleSyntax`

* Pipelines fixes

* Try adding explicit ext to path

* Fix bad edit

* Revert extra `--`

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2025-11-21 14:56:00 +01:00
João Moreno
f4c2700d45 cleanup any casts (#270371)
related to #269213
cc @mjbvz @jrieken
2025-10-08 14:05:31 +00:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Matt Bierner
d865a99c49 Clean up some typings in build
- Adding ts-check in a few more js files
- Switching to use `@types` for a few more packages
- Remove some unused code
2025-08-07 09:38:52 -07:00
João Moreno
ce2c2f3c79 fix build (#238530)
* fix build

* fix build

* one more fix
2025-01-23 09:41:55 +01:00
Aman Karmani
e76c50f20e build: switch build/tsconfig.json to module: nodenext (#238426)
* build/tsconfig: switch to module: nodenext for bun compat

* build: rewrite imports for nodenext compat

* build: re-generate
2025-01-22 20:12:39 +01:00
Matt Bierner
51fa4d0172 Fix more type assertions (#230156)
* Fix more type assertions

For #211878

* Fix type error
2024-09-30 14:17:06 -07:00
Benjamin Pasero
332b89f198 esm - remove AMD build scripts, tests and variables 2024-09-27 08:04:01 +02:00
Benjamin Pasero
ca42f649a7 Allow to build an AMD version of VS Code (#227240) 2024-09-02 09:36:19 +02:00
Benjamin Pasero
6b924c5152 ESM merge to main (#227184)
Co-authored-by: Johannes Rieken <jrieken@microsoft.com>
Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2024-08-30 10:31:46 +02:00
Benjamin Pasero
0dea4804f4 esm - introduce VSCODE_BUILD_ESM variable (#225586) 2024-08-14 14:49:26 +02:00
Benjamin Pasero
284a605d61 NLS can get mixed up when stable overwrites insider metadata (fix #224385) (#224405) 2024-07-31 19:20:45 +02:00
Benjamin Pasero
f6f90e0163 Implement NLS without AMD loader (#214588) 2024-06-28 11:55:48 +02:00
Matt Bierner
0404d17da6 Fix nls build script on line such as localize2(...) ... localize(...) (#203851)
For #203842

I believe we need to apply the patches in character order. Otherwise the line ends up corrupted after the patching
2024-01-31 01:40:20 +01:00
Tyler James Leonhardt
a27dc7725c Introduce localize2 function (#194750)
* Introduce `localize2` function

This is syntax sugar around:
```
{ value localize('id', "Hello"), original: 'Hello' }
```

That will now be returned when you do:
```
localize2('id', "Hello");
```

* fix merge conflic

* new source map due to updated deps
2023-10-04 12:57:38 -07:00
Matt Bierner
cc74238173 Update to build VS Code using latest TS nightly (#146933)
* Fixing line height if drop into prompt wraps

* Use keybinding style for `shift` in overlay

* Update to build VS Code using latest TS nightly

* Fix compile error

* Bump TS

* Add constraint
2022-04-14 13:58:26 -07:00
Matt Bierner
bc9de9e7eb Pick up TS 4.7 for building VS Code (#145273)
Adds fixes for https://github.com/microsoft/TypeScript/issues/48276
2022-03-17 11:10:35 -07:00
João Moreno
fc4b40b633 fix type casts 2021-01-04 15:54:59 +01:00
Alexandru Dima
c1eb24b027 Load expensive node modules lazily 2020-12-22 19:55:56 +01:00
Matt Bierner
3fcb671444 Use es2017 as target for build scripts (#60707)
Upgrades our build scripts to target ES2017 since they are run on modern versions of node

This allows us to remove shims for es6 features such as `Object.assign`, and also remove a few extra typings packages
2018-10-12 11:24:15 -07:00
Matt Bierner
4b2aed7bb2 let -> const 2018-10-04 19:01:34 -07:00
Matt Bierner
8ecebfb761 var -> let 2018-10-04 19:01:34 -07:00
Matt Bierner
38fbec9568 Converting some require imports to import from imports
This ensures we pick up the correct typings for these imports
2018-10-03 14:18:36 -07:00
Matt Bierner
ddc5eeee01 Fixing more strict null errors in build 2018-10-03 10:47:32 -07:00
Benjamin Pasero
a23edada50 debt - avoid deprecated Buffer ctors 2018-02-26 13:09:54 +01:00
Matt Bierner
69afce7650 Build using TS 2.5 (#33705)
* Build using TS 2.5

Fixes #33704

* Remove explicit return type
2017-09-01 13:52:42 -07:00
Joao Moreno
8c7689c925 fixes #28650 2017-06-16 16:09:09 +02:00
Benjamin Pasero
61efd8fb23 build build/lib folder with latest 2017-03-06 16:32:23 +01:00
Alex Dima
9f0f868c65 Extract client compilation code out of gulpfile.js 2016-10-20 15:00:05 +02:00
Alex Dima
5ae54dd9d0 Reduce devDependencies 2016-10-20 15:00:00 +02:00
Joao Moreno
b027a0c492 fix up lint errors, cleanup build folder 2016-03-07 12:56:32 +01:00
Erich Gamma
8f35cc4768 Hello Code 2015-11-13 14:39:38 +01:00