Commit Graph

4614 Commits

Author SHA1 Message Date
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
Connor Peet c47751948c cli: add service integration for systemd (#166328)
systemd, like most 'modern' linux components, has a nice dbus API. This uses
that API to register the tunnel as a service of the calling user.

The dbus dependency is temporarily duplicated, until secret-service 3 is
released, where they update to the latest version (should be a week or two).

For https://github.com/microsoft/vscode-cli/issues/367. Next up, macOS,
then it's done :)
2022-11-14 21:39:05 -08: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
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
Ramón Corominas c9f32595a6 Update messages.es.isl to add context menu hotkey (#166010)
* Update messages.es.isl

Add a hotkey to allow opening with Code from the context menu also in Spanish

* fix encoding

Co-authored-by: Joao Moreno <joao.moreno@microsoft.com>
2022-11-11 01:34:09 -08:00
João Moreno 59814267dd Use new Key Vault account (#166049)
use separate keyvault
2022-11-11 09:38:36 +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
Connor Peet 1d4beede78 Merge pull request #165773 from microsoft/connor4312/cli-pin-rust-version
cli: pin rust (and clippy) version for builds
2022-11-07 20:26:26 -08: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
Connor Peet 63fbcea804 cli: pin rust (and clippy) version for builds 2022-11-07 17:56:35 -08:00
Connor Peet eb7c77c508 cli: only build common platforms in ci
Fixes #165140
2022-11-07 11:08:57 -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
Logan Ramos c6210c1c58 Reduce loaded web modules (#165369) 2022-11-03 08:36:45 -07:00
Alexandru Dima 4608b378a8 Align cache key across OSes (#165042) 2022-11-03 14:48:47 +01:00
João Moreno b0da2ea781 fix Alpine builds with npm custom registry (#165137)
fixes #165135
2022-11-01 07:28:06 -07:00
João Moreno be022daa1a add 🚀 build tag to builds which go through publishing (#165145) 2022-11-01 04:15:50 -07:00
João Moreno 0a19bf0e8f fix inno setup build for non-insider qualities (#165143)
fixes #165142
2022-11-01 03:53:58 -07:00
Matt Bierner d1c401cbde Pick up latest TS for building VS Code (#165104)
* Pick up latest TS for building VS Code

* Pick up latest node typings

* Bump node types
2022-11-01 02:43:09 -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
Ladislau Szomoru c7647cd307 Engineering - Add quality in the build name (#164855)
Add quality in the build name
2022-10-28 10:01:45 +02:00
Alexandru Dima ba91a81c16 Always patch the npm registry in yarn.lock files and compute the node modules cache key after having patched them (#164795) 2022-10-27 12:31:15 +02:00
Alexandru Dima c3eebaead9 Fix accidental deletion of vscode.proposed.contribNotebookStaticPreloads.d.ts and make sure to include the check in the compile-build gulp task (#164681) 2022-10-26 10:59:54 +02:00
Matt Bierner 0c6cc3a886 Let markdown strings specify a list of commands that they allow (#163915)
* Let markdown strings specify a list of commands that they allow

Fixes #163913

* Fix name
2022-10-24 14:15:44 -07:00
Connor Peet ed54a91fd0 build: parallelize cli build
Put all win and macOS builds on their own machine, since they take a minute.
Build the two GNU ARM builds together on an x64 machine, since they're
faster and can cross-compile in ~5 minutes.

This makes the CompileCLI step take a little less time than the VS Code
"Compile" step.
2022-10-24 12:01:03 -07:00
Johannes Rieken fec87f38cb Analyse profiles in worker thread (#164468)
- profile renderer returns profile data
- analyse profiles in separate worker thread
- adjust renderer and extension host profiling
- adjust build scripts to build worker file
2022-10-24 17:42:54 +02:00
Ladislau Szomoru b757c8e3ca Engineering - Pin macOS build agent (#164455)
Pin macOS build agent
2022-10-24 06:38:26 -07:00
João Moreno 8fe6f3e917 Allow custom npm registries at build time (#163629)
* use azure artifacts as new terrapin solution

* debug

* skip npm auth

* bring back

* also configure yarn

* custom npm registry

* oops

* powershell

* use none instead of empty string

* uff
2022-10-24 09:24:44 +02:00
Robo bece5db818 chore: cleanup inno setup for context menu install (#164411) 2022-10-24 06:45:20 +02:00
Martin Aeschlimann f10e84118b ci: use tunnelApplicationName (#164257)
fix location of tunnel command in CI and in code
2022-10-23 20:12:23 +03:00
Connor Peet b3a0ecc97f Merge pull request #164270 from microsoft/connor4312/use-packaged-openssl
build: use packages openssl instead of compiling during builds
2022-10-21 11:35:18 -07:00
Robo ebea50afee feat: bundle sparse package to integrate with windows context menu (#151186)
* chore: bundle and sign explorer appx

* chore: bump vscode-explorer-command@3.0.1

* chore: explorer install/uninstall stage for appx

* chore: fix format for cmd exec

* chore: cmd file path needs triple quotes

* chore: update vscode-explorer-command@3.0.2

* chore: add reg key for new context menu title

* chore: update vscode-explorer-command@3.0.3

* fix: guard behind insider quality

* chore: fix merge conflict

* fix: type mismatch

* chore: restrict context menu related actions for win11

* refactor appx loading/unloading, revert inno updater

* update powershell

* chore: undo inno_updater changes

* fix: appx install script

* fix: perform install after update step

* fix: mv appx install to files section

* chore: additional fixes

- Remove old context menu entries when updating to newer version
- Remove context menu entry when reinstalling without menu action selected.

* chore: update vscode-explorer-command@3.0.4

- Fixes garbled title for system installation

Co-authored-by: Joao Moreno <joao.moreno@microsoft.com>
2022-10-21 20:17:30 +02:00
Connor Peet fff294400b Merge remote-tracking branch 'origin/main' into connor4312/use-packaged-openssl 2022-10-21 10:55:13 -07:00
Connor Peet c3692c96f6 build: use npm instead of universal for arm compatibility 2022-10-21 10:21:02 -07:00
Sandeep Somavarapu c1ac223c69 fix node-vsce-sign (#164253)
* update distro

* add vsce-sign to asar

* filter node-vsce-sign

* update distro
2022-10-21 08:25:36 -07:00
Abhishek Singh 9509e6f3ef increase innosetup minversion to win8 (#163040)
* increase innosetup minversion to win8

* Update build/win32/code.iss

Co-authored-by: João Moreno <mail@joaomoreno.com>
2022-10-21 16:54:05 +02:00
Connor Peet abf905e5dd build: cleanup old cmakes 2022-10-20 18:33:06 -07:00
Connor Peet ddd4431d14 build: fix git auth with cli 2022-10-20 18:25:19 -07:00
Connor Peet 883bac79c4 build: fix
Local debug stuff got onto main
2022-10-20 17:59:16 -07:00
Connor Peet bf36a10c47 cli: use packaged openssl instead of artisanal builds 2022-10-20 17:14:14 -07:00
Connor Peet 0cc08da37a cli: build the tunnel cli by default 2022-10-20 16:58:02 -07:00
Connor Peet 8ba5882fb8 Merge pull request #163971 from microsoft/connor4312/cli-vcpkg
cli: use vcpkg for everything
2022-10-20 16:45:18 -07:00
Connor Peet c536595a7f cli: fallback to system installs in the standalone CLI
The standalone CLI should detect and fall back to using and
system-installed VS Code instance, rather than trying to download zips
and manage its own VS Code instances.

There are three approaches used for discovery:

- On Windows, we can easily and quickly read the register to find
  installed versions based on their app ID.
- On macOS, we initially look in `/Applications` and fall back to the
  slow `system_profiler` command to list app .app's if that fails.
- On Linux, we just look in the PATH. I believe all Linux installers
  (snap, dep, rpm) automatically add VS Code to the user's PATH.

Failing this, the user can also manually specify their installation dir,
using the command `code version use stable --install-dir /path/to/vscode`.

Fixes #164159
2022-10-20 10:54:13 -07:00
Connor Peet 8bfd07de06 update client builds to pull the right artifacts 2022-10-18 15:42:31 -07:00
Connor Peet 691ffd27c2 fix missing sudo 2022-10-18 15:05:49 -07:00
Connor Peet 067db8e75b set linker for armhf correctly 2022-10-18 14:59:21 -07:00
Connor Peet ed0a21eda6 Merge remote-tracking branch 'origin/main' into connor4312/msrustup 2022-10-18 14:25:51 -07:00
Connor Peet 24a51e506f try using vcpkg for everything 2022-10-18 10:58:50 -07:00