Граф коммитов

376 Коммитов

Автор SHA1 Сообщение Дата
Connor Peet d9578fd7ba
docs: prep for 1.95 2024-10-23 08:31:44 -07:00
Connor Peet 27839c9104
fix: apply sourceMapPathOverrides to file URIs (#2109)
Closes https://github.com/microsoft/vscode-dwarf-debugging-ext/issues/7
2024-10-21 21:55:16 +02:00
Connor Peet 8b0bffc47d
fix: allow hitting breakpoints early in webassembly (#2102)
V8 doesn't give us instrumentation breakpoints for WASM, so take a
primitive approach of overwriting WebAssembly compile/instantiate
methods with one that includes a `debugger;` statement after they're
done, and handle those as instrumentation.

Closes https://github.com/microsoft/vscode/issues/230875
2024-10-10 14:49:49 -07:00
Connor Peet e620efe184
fix: only autofill "debug link" input if the hostname resolves (#2096)
Fixes https://github.com/microsoft/vscode/issues/228950
2024-10-04 16:37:44 -07:00
Connor Peet 5eceb37b08
docs: for 1.94 2024-09-25 11:52:30 -07:00
Connor Peet caaec517b8
fix: running new npm scripts in internal terminal (#2082)
Fixes https://github.com/microsoft/vscode/issues/227285
2024-09-18 15:45:53 -07:00
Connor Peet ad7e68cde6
feat: improve display of HTML in the debugger (#2077)
* feat: improve display of HTML in the debugger

Advertises ANSI styles as proposed in https://github.com/microsoft/debug-adapter-protocol/issues/500,
though it works without them too, just without colors!

Previously the Nodes were displayed as naive objects, so we'd just
list their properties, which was quite useless when trying to get
a handle on the DOM. Now we display their children as the primary
element display, and have "Node Attributes" in a separate section.

![](https://memes.peet.io/img/24-09-9b2b35e1-3874-4e06-825a-5c84abeeb6e4.png)

Refs https://github.com/microsoft/vscode/pull/227729

* fix comment display
2024-09-10 11:33:19 -07:00
Connor Peet 4b4cd50ead
feat: update snippets for config resolution, add tool completion (#2067)
Fixes #1997

Also borrows some logic from Python to add a completion item to let
users pick a Node.js tool that they can run, from their
node_modules/.bin folder

![](https://memes.peet.io/img/24-08-8b1001ca-93a8-4ec3-be17-f8641eea61b7.png)
2024-08-31 07:32:19 +02:00
Connor Peet 9084de6219
fix: process attachment with --inspect=:1234 style (#2064)
Fixes #2063
2024-08-30 10:32:15 -07:00
Connor Peet a2f92c5354
docs: for 1.93 2024-08-27 15:48:16 -07:00
Connor Peet 3a658bfb5a
feat: adopt location references to link function locations (#2056)
Refs https://github.com/microsoft/debug-adapter-protocol/issues/343
2024-08-13 15:36:45 -07:00
Connor Peet 6e8a828147
feat: add basic network view, support experimental networking for node (#2053)
This adds a basic network tree view that shows requests and responses
in the debugee. It has a default "go to" action which opens a cURL
representation of the request, and context menu actions to open the
response body either in a text editor or the hex editor. It also has
actions to copy the URL and replay the request.

![](https://memes.peet.io/img/24-08-aa5f7f35-332f-4a60-9fbb-32ac79018b60.png)

I initially was hoping to turn this on by default for Node.js since
their networking support in 22.6.0 inspired this change, but their
functionality right now is very limited (we basically get the URL and
nothing else.) Therefore I added an option to turn it on, but it's not
on by default there.

I think I might end up toggling this off for the next stable release
for now until we can polish it some more, but it's ship it in nightly
to get some feedback!
2024-08-08 11:45:15 -07:00
Connor Peet ca1c645049
feat: support "debug url" in terminals created through the `node-terminal` launch type (#2050)
Fixes #2049
2024-08-02 12:36:11 -07:00
Connor Peet 14b430024c
fix: hover evaluation incorrectly showing undefined (#2048)
I haven't been quite able to reproduce this, but this is the
explaination I see for https://github.com/microsoft/vscode/issues/221503,
plausibly caused by sourcemap funkiness.

The root cause is that a hover evaluation's scope is being misidentified
as happening in a scope above the one it should actually run in. We then
saw this and thought we should hoist a variable, but don't find a
variable to hoist, and leave the replaced identifier in the expression.
If the scope were not misidentified, then the behavior would have been
identical because the variable would not be defined anyway.

In this PR we replace the identifier back to its original if we don't
find a variable to hoist, and also add logging to help any future
issues.
2024-07-26 02:07:22 +02:00
Connor Peet 32b99ba914
docs: for 1.92 2024-07-24 09:24:35 -07:00
Connor Peet 64df2686c9
fix: adopt changes required for CVE-2024-27980 patch (#2038)
Generalizes the formatSubprocessArguments function to all cases. Fixes EINVAL error in selfhost debugging.
2024-07-14 02:08:33 +02:00
Connor Peet 1d104b5184
fix: automatically guess outFiles in extension development
Fixes #2033
2024-07-05 23:55:35 +02:00
Connor Peet 2e43211a35
fix: debug targets orphaned when a detached child starts after a parent exits (#2031)
Fixes https://github.com/microsoft/vscode/issues/219673
2024-07-03 20:54:54 +02:00
Connor Peet a710e44c83
fix: breakpoints at unmapped locations setting in wrong locations (#2028)
Fixes https://github.com/microsoft/vscode/issues/219031
2024-06-28 09:21:23 -07:00
Connor Peet 0e9be07743
docs: prep for 1.91 2024-06-25 15:57:37 -07:00
Connor Peet 1ed8d34f26
feat: show correct values of shadowed variables in hovers (#2023)
* wip

* feat: show correct values of shadowed variables in hovers

Fixes a pain point I've had for years!

![](https://memes.peet.io/img/24-06-e64930d8-f2be-4723-8b61-0027216621bb.png)

Closes #2022
2024-06-21 20:21:27 +02:00
Connor Peet 573257eaad
fix: hanging on certain Linux environments (#2016)
Closes https://github.com/microsoft/vscode/issues/214872
2024-06-11 11:42:29 -07:00
Connor Peet c0e5db2078
docs: prep for 1.90 2024-05-28 14:39:53 -07:00
Connor Peet 14af88d558
Debugger may hang if a firewall is active
Fixes #2004
2024-04-29 10:32:03 -07:00
Connor Peet f82c9eb479
fix: improve protocol handling performance in all cases (#2002) 2024-04-26 11:33:44 -07:00
Connor Peet 7a11f7c245
fix: improve main-thread performance of source map rename
Reduces the extension-host runtime from about 1600ms on my machine to 2ms. We still parse the source asynchronously, but our application of mappings before was not efficient
2024-04-25 15:34:02 -07:00
Connor Peet acbc31ae89
docs: prep for 1.89 2024-04-24 11:29:53 -07:00
Connor Peet f5315ed19d
format and update options.md 2024-04-24 11:27:29 -07:00
Connor Peet d5f954ab15
fix: avoid forcing attach PID into debug mode with default arg (#1987)
Fixes https://github.com/microsoft/vscode/issues/206683
2024-04-05 16:15:47 -07:00
Connor Peet dfceaf103c
feat: resolve executables from (#1985)
ode_modules/.bin automatically

Fixes #1984
2024-04-03 15:09:06 -07:00
Connor Peet f0276c839e
docs: prep for 1.88 2024-03-22 13:18:15 -07:00
Connor Peet 35c4aea8e0
fix: attempt both ipv4 and ipv6 loopbacks for DWARF symbols (#1966) 2024-03-11 14:47:11 -07:00
Connor Peet 8ae86eacf2
fix: stacktraces during process shutdown not being sourcemapped (#1962)
* fix: stacktraces during process shutdown not being sourcemapped

Fixes https://github.com/microsoft/vscode/issues/178814

* fix windows test
2024-03-06 11:43:58 -08:00
Connor Peet 31cdfeb4da
fix: inconsistent display of strings with quotes (#1959)
Fixes https://github.com/microsoft/vscode/issues/182835
2024-03-02 09:28:29 -08:00
Connor Peet 9844d6346d
fix: 'start without debugging' not working (#1956)
Fixes https://github.com/microsoft/vscode/issues/206524
2024-02-29 11:38:35 -07:00
Connor Peet 300b525807
fix: resolve sourcemap coming from empty URLs
Do a proper fix for the original Electron issue

Fixes https://github.com/microsoft/vscode/issues/205952
2024-02-28 14:50:49 -08:00
Connor Peet 07aa257768
fix: race when stopping on node-internals exceptions (#1952)
* fix: race when stopping on node-internals exceptions

Fixes https://github.com/microsoft/vscode/issues/204581

* rm debug
2024-02-26 13:44:52 -08:00
Connor Peet 6858e89c81
fix: apply sourceMapPathOverrides to sourceURL scripts (#1950)
Fixes https://github.com/microsoft/vscode/issues/204784
2024-02-23 15:02:29 -08:00
Connor Peet 21dc655105
fix: off-by-one error leading to invalid renames
For https://github.com/microsoft/vscode-js-debug/issues/1948
2024-02-23 11:10:11 -08:00
Connor Peet 7cb5bb4407
docs: prep for 1.87 2024-02-18 21:53:02 -08:00
Connor Peet acd9b48589
feat: support running extension test CLI from launch.json (#1941)
Closes https://github.com/microsoft/vscode/issues/199211
2024-02-09 01:09:23 +01:00
Connor Peet f2a772424c
feat: lazily announce evaluated scripts (#1940)
Closes #1939
2024-02-05 11:52:38 -08:00
Connor Peet 5f87aa0c7c
fix: support object property shorthand in logpoints (#1935)
Fixes #1788
2024-01-31 21:20:41 +01:00
Connor Peet 3b01ac985e
fix: pages not loading in browser after attach browser disconnect (#1934)
Fixes #1795
2024-01-30 17:05:54 -08:00
Connor Peet 3ffab2a3e8
fix: skipFiles not matching/negating with special chars
Fixes https://github.com/microsoft/vscode/issues/203408
2024-01-29 13:17:43 -08:00
Connor Peet 10c0c9aa48
docs: prep for 1.86 2024-01-22 09:40:39 -10:00
Connor Peet f33da84750
fix: match mjs and cjs in outFiles by default (#1906)
Fixes https://github.com/microsoft/vscode/issues/200665

Requires use of my picomatch fork due to https://github.com/micromatch/picomatch/issues/125.
We could alternatively use brace expansion until that's fixed, but that's much less
efficient that using a logical or.
2023-12-12 17:47:15 -08:00
Connor Peet 6988eedb48
fix: show errors from cond bps, don't pause on internal exceptions (#1902)
* fix: show errors from cond bps, don't pause on internal exceptions

Fixes https://github.com/microsoft/vscode/issues/195062

* fix tests
2023-12-11 13:27:14 -08:00
Connor Peet 9263b0e004
fix: automatically reconnect when debugging browsers in port mode (#1899)
Fixes https://github.com/microsoft/vscode/issues/174033
2023-12-07 15:49:52 -09:00
Connor Peet 2568ba77d3
docs: for 1.85 2023-11-28 10:05:22 -05:00