122 Commits

Author SHA1 Message Date
Aman Karmani
e539ff9ae1
[engineering] remove dead references to Swc transpile (#252375) 2025-06-25 10:40:10 +02:00
Megan Rogge
8eb7fac565
add tests for terminal suggest widget, fix some bugs (#234445) 2024-11-24 10:38:19 -05:00
Tyler James Leonhardt
305134296c
Adopt the MSAL broker to talk to the OS for Microsoft auth (#233739)
This adopts the `NativeBrokerPlugin` provided by `@azure/msal-node-extensions` to provide the ability to use auth state from the OS, and show native auth dialogs instead of going to the browser.

This has several pieces:
* The adoption of the broker in the microsoft-authentication extension:
  * Adding `NativeBrokerPlugin` to our PCAs
  * Using the proposed handle API to pass the native window handle down to MSAL calls (btw, this API will change in a follow up PR)
  * Adopting an AccountAccess layer to handle:
    * giving the user control of which accounts VS Code uses
    * an eventing layer so that auth state can be updated across multiple windows
* Getting the extension to build properly and only build what it really needs. This required several package.json/webpack hacks:
  * Use a fake keytar since we don't use the feature in `@azure/msal-node-extensions` that uses keytar
  * Use a fake dpapi layer since we don't use the feature in  `@azure/msal-node-extensions` that uses it
  * Ensure the msal runtime `.node` and `.dll` files are included in the bundle
* Get the VS Code build to allow a native node module in an extension: by having a list of native extensions that will be built in the "ci" part of the build - in other words when VS Code is building on the target platform

There are a couple of followups:
* Refactor the `handle` API to handle (heh) Auxiliary Windows https://github.com/microsoft/vscode/issues/233106
* Separate the call to `acquireTokenSilent` and `acquireTokenInteractive` and all the usage of this native node module into a separate process or maybe in Core... we'll see. Something to experiment with after we have something working. NEEDS FOLLOW UP ISSUE

Fixes https://github.com/microsoft/vscode/issues/229431
2024-11-15 20:53:28 +09:00
Alex Ross
e6f2cc2f0a
Add an easy way to run performance tests for tree-sitter (#233072)
* Add an easy way to run performance tests for tree-sitter
Part os #210475

* Compile build folder
2024-11-05 15:35:58 +01:00
Tyler James Leonhardt
1349397cf7
Remove vscode-nls-dev dependency (#228002)
This was when extensions used the old localization stuff. None of this is used anymore.
2024-09-09 18:28:32 +02:00
Johannes Rieken
97ef3ff276
first cut of import helper extension (#227203) 2024-08-30 14:37:52 +02:00
Matt Bierner
7174171947
Move MD server into own package (#212387)
* Move MD server into own package

* Remove a few more refs

* Try glob

* Move glob

* More glob

* Add logging

* Tweak glob again

* Use webpack to copy over files

* Remove a few more refs to server

* Fix debug check
2024-07-12 14:04:42 -07:00
João Moreno
addd445017
upload sourcemaps to CDN instead of ticino (#214141) 2024-06-03 16:10:01 +02:00
Connor Peet
d42fad27b2
eng: move selfhost test provider as a workspace extension (#208699)
Testing #208184, closes #207756
2024-03-28 09:08:23 -07:00
Sandeep Somavarapu
337f8e4ee2
adopt building extensions (#207731)
* adopt building extensions
- remove the dependency on extensions folder

* fix build

* rename

* minimise changes

* clean up

* use regex
2024-03-15 15:06:28 +01:00
Connor Peet
06eee91ac7
eng: update CLI and a fix for extension test coverage (#204662) 2024-02-08 00:37:58 +01:00
Connor Peet
71282c3d52
forwarding: add built-in tunnel forwarding extension (#189874)
* forwarding: add built-in tunnel forwarding extension

- Support public/private ports, which accounts for most of the work in
  the CLI. Previously ports were only privat.
- Make the extension built-in. Ported from the remote-containers
  extension with some tweaks for privacy and durability.
- This also removes the opt-in flag, by not reimplementing it 😛

Fixes https://github.com/microsoft/vscode/issues/189677
Fixes https://github.com/microsoft/vscode/issues/189678

* fixup! comments

---------

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2023-08-08 22:00:03 +01:00
Johannes
978bb08619
add extensions-ci-pr task which does a full build without mangling 2023-06-07 16:36:02 +02:00
aamunger
11c5e141ab
added notebook output renderer tests 2023-03-16 12:10:24 -07:00
Matt Bierner
d0d28a6295
Reapply building of web server (#166391)
* Reapply building of web server

Revert 8b4642ab23a9b8c7fd00a37c70af545c121cc2ef

* 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 cb43019d6af7fdf91fe6d21959ac32b09d80afc6.
2022-11-15 14:45:32 +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
Connor Peet
18f743d534
address pr comments 2022-10-05 12:56:07 -07:00
Matt Bierner
c2a2ad4f63
Rename image-preview extension to media-preview (#162093)
Fixes #162092

Also removes `aac` from the list of supported audio formats
2022-09-27 21:01:14 -07:00
Benjamin Pasero
9db57e76e9
Build: bundle / concat entry points (#161161)
* perf - concatenate windows main files

* Revert "Revert "Use `esbuild` to bundle some CommonJS main files (#160957)" (#161118)"

This reverts commit 84c46b71a5d292a0a9c6cae60e850088270db37d.

* build - exclude server main files

* build - make concat a task that runs like the others

* some renames

* Avoid overwriting the nodejs closure require

* Revert "build - exclude server main files"

This reverts commit 736516624ea73fd13a4e2ac5359e5b54ec851553.

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-21 00:38:44 -07:00
Benjamin Pasero
84c46b71a5
Revert "Use esbuild to bundle some CommonJS main files (#160957)" (#161118)
This reverts commit 2179e52fb9a29ff8b666d3e09182d947b9c199e6.
2022-09-16 09:31:44 -07:00
Benjamin Pasero
2179e52fb9
Use esbuild to bundle some CommonJS main files (#160957)
* ensure node.js `require` is captured

* optimize `main.js` and `cli.js`

* cleanup

* leave out bundled files

* drop package.json from userdata paths

* fix web task

* fix editor distro

* inline version into `product.json`

* also bundle server

* t

* actually do server too

* Keep bundling nls in editor worker

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-16 05:24:23 -07:00
Rob Lourens
c717237d7c
Reenable a couple notebook smoketests (#159521)
* Remove vscode-notebook-tests in favor of an .ipynb in vscode-smoketest-express

* Update build folder

* Add build task to correct platform

* Build for smoke tests on other platforms

* Fix repo url and remove comment

* Just -media?

* Update darwin/win32 as well
2022-09-14 13:22:16 -07:00
Johannes
d6f5727021
also use SWC for extensions transpile 2022-09-07 11:18:53 +02:00
Connor Peet
ca48c64699
build: cache built-in extensions to avoid rate limiting (#156918) 2022-08-03 00:27:16 +02:00
Matt Bierner
ad9675f099
Scaffold out basic markdown language server (#154293)
* Scaffold out basic markdown lsp

This scaffolds out a new markdown language server and then uses it to implement document symbols. After the change, the markdown extension will have the following structure:

- languageService — Where all the LSP language stuff will eventually land
- server — The actual language server. Consumes ` languageService`
- src — The current extension that launches the server and implements VS Code specific functions

* Adding build scripts

* a

* Use language service from github

* Remove ls build scripts

* Bump versions

* Only build ext

* Enable for web

* Fixing for browser
2022-07-06 16:03:24 -07: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
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
Johannes
eda80f2065
Merge branch 'main' into joh/voluminous-lobster 2022-06-09 16:47:09 +02:00
Johannes
ba66d68c76
add transpile only stream to tsb, using ts.transpile.
https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-simple-transform-function
2022-06-09 15:00:55 +02:00
Johannes
0656d21d11
auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Johannes
c13d581bce
move gulp-tsb into the build/lib remove as dependency 2022-05-05 11:35:33 +02:00
Johannes
d3e6eb992b
move references-viewlet into extensions/-folder 2022-05-03 16:46:13 +02:00
Connor Peet
5e86e40fab
extensions: pull from github in OSS build (#146863)
* extensions: pull from github in OSS build

* fixup! address pr comment
2022-04-10 22:36:12 -07:00
Matt Bierner
f71bd27ec9
Adding type annotations 2022-02-28 14:32:12 -08:00
Tyler James Leonhardt
f67a8b753f
Use device flow over PAT when we are running in a server full environment but not in a supported uri (#139255)
* initial attempt

* use github-authentication instead

* rework error handling

* update copy

* explain why Workspace
2021-12-15 22:07:49 -05:00
Ladislau Szomoru
bfad20be9d
Extract remote source provider registry into the vscode.git-base extension (#137656) 2021-11-24 20:48:44 +01:00
Jean Pierre
556ce85c82
Fixes #137568 (#137570) 2021-11-24 04:42:44 -08:00
Rob Lourens
5793ae026a Rename serializer extension and set up build scripts 2021-07-21 15:03:24 -07:00
Connor Peet
6cc4e560f7
testing: remove unused testing-editor-contributions
Fixes #127691
2021-07-07 15:38:27 -07:00
Matt Bierner
0a57fd87b1
Enable math in markdown preview
Fixes #124783
2021-06-08 09:58:54 -07:00
João Moreno
d0d80ec337
fix build 2021-05-27 11:50:04 +02:00
João Moreno
d777991656
move buildExtensionMedia to lib 2021-05-26 20:38:28 +02:00
Matt Bierner
7770708545
Reapply markup renderers change
Rewriting how we do replacements in the webviewPreloads function to hopefully handle optimization better
2021-04-28 10:44:25 -07:00
Matt Bierner
fe7c5aba01
Revert "Better notebook markup renderer api (#121882)"
This reverts commit 4cb27d2ec761f8b341ee6803c8111b8ed05367cf.
2021-04-26 19:43:16 -07:00
Matt Bierner
4cb27d2ec7
Better notebook markup renderer api (#121882)
* Better notebook markup renderer api

For #121256

- Use js modules for notebook output renderers
- Rename apis from `markdown` to `markup`
- Use imports and exports for apis instead of globals for apis
- Use esbuild instead of webpack so we can emit js modules
- Clearly split top level markup renderes from renderers that extend other renderers

* Use constant instead of comment for replacement
2021-04-26 16:30:34 -07:00
Matt Bierner
9bacf617b2
Use clearer variable names 2021-04-21 00:21:48 -07:00
Christof Marti
40a6563f9b Remove git-ui extension 2021-04-13 21:38:53 +02:00
Matt Bierner
f8c1ffbb0c Build simple-browser media during watch
Fixes #119795

This lets us avoid having these files checked in
2021-03-24 12:27:30 -07:00
Matt Bierner
c0885dd0c4
Add task to build extension media (#119294)
This lets us avoid checking in the compiled js files that are used inside webviews and notebooks
2021-03-18 19:15:59 -07:00