Commit Graph
64 Commits
Author SHA1 Message Date
Felix Huang a83ef3a31c First Compile 2021-07-07 12:37:24 -07:00
gjsjohnmurray c3253befc0 fix #123831 handle command URL in ErrorResponse Message from debug adapter 2021-05-14 01:10:55 +01:00
isidor 6101771809 #118731 2021-04-20 16:02:07 +02:00
isidor 3a7cf0c9dc debug: update wording for safari dialog 2021-04-20 11:17:34 +02: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
isidor 4430569ad0 debug session: pass configuration as args for restart
#118196
2021-04-16 15:56:48 +02:00
isidor 239bc433cb Debugger: Add option to allow disconnect and stop/terminate UI elements
fixes #116731
2021-04-09 10:32:34 +02:00
Andre Weinand 65be3acf59 cleanup access to process.env; fixes #108804 2021-04-05 17:13:33 +02:00
Benjamin Pasero 7031abadea debt - less explicit any 2021-03-29 10:30:03 +02:00
isidor 0f6d7c41eb introduce customEndpointTelemetryService
fixes #118424
2021-03-10 20:31:25 +01:00
isidor a24cb4615a debug debt: remove unneneded check 2021-03-03 14:11:32 +01:00
Benjamin Pasero 493fa4bd31 💄 main.ts 2021-02-11 16:56:29 +01:00
Connor Peet 3088c27fbd debug: mark terminal as free when the associated debug session ends (#115573) 2021-02-02 08:27:37 -08:00
isidor 4649e1205f fixes #113725 2021-01-04 18:32:54 +01:00
Alex Dima 6edf58b9ae Avoid layer breaker (using process from /browser/) 2020-11-25 20:43:50 +01:00
Andre Weinand 5b243ab54b don't leak env vars into process.env; fixes #83187 2020-11-25 19:23:59 +01:00
isidor 6980e4e26e Implement the DAP Invalidate request
fixes #106745
2020-09-21 19:43:08 +02:00
Matt Bierner 50cc1d0e97 Update to use TS 4.1 for building VS Code 2020-09-16 11:58:01 -07:00
isidor 9a2a941075 debug: return result of a msg to debug adapter can be undefined 2020-09-10 12:28:56 +02:00
Connor Peet a288b1f1ea debug: improve language for noDebugAdapter
Fixes #105436
2020-08-31 13:55:53 -07:00
isidor 21e633cc63 Catch the potential 'disconnect' error - no need to show it to the user since the adapter is shutting down
fixes #103105
2020-08-11 17:26:27 +02:00
Connor PeetandAndre Weinand 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
isidor 054c34282e step into targets support
fixes #90793
2020-05-14 12:51:01 +02:00
SteVen Batten 4abcc03d6a update to telemetry service/callstack or exception 2020-04-27 17:33:44 -07:00
SteVen Batten c173ec392f update public logs 2020-04-08 12:47:28 -07:00
isidor 04b2d52822 fixes #93346 2020-03-26 11:51:12 +01:00
isidor 620ac0aebf debug: respect progress update event
#92253
2020-03-19 12:31:53 +01:00
isidor ec2ed03355 debug: expose onDidProgressStart and onDidProgressEvent
#92253
2020-03-17 18:59:34 +01:00
isidor d2d9498c73 debugSession: more precise errors 2020-03-11 13:06:54 +01:00
isidor 3967570db9 debug: increase disconnect timeout from 500 to 1000 ms 2020-03-05 17:43:29 +01:00
isidor 33e56c6b51 fixes #89658 2020-03-05 12:03:08 +01:00
isidor 33e78e0978 debug use 500 timeout for terminate (same as for disconnect)
fixes #87767
2020-02-18 16:29:20 +01:00
isidor 9b31cacba0 better error message #89658 2020-02-14 10:31:10 +01:00
isidor fc6e8fdac2 fixes #89059 2020-02-05 12:40:32 +01:00
isidor 3d3a7e22cb fixes #87745 2019-12-27 11:42:46 +01:00
isidor a1875d15c8 fixes #87605 2019-12-24 11:01:26 +01:00
isidor b9f0336dc3 Debug activity bar decoration when debugging
fixes #85674
2019-12-12 16:20:18 +01:00
isidor 85112b01b0 enable strictFunctionTypes in VS Code codebase 2019-12-12 15:14:06 +01:00
Andre Weinand a318b97373 properly pass CLI arguments 2019-10-22 17:02:22 +02:00
Andre Weinand ee432c084a don't use ParsedArgs in rawDebugSession; fixes #80461 2019-10-18 17:26:12 +02:00
isidor 3cc2460c3b debug: more async await 2019-10-14 17:51:00 +02:00
Martin Aeschlimann b10bf696e4 VSCode Insiders breaks into Chrome developer tools with "TypeError: Cannot read property 'layout' of undefined". Fixes #81063 2019-09-18 23:03:10 +02:00
Benjamin Pasero a62c6ee148 debt - add openExtensionDevelopmentHostWindow into IExtensionHostDebugService 2019-09-17 18:34:57 +02:00
isidor 50a0bd9eaa debug session: add breakpointLocations 2019-09-17 16:10:24 +02:00
isidor 64980ea1f3 debug: better cancelation support
fixes #80374
2019-09-13 13:02:09 +02:00
isidor 4285736fe8 debug: support canceling requests
fixes #80374
2019-09-12 18:02:00 +02:00
isidor e490d7cf56 rawDebugSession implements IDisposable 2019-09-12 16:37:46 +02:00
Martin Aeschlimann b283b29781 rawDebugSession: extensionDevelopmentPath is array. Fixes #80410 2019-09-05 21:23:58 +02:00
Martin Aeschlimann 1cab21cffb make string[] in ParsedArgs consistent 2019-09-05 15:46:05 +02:00