Commit Graph

66 Commits

Author SHA1 Message Date
Rob Lourens
cf47b76c63 Finalize notebookDebugOptions API (#163316)
* Finalize notebookDebugOptions API
Fix #147264

* Backcompat for the option from vscode-jupyter

* Undo comment

* Fix build
2022-10-11 20:25:51 -07:00
Matt Bierner
f17b33faf2 Use .?method() in more places (#152112)
Switches simple patterns like:

```ts
if (some.thing) {
    some.thing.method();
}
```

to:

```ts
some.thing?.method()
```

This is more concise and avoids having to repeat the `some.thing` part
2022-06-15 16:28:31 +00:00
Connor Peet
0de44f9786 variables: allow resolving extensionDir (#146274)
* variables: allow resolving `extensionDir`

This allows us to fix https://github.com/microsoft/vscode-remote-release/issues/5516#issuecomment-911597917

It enables a new replacement in the format `${extensionDir:<id>}` which
will expand to the filesystem path where the extension is stored. This
involved churn, since now resolution is always synchronous (where before
the terminal took a synchronous-only path.)

Additionally, changes were needed to inject this information in the
variable resolver. As part of this I made the extension host resolver
(used by debug and tasks) its own extension host service.

* fixup! preserve object key order in resolution, add extensionDir support

* fixup! address pr comments

* fixup! address pr comments

* fixup! address pr comments

* config: fix config replacement only working for first variable per line

* fixup! fix unit tests
2022-04-07 08:06:31 -07:00
Logan Ramos
135a162106 Rename .groups to .all again 2022-04-05 15:06:31 -04:00
Logan Ramos
a2d8edb83d Tabs API renaming 2022-03-21 13:35:34 -04:00
Logan Ramos
4d9393e9d3 Renamed NotebookEditorDiffTabInput 2022-03-18 12:53:55 -04:00
Logan Ramos
1f244e76c7 Unnecessary null safety 2022-03-18 09:53:25 -04:00
Logan Ramos
3aa9892461 Fix casting 2022-03-18 09:52:41 -04:00
Logan Ramos
85c3df0dde Tie in tab input, remove cleanup .d.ts 2022-03-17 16:54:44 -04:00
Logan Ramos
53aaa205e6 Fix #144605 2022-03-14 13:26:45 -04:00
Logan Ramos
ec9df1d972 Update tabs model to utilize the new API shape (#142668)
* Change shape of the tabs API

* Disable tab tests for now

* Add an onDidChangeTabGroup event

* Optimize for group activate

* Update events to no longer be an array

* Further tab optimization
2022-02-10 15:09:11 -05:00
Bruce Hopkins
1a17c0f2ef Add user home variable (#141902) 2022-02-07 16:21:39 +01:00
Johannes Rieken
4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Johannes Rieken
18ea5bd715 have one Dto-type, drop functions, move into proxyIdentifier-file 2022-01-18 18:24:05 +01:00
Logan Ramos
fe53ae0c9f Add side by side editor to tab api proposal 2021-09-02 15:17:58 -04:00
Rob Lourens
cdc8e53cf3 Add DebugSessionOptions suppressSaveBeforeStart
See microsoft/vscode-jupyter#6898
2021-09-02 11:05:13 -07:00
Andre Weinand
67b4efe22c new DebugSessionOption 'lifecycleManagedByParent'; fixes #128058 2021-07-20 17:24:05 +02:00
Rob Lourens
247e62d79a Add flag for "simple" debug UI (#128801)
* Implement simple debug UI mode

* Don't show debug viewlet on step

* Move flag to proposed

* Pass around full debugUI options object

* Implement isSimpleUI in mock
2021-07-19 17:49:17 -07:00
Matt Bierner
24a23a8ea0 Mark array params in vscode.d.ts readonly (#124599)
I recently ran into an issue where I was trying to call showQuickPick with a readonly array. This is currently not allowed, even though `showQuickPick` never mutates the input

This change marks a few places in `vscode.d.ts` where we take arrays as parameters as `readonly []`. It also caught a potential bug with`getSession` modifying the input array
2021-05-25 18:18:47 -07:00
Connor Peet
e657d42281 debug: expose parent session on DebugSessions
For https://github.com/microsoft/vscode/issues/123403
2021-05-18 11:56:09 -07:00
Alex Ross
f41b6e6d81 Add active editor to editor tabs and use in variable resolver (#123450) 2021-05-11 01:47:28 -07:00
Alex Ross
6a78187837 Remove deprecated sync methods from configuration resolver
Part of #108804
2021-04-22 14:41:31 +02:00
Alex Ross
0215117ec6 Make easy adoptions of async configuation resolver service (#120326)
* Make easy adoptions of async configuation resolver service
Part of #108804

* Also adopt in exthostDebug

* Add another terminal adoption
2021-04-06 11:25:56 +02:00
Benjamin Pasero
1441ba91f0 environment - consistently handle VSCODE_CWD in all our node.js processes 2021-03-15 11:22:42 +01:00
Daniel Imms
9dbc765a38 Add appDirname variable
Part of #115053
2021-02-03 07:50:58 -08:00
Johannes Rieken
74937e0a89 Merge pull request #115530 from microsoft/joh/norpc
Hide API implementation proxies, add tests to check for "proxy leakage"
2021-02-03 09:17:56 +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
Johannes Rieken
3114b1c4c5 hide rpc proxies 2021-02-01 12:01:20 +01:00
Andre Weinand
3f37b664fc adhere to DAP spec; fixes #114229 2021-01-13 11:03:20 +01:00
Andre Weinand
93a0ad81c3 Merge branch 'master' into launch-multi-root-args 2020-11-18 11:48:37 +01:00
Andre Weinand
876d1f09cc introduce new variable ${fileWorkspaceFolder}; fixes #84162 2020-11-16 13:09:50 +01:00
isidor
081632d225 debug: remove legacy adapterExecutableCommand 2020-11-06 14:59:00 +01:00
Alex Ross
49ec999d80 Better variable resolve on remote
Part of microsoft/vscode-remote-release#2619
2020-09-15 13:30:34 +02:00
Andre Weinand
36969b3cf9 Merge branch 'master' into add-debug-adapter-named-pipe-server 2020-08-19 11:41:18 +02:00
Andre Weinand
5ccf8034de make return type of getDebugProtocolBreakpoint async 2020-08-18 19:16:08 +02:00
Andre Weinand
c233bf87bc add API to access DAP breakpoints; see #99716 2020-08-17 12:30:02 +02:00
Andre Weinand
95dcdf2c58 make session arg optional; fixes #103934 2020-08-06 14:01:54 +02:00
Tyler Leonhardt
10a5d09ed5 Add DebugAdapterNamedPipeServer 2020-07-23 15:40:13 -07:00
Andre Weinand
b572b43606 remove not used proposed API; see #101883 2020-07-22 09:44:03 +02:00
Andre Weinand
673e35d278 new proposed API stopDebugging; see #101883 2020-07-09 10:49:22 +02:00
Andre Weinand
e308dd3b36 add DebugSession.terminate; see #101883 2020-07-08 18:29:01 +02:00
isidor
a301dc553b change noCompress -> compress and make default to not compress sessions in call stack
#101429
2020-07-02 11:37:35 +02:00
isidor
8e40c436dd introduce noCompact flag to DebugSessionOptions
#100852
2020-06-25 10:03:16 +02:00
Andre Weinand
f9c6fa3161 properly resolve ${file} variable; fixes #95423 2020-06-15 22:44:51 +02:00
isidor
cc06e19b15 Introduce DebugSessionOptions.noDebug
#99743
2020-06-12 17:33:00 +02:00
Borja Zarco
bed300cd4f Don't fail when resolving config variables without a folderUri.
Config variables cannot define a workspace folder, but resolution was using `getFolderUri` and failing when undefined, even though `getConfigurationValue` implementations have logic to handle it. This PR changes the logic to simply forward folderUri to `getConfigurationValue`, which can be undefined.
2020-05-20 23:07:16 -04:00
Andre Weinand
8ec6ec7dc1 rename "Trigger" to "TriggerKind"; see #88230 2020-04-27 16:07:26 +02:00
Andre Weinand
78b071d803 proposed dynamic launch config API: rename 'scope' to 'trigger' 2020-04-26 19:00:47 +02:00
Andre Weinand
1451fab698 add dynamic debug config API 2020-04-20 13:26:20 +02:00
Matt Bierner
0e854e6e46 Remove extra checks for non-nullable functions/properties (#94631)
TS 3.9 is smarter about catching cases where an if statement is always true. This revealed a few places in our codebase where we were checking to see if a function property exists before calling it, but the property is not nullable
2020-04-13 16:07:29 -07:00