Commit Graph

3006 Commits

Author SHA1 Message Date
Daniel Imms
af3c79edcb Move ExtensionContext.environmentVariableCollection to stable
Fixes #46696
2020-05-06 03:03:57 -07:00
Daniel Imms
d62c642e3f Don't use environment collections when using strictEnv
Fixes #96630
2020-04-30 14:09:52 -07:00
Daniel Imms
7f5bada046 Move EnvironmentVariableCollection API into ExtensionContext (#96061)
* Move env var collection to ext context

* Remove dispose, fix persistent passing

* Fire collection change on persistence change

* Fix tests by forcing activation and getting ctx

* chore: bump js-debug

Co-authored-by: Connor Peet <connor@peet.io>
2020-04-24 16:45:30 -07:00
Alex Dima
f41b5754bb Fix compilation error on master 2020-04-24 21:44:33 +02:00
Daniel Imms
ae21a79256 Apply the environment in remote 2020-03-27 15:48:07 -07:00
Daniel Imms
fc0712520f Add api tests for env var collections
This does not cover the persisted case
2020-03-27 09:30:32 -07:00
Daniel Imms
000f8392b3 Only persist collections marked to do so 2020-03-27 09:03:53 -07:00
Daniel Imms
d91532afa8 Load in persisted collections from past sessions on ext host 2020-03-27 07:44:56 -07:00
Daniel Imms
1235bd0a60 Support diffs of collections, extracting additions 2020-03-26 16:51:04 -07:00
Daniel Imms
edc7100114 Apply multiple extension mutators, share code with ext host 2020-03-26 15:40:03 -07:00
Daniel Imms
540232e38f Handle persisting and invalidating of collections 2020-03-26 11:20:23 -07:00
Daniel Imms
e775d54e2b Apply ext env changes to new terminals 2020-03-25 12:45:37 -07:00
Daniel Imms
556550a29a Fire debounced event on change 2020-03-25 12:15:42 -07:00
Daniel Imms
05225c7f36 Resolve merged collection 2020-03-25 12:07:21 -07:00
Daniel Imms
ed9e7241b7 Move single ext collection updates across 2020-03-25 11:57:12 -07:00
Daniel Imms
8ee60554b5 Send collections to renderer 2020-03-25 07:51:05 -07:00
Daniel Imms
b2a9d4dd61 Serialize collections on ext host 2020-03-25 07:35:19 -07:00
Daniel Imms
b41b85d224 Start building out env var service 2020-03-25 07:26:11 -07:00
Daniel Imms
338d4298f4 Debounce update event 2020-03-25 06:46:08 -07:00
Daniel Imms
17dc799997 Implement env var collection structure 2020-03-25 06:37:37 -07:00
Daniel Imms
97eaa84d46 Pass terminal method through to ext host terminal service 2020-03-24 08:02:11 -07:00
Christof Marti
14b5afc0ec Add --use-host-proxy (microsoft/vscode-remote-release#2487) 2020-03-13 12:42:58 +01:00
Andre Weinand
4e605ec54a propagate ext terminal errrors; fixes #92380 2020-03-10 17:58:45 +01:00
Alex Ross
426d5bfb94 Fix problems with changing local port and restoring
Fixes #92008
2020-03-04 16:45:23 +01:00
Daniel Imms
cd17694974 Fix possible race condition
Fixes #90883
2020-02-18 07:35:59 -08:00
Connor Peet
6a04aa0477 debug: always set environment variables per-process in integrated terminal
Fixes #90375
2020-02-12 08:35:57 -08:00
Alex Ross
48e5c5b604 Handle file errors when finding ports
Fixes #90416
2020-02-12 10:19:06 +01:00
Matt Bierner
dbe5572789 Fixing another strict function error
For #81574

Let TS infer the types for us here
2020-02-11 14:27:55 -08:00
Daniel Imms
c6caa9a451 Merge branch 'master' into tyriar/75793 2020-02-08 13:50:01 -08:00
Alex Ross
77218d2ba0 Fix onDidTunnelsChange -> onDidChangeTunnels
Part 1: have both events
part of https://github.com/microsoft/vscode/issues/90057
2020-02-07 12:02:04 +01:00
Daniel Imms
5fad95f544 Change getDefaultShellAndArgs to use promises
Part of #75793
2020-02-05 12:03:45 -08:00
Daniel Imms
1aefcce704 Change requestAvailableShells to use promises
Part of #75793
2020-02-05 11:55:14 -08:00
Alex Ross
c3a5ac0820 Adopt deprecation service for deprecated task constructor
Part of https://github.com/microsoft/vscode/issues/88391
2020-01-22 12:43:01 +01:00
Alex Ross
017aef63b9 Add tunnel list changed event API 2020-01-20 14:41:10 +01:00
Alex Ross
40aa781ab8 Add API to get an array of tunnel descriptions 2020-01-20 12:30:11 +01:00
Alex Ross
71570aa4e8 Add candidate port filtering to proposed API 2020-01-20 11:38:45 +01:00
Matt Bierner
3883ebd061 Add common service for logging deprecated api usage (#88585)
* Add common service for logging deprecated api usage

For #88391

Adds a new `ExtHostApiDeprecationService`. This service logs a warning and telemetry when a deprecated API is used.

Updates some of the more simple deprecated apis to use this new service

* Note that extensionId cannot be undefined

* Fix event name
2020-01-14 15:27:42 -08:00
Martin Aeschlimann
da5d2781b0 replace console with logService. For #84283 2020-01-14 11:31:34 +01:00
Daniel Imms
a62805844e Expose IExtHostTerminalService.getDefaultShellArgs internally
Fixes #88280
2020-01-13 07:45:08 -08:00
Matt Bierner
1b70625f8c Use import type when importing vscode under src
When the core references `vscode`, we only want to import the types and never generate a real import (which will fail to load). Use `import type` to better enforce this
2020-01-10 14:25:21 -08:00
Alex Ross
c7bd9c76f0 Better ipv6 display in forwarded ports view 2020-01-09 16:03:16 +01:00
Alex Ross
9c0577cde2 Forward ports with any host to localhost
and fix related bugs

Fixes #88060
2020-01-08 17:52:45 +01:00
Alex Ross
546c9df62d Trim whitespace on tunnel description
Fixes #88059
2020-01-08 15:59:04 +01:00
Andre Weinand
de3922b5b4 remove workaround for #87088 2020-01-08 12:22:32 +01:00
Sandeep Somavarapu
7bbafc2221 Fix #87088 2020-01-08 11:40:42 +01:00
Andre Weinand
eaf427d740 properly use the automationShell setting; fixes #87700 2020-01-07 18:12:58 +01:00
Alex Ross
df6adac482 Candidate port detail shouldn't be the whole long command
Fixes #88059
2020-01-06 10:57:44 +01:00
Daniel Imms
0b5a23efa5 Merge branch 'master' into fix-70323 2019-12-30 10:00:19 -08:00
Alex Ross
e8d46aa75b Add refresh button to ports view to refresh candidate
Fix a bad leak in the ports view

Fix the ip address of candidate ports
2019-12-19 16:56:35 +01:00
Alex Ross
db1c20eae7 Tunnel API renames 2019-12-18 16:24:04 +01:00