Skip to content

Commit 39f618b

Browse files
committed
Merge remote-tracking branch 'origin/main' into merogge/notebook-verbosity
2 parents 1ce7ada + 648c3c8 commit 39f618b

File tree

147 files changed

+4241
-745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+4241
-745
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
2+
# Reference: https://github.com/microsoft/vscode/wiki/How-to-Contribute
3+
properties:
4+
resources:
5+
- resource: Microsoft.WinGet.DSC/WinGetPackage
6+
directives:
7+
description: Install Git
8+
allowPrerelease: true
9+
settings:
10+
id: Git.Git
11+
source: winget
12+
- resource: Microsoft.WinGet.DSC/WinGetPackage
13+
id: npm
14+
directives:
15+
description: Install NodeJS version >=16.17.x and <17
16+
allowPrerelease: true
17+
settings:
18+
id: OpenJS.NodeJS.LTS
19+
version: "16.20.0"
20+
source: winget
21+
- resource: NpmDsc/NpmPackage
22+
id: yarn
23+
dependsOn:
24+
- npm
25+
directives:
26+
description: Install Yarn
27+
allowPrerelease: true
28+
settings:
29+
Name: 'yarn'
30+
Global: true
31+
PackageDirectory: '${WinGetConfigRoot}\..\'
32+
- resource: Microsoft.WinGet.DSC/WinGetPackage
33+
directives:
34+
description: Install Python 3.10
35+
allowPrerelease: true
36+
settings:
37+
id: Python.Python.3.10
38+
source: winget
39+
- resource: Microsoft.WinGet.DSC/WinGetPackage
40+
id: vsPackage
41+
directives:
42+
description: Install Visual Studio 2022 (any edition is OK)
43+
allowPrerelease: true
44+
settings:
45+
id: Microsoft.VisualStudio.2022.BuildTools
46+
source: winget
47+
- resource: Microsoft.VisualStudio.DSC/VSComponents
48+
dependsOn:
49+
- vsPackage
50+
directives:
51+
description: Install required VS workloads
52+
allowPrerelease: true
53+
settings:
54+
productId: Microsoft.VisualStudio.Product.BuildTools
55+
channelId: VisualStudio.17.Release
56+
includeRecommended: true
57+
components:
58+
- Microsoft.VisualStudio.Workload.VCTools
59+
- resource: YarnDsc/YarnInstall
60+
dependsOn:
61+
- npm
62+
directives:
63+
description: Install dependencies
64+
allowPrerelease: true
65+
settings:
66+
PackageDirectory: '${WinGetConfigRoot}\..\'
67+
configurationVersion: 0.2.0

ThirdPartyNotices.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ SOFTWARE.
13031303

13041304
---------------------------------------------------------
13051305

1306-
jlelong/vscode-latex-basics 1.5.1 - MIT
1306+
jlelong/vscode-latex-basics 1.5.2 - MIT
13071307
https://github.com/jlelong/vscode-latex-basics
13081308

13091309
Copyright (c) vscode-latex-basics authors
@@ -1654,8 +1654,8 @@ THE SOFTWARE.
16541654

16551655
---------------------------------------------------------
16561656

1657-
language-php 0.48.1 - MIT
1658-
https://github.com/atom/language-php
1657+
language-php 0.49.0 - MIT
1658+
https://github.com/KapitanOczywisty/language-php
16591659

16601660
The MIT License (MIT)
16611661

@@ -2184,7 +2184,7 @@ THE SOFTWARE.
21842184

21852185
---------------------------------------------------------
21862186

2187-
microsoft/vscode-css 0.45.1 - MIT License
2187+
microsoft/vscode-css 0.0.0 - MIT License
21882188
https://github.com/microsoft/vscode-css
21892189

21902190
MIT License
@@ -2748,7 +2748,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SO
27482748

27492749
---------------------------------------------------------
27502750

2751-
trond-snekvik/vscode-rst 1.5.1 - MIT
2751+
trond-snekvik/vscode-rst 1.5.2 - MIT
27522752
https://github.com/trond-snekvik/vscode-rst
27532753

27542754
The MIT License (MIT)

build/lib/i18n.resources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@
290290
"name": "vs/workbench/contrib/welcomeWalkthrough",
291291
"project": "vscode-workbench"
292292
},
293+
{
294+
"name": "vs/workbench/contrib/welcomeDialog",
295+
"project": "vscode-workbench"
296+
},
293297
{
294298
"name": "vs/workbench/contrib/outline",
295299
"project": "vscode-workbench"

build/lib/stylelint/vscode-known-variables.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
"--vscode-commandCenter-foreground",
5252
"--vscode-commandCenter-inactiveBorder",
5353
"--vscode-commandCenter-inactiveForeground",
54+
"--vscode-commentsView-resolvedIcon",
55+
"--vscode-commentsView-unresolvedIcon",
5456
"--vscode-contrastActiveBorder",
5557
"--vscode-contrastBorder",
5658
"--vscode-debugConsole-errorForeground",
@@ -97,6 +99,7 @@
9799
"--vscode-diffEditor-removedLineBackground",
98100
"--vscode-diffEditor-removedTextBackground",
99101
"--vscode-diffEditor-removedTextBorder",
102+
"--vscode-diffEditor-unchangedRegionBackground",
100103
"--vscode-diffEditorGutter-insertedLineBackground",
101104
"--vscode-diffEditorGutter-removedLineBackground",
102105
"--vscode-diffEditorOverview-insertedForeground",
@@ -233,6 +236,8 @@
233236
"--vscode-editorOverviewRuler-background",
234237
"--vscode-editorOverviewRuler-border",
235238
"--vscode-editorOverviewRuler-bracketMatchForeground",
239+
"--vscode-editorOverviewRuler-commentForeground",
240+
"--vscode-editorOverviewRuler-commentUnresolvedForeground",
236241
"--vscode-editorOverviewRuler-commonContentForeground",
237242
"--vscode-editorOverviewRuler-currentContentForeground",
238243
"--vscode-editorOverviewRuler-deletedForeground",
@@ -309,6 +314,8 @@
309314
"--vscode-interactiveEditor-border",
310315
"--vscode-interactiveEditor-regionHighlight",
311316
"--vscode-interactiveEditor-shadow",
317+
"--vscode-interactiveEditorDiff-inserted",
318+
"--vscode-interactiveEditorDiff-removed",
312319
"--vscode-interactiveEditorInput-background",
313320
"--vscode-interactiveEditorInput-border",
314321
"--vscode-interactiveEditorInput-focusBorder",
@@ -457,7 +464,6 @@
457464
"--vscode-problemsErrorIcon-foreground",
458465
"--vscode-problemsInfoIcon-foreground",
459466
"--vscode-problemsWarningIcon-foreground",
460-
"--vscode-problemsSuccessIcon-foreground",
461467
"--vscode-profileBadge-background",
462468
"--vscode-profileBadge-foreground",
463469
"--vscode-progressBar-background",
@@ -520,6 +526,8 @@
520526
"--vscode-statusBar-noFolderBackground",
521527
"--vscode-statusBar-noFolderBorder",
522528
"--vscode-statusBar-noFolderForeground",
529+
"--vscode-statusBar-offlineBackground",
530+
"--vscode-statusBar-offlineForeground",
523531
"--vscode-statusBarItem-activeBackground",
524532
"--vscode-statusBarItem-compactHoverBackground",
525533
"--vscode-statusBarItem-errorBackground",
@@ -733,4 +741,4 @@
733741
"--z-index-run-button-container",
734742
"--zoom-factor"
735743
]
736-
}
744+
}

cglicenses.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,5 +342,55 @@
342342
{ // License is MIT/Apache and tool doesn't look in subfolders
343343
"name": "dirs-sys-next",
344344
"fullLicenseTextUri": "https://raw.githubusercontent.com/xdg-rs/dirs/master/dirs-sys/LICENSE-MIT"
345+
},
346+
{
347+
"name": "https-proxy-agent",
348+
"fullLicenseText": [
349+
"(The MIT License)",
350+
"Copyright (c) 2013 Nathan Rajlich <[email protected]>",
351+
"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:",
352+
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
353+
"THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
354+
]
355+
},
356+
{
357+
"name": "data-uri-to-buffer",
358+
"fullLicenseText": [
359+
"(The MIT License)",
360+
"Copyright (c) 2014 Nathan Rajlich <[email protected]>",
361+
"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:",
362+
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
363+
"THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
364+
]
365+
},
366+
{
367+
"name": "socks-proxy-agent",
368+
"fullLicenseText": [
369+
"(The MIT License)",
370+
"Copyright (c) 2013 Nathan Rajlich <[email protected]>",
371+
"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:",
372+
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
373+
"THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
374+
]
375+
},
376+
{
377+
"name": "http-proxy-agent",
378+
"fullLicenseText": [
379+
"(The MIT License)",
380+
"Copyright (c) 2013 Nathan Rajlich <[email protected]>",
381+
"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:",
382+
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
383+
"THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
384+
]
385+
},
386+
{
387+
"name": "agent-base",
388+
"fullLicenseText": [
389+
"(The MIT License)",
390+
"Copyright (c) 2013 Nathan Rajlich <[email protected]>",
391+
"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:",
392+
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
393+
"THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
394+
]
345395
}
346396
]

cli/src/commands/tunnels.rs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use crate::{
3535
},
3636
util::{
3737
app_lock::AppMutex,
38-
errors::{wrap, AnyError},
38+
errors::{wrap, AnyError, CodeError},
3939
prereqs::PreReqChecker,
4040
},
4141
};
@@ -247,17 +247,25 @@ pub async fn kill(ctx: CommandContext) -> Result<i32, AnyError> {
247247
}
248248

249249
pub async fn status(ctx: CommandContext) -> Result<i32, AnyError> {
250-
let status: protocol::singleton::Status = do_single_rpc_call(
250+
let status = do_single_rpc_call::<_, protocol::singleton::Status>(
251251
&ctx.paths.tunnel_lockfile(),
252252
ctx.log.clone(),
253253
protocol::singleton::METHOD_STATUS,
254254
protocol::EmptyObject {},
255255
)
256-
.await?;
257-
258-
ctx.log.result(serde_json::to_string(&status).unwrap());
256+
.await;
259257

260-
Ok(0)
258+
match status {
259+
Err(CodeError::NoRunningTunnel) => {
260+
ctx.log.result(CodeError::NoRunningTunnel.to_string());
261+
Ok(1)
262+
}
263+
Err(e) => Err(e.into()),
264+
Ok(s) => {
265+
ctx.log.result(serde_json::to_string(&s).unwrap());
266+
Ok(0)
267+
}
268+
}
261269
}
262270

263271
/// Removes unused servers.

0 commit comments

Comments
 (0)