Commit Graph

34 Commits

Author SHA1 Message Date
Benjamin Pasero 04f0bcbd15 debt - some node.js module import 💄 (#264158) 2025-09-01 01:09:43 +09:00
Benjamin Pasero fc4f1d6739 Perf: startup regression in main bundle (fix #263533) (#263975)
* Perf: startup regression in main bundle (fix #263533)

* fix imports
2025-08-29 07:52:50 +00:00
Connor Peet 5b009d5328 debug: convert the renderer attacher to a standard websocket (#262546)
Allows better interoperability with other tools. `rendererDebugPort`
is not `rendererDebugAddr` which is a `ws://` address.
2025-08-20 21:34:19 +02:00
Connor Peet f4c18a6849 debug: add a command for attaching to the current window CDP (#261103)
* debug: add a command for attaching to the current window CDP

* fix
2025-08-11 15:25:55 -07: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
Robo ea490e5545 chore: update to Electron 25 (#188268)
* chore: update electron@25.3.0

* ci: update NodeTool version

* chore: update @types/node

* add more common types to layers checker

* chore: update debian dependencies

* chore: update rpm dependencies

* fix: use legacy dns result order of Node.js

* ci: remove deprecated always-auth npm config

Refs npm/cli@72a7eeb

* chore: update deb and rpm dependencies

* chore: update armhf rpm dependencies

* chore: update x64 debian dependencies

* chore: update x64 rpm dependencies

* chore: update electron@25.3.1

* chore: update electron@25.4.0

* chore: bump distro

* chore: bump distro

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2023-08-07 21:46:27 +09:00
Sandeep Somavarapu 07a5351472 Fix #160678 (#165747)
* Fix #160678

* review feedback
2022-11-08 05:33:25 -08:00
Andre Weinand d126b9f53a Remove a few exports (#165158)
* Remove a few `export`s

* don't omit indirect exports
2022-11-01 10:57:05 -07:00
Benjamin Pasero 4247ddeda1 perf - make window opening async and avoid sync disk access 2022-09-12 06:12:30 +02:00
Sandeep Somavarapu 771389ca51 refactor handling profiles from CLI 2022-09-06 17:58:18 +02:00
Sandeep Somavarapu a0eb24af11 support profiles in ext host debugging (#158806) 2022-08-22 20:53:22 +02:00
Connor Peet d130a278c6 debug: apply environment to remote extension host 2021-10-07 09:37:16 -07:00
Matt Bierner ee1655a82e Organize imports in vs/platform 2021-08-05 15:32:53 -07:00
isidor e74712bda1 fixes #118731 2021-04-20 08:59:33 +02:00
isidor 9dff5e0e01 debug: workaround to open new debugee window in Safari
fixes #118731
2021-04-19 20:11:20 +02:00
Matt Bierner e1f0f8f513 Add override keyword in codebase (#120755)
For #120675

This uses a script to add the override keyword to places that need it in the codebase

Note that we can't enable the --noImplicitOverride setting yet since there are still around 200 errors that require further attention
2021-04-08 10:05:20 -07:00
Andre Weinand 65be3acf59 cleanup access to process.env; fixes #108804 2021-04-05 17:13:33 +02:00
Benjamin Pasero 58e22bc522 window - type win as null if disposed 2021-02-16 11:27:43 +01:00
Benjamin Pasero d8a4891005 windows - first cut cleanup of windows finding logic 2020-12-14 08:23:30 +01:00
Connor Peet 7491d39190 Merge remote-tracking branch 'origin/master' into connor4312/native-exthost-log 2020-12-08 14:48:29 -08:00
Benjamin Pasero 878bf13504 debt - shuffle some electron-main code to better layers 2020-12-07 11:42:17 +01:00
Connor Peet 206fbe0bb3 debug: use native logging in extension host
https://github.com/microsoft/vscode/issues/104686
2020-11-23 11:41:46 -08:00
Connor Peet 8085054753 debug: try to wait for a debugger before running extensions (#108141) 2020-10-07 08:58:13 -07:00
Matt Bierner c348165cc0 Adding more explicit typings for promises
This gets us ready for TS 4.1
2020-09-09 09:21:56 -07:00
Benjamin Pasero e2d5e90ec4 debt - move extension debug IPC channel closer to interface 2020-08-31 17:10:19 +02:00
Connor Peet 08ed2b692a debug: allow debugging the renderer process (#100242)
* debug: allow debugging the renderer process

This adds a new parameter to the `launchVSCode` request --
`debugRenderer`. If set to true and we're in Electron, the main process
will attempt to stand up a CDP-speaking server and respond with the port
the debugger can connect to in order to handle debug events.

Note: this only works when webviews are iframe-based. It's _possible_
to do the same treatment to webviews with greater complexity. I didn't
implement that today, and maybe we say since iframes are coming
eventually (and they can be toggled on with a user setting that we could
have in the starter...) we don't need do add handling for that.

This does not work when debugging in web because there's no way to
force the browser to enter debug mode.

Code in this PR is still rough, I will keep this in PR until
I have js-debug working end to end and iron out any kinks.

* fixup! adopt new api

* webviews: add 'purpose' flag and extension ID to iframe webview uri

The `purpose` can be used for notebooks instead of the extension ID,
since there's no extension associated with the renderer view.

The renderer URL now looks like:

```
https://<guid>.vscode-webview-test.com/<random>/index.html?id=<guid>&extensionId=&purpose=notebookRenderer
```
And a renderer is:

```
https://<guid>.vscode-webview-test.com/<random>/index.html?id=<guid>&extensionId=connor4312.vsix-viewer&purpose=undefined
```
I wanted to put this in the page title, but unfortunately this is hard
due to https://bugs.chromium.org/p/chromium/issues/detail?id=1058108.
Instead, add it to the url which _is_ available and given in
the first targetInfoChanged event.

Co-authored-by: Andre Weinand <aweinand@microsoft.com>
2020-06-25 11:54:36 -07:00
Matt Bierner cadabab73f Mark _serviceBrand properties using declare (#99312)
_serviceBrand is only used for typing and should not result in emit

Also adds readonly
2020-06-05 11:04:15 -07:00
Andre Weinand b2fd9bfcf6 Remove IElectronService.openExtensionDevelopmentHostWindow; fixes #81060 2019-10-25 15:50:51 +02:00
Andre Weinand ee432c084a don't use ParsedArgs in rawDebugSession; fixes #80461 2019-10-18 17:26:12 +02:00
Matt Bierner 029009eafd Marking most private emitters as readonly
Emitters should generally not be reassigned as their corresponding event would also be lost. Marking these as readonly just to enforce this
2019-09-23 17:31:18 -07:00
Benjamin Pasero a62c6ee148 debt - add openExtensionDevelopmentHostWindow into IExtensionHostDebugService 2019-09-17 18:34:57 +02:00
Johannes Rieken dedf0de944 change type of _serviceBrand from any to undefined, #79918 2019-08-30 15:40:46 +02:00
Andre Weinand 3718b5c46d make ExtensionHostDebugChannelClient disposable 2019-07-22 13:09:54 +02:00
Andre Weinand fb0e9f7d03 cleanup ExtensionHostDebugService 2019-07-18 11:56:42 +02:00