We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parente7cad82 commitea4b179Copy full SHA for ea4b179
src/commands.ts
@@ -526,7 +526,14 @@ export class Commands {
526
constdevContainerName=args[3]asstring
527
constdevContainerFolder=args[4]asstring
528
529
-awaitthis.openDevContainerInner(baseUrl,workspaceOwner,workspaceName,workspaceAgent,devContainerName,devContainerFolder)
+awaitthis.openDevContainerInner(
530
+baseUrl,
531
+workspaceOwner,
532
+workspaceName,
533
+workspaceAgent,
534
+devContainerName,
535
+devContainerFolder,
536
+)
537
}
538
539
/**
@@ -709,4 +716,3 @@ export class Commands {
709
716
)
710
717
711
718
712
-
src/remote.ts
@@ -529,9 +529,9 @@ export class Remote {
if(coderConnectAddr){
// Find the path of the current workspace, which will have the same authority
-constfolderPath=this.vscodeProposed.workspace.workspaceFolders
-?.find(folder=>folder.uri.authority===remoteAuthority)
-?.uri.path;
+constfolderPath=this.vscodeProposed.workspace.workspaceFolders?.find(
+(folder)=>folder.uri.authority===remoteAuthority,
+)?.uri.path
letnewRemoteAuthority=`ssh-remote+${coderConnectAddr}`
if(parts.containerNameHex){
newRemoteAuthority=`attached-container+${parts.containerNameHex}@${newRemoteAuthority}`
src/util.test.ts
@@ -9,7 +9,7 @@ it("ignore unrelated authorities", async () => {
9
"vscode://ssh-remote+coder-vscode-test--foo--bar",
10
"vscode://ssh-remote+coder-vscode-foo--bar",
11
"vscode://ssh-remote+coder--foo--bar",
12
-"vscode://attached-container+namehash@ssh-remote+dev.foo.admin.coder"
+"vscode://attached-container+namehash@ssh-remote+dev.foo.admin.coder",
13
]
14
for(consttestoftests){
15
expect(parseRemoteAuthority(test)).toBe(null)
@@ -69,7 +69,9 @@ it("should parse authority", async () => {
69
username:"foo",
70
workspace:"bar",
71
})
72
-expect(parseRemoteAuthority("vscode://attached-container+namehash@ssh-remote+coder-vscode.dev.coder.com--foo--bar.baz")).toStrictEqual({
+expect(
73
+parseRemoteAuthority("vscode://attached-container+namehash@ssh-remote+coder-vscode.dev.coder.com--foo--bar.baz"),
74
+).toStrictEqual({
75
containerNameHex:"namehash",
76
agent:"baz",
77
host:"coder-vscode.dev.coder.com--foo--bar.baz",
src/util.ts
@@ -33,7 +33,7 @@ export function parseRemoteAuthority(authority: string): AuthorityParts | null {
33
letsshAuthority
34
if(authorityParts.length==1){
35
sshAuthority=authorityParts[0]
36
-}elseif(authorityParts.length==2&&authorityParts[0].includes("attached-container+")){
+}elseif(authorityParts.length==2&&authorityParts[0].includes("attached-container+")){
37
sshAuthority=authorityParts[1]
38
containerNameHex=authorityParts[0].split("+")[1]
39
}else{