File tree 4 files changed +37
-8
lines changed
4 files changed +37
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Coder Remote
2
2
3
- The Coder Remote extension lets you operate Coder from the comfort of VS Code.
3
+ [ ![ Visual Studio Marketplace] ( https://vsmarketplacebadges.dev/version/coder.coder-remote.svg )] ( https://marketplace.visualstudio.com/items?itemName=coder.coder-remote )
4
+ [ ![ "Join us on
5
+ Discord"] ( https://img.shields.io/badge/join-us%20on%20Discord-gray.svg?longCache=true&logo=discord&colorB=green )] ( https://coder.com/chat?utm_source=github.com/coder/coder&utm_medium=github&utm_campaign=readme.md )
6
+ [ ![ Twitter
7
+ Follow] ( https://img.shields.io/twitter/follow/coderhq?label=%40coderhq&style=social )] ( https://twitter.com/coderhq )
8
+
9
+ The Coder Remote extension lets you open [ Coder] ( https://github.com/coder/coder ) workspaces in VS Code with a single click.
10
+
11
+ - Open workspaces from the dashboard in a single click.
12
+ - Automatically start workspaces when opened.
13
+ - No command-line or local dependencies required - just install VS Code!
14
+ - Works in air-gapped or restricted networks. Just connect to your Coder deployment!
15
+
16
+ ## Getting Started
17
+
18
+ Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
19
+
20
+ ```
21
+ ext install coder.coder-remote
22
+ ```
23
+
24
+ Alternatively, manually install the VSIX from the [ latest release] ( https://github.com/coder/vscode-coder/releases/latest ) .
Original file line number Diff line number Diff line change 5
5
"description" : " Open any workspace with a single click." ,
6
6
"repository" : " https://github.com/coder/vscode-coder" ,
7
7
"preview" : true ,
8
- "version" : " 0.0.5 " ,
8
+ "version" : " 0.0.6 " ,
9
9
"engines" : {
10
10
"vscode" : " ^1.73.0"
11
11
},
Original file line number Diff line number Diff line change @@ -165,11 +165,14 @@ export class Commands {
165
165
remoteAuthority : "coder" ,
166
166
} )
167
167
if ( opened . length > 1 ) {
168
- const items : vscode . QuickPickItem [ ] = opened . map ( ( folder ) : vscode . QuickPickItem => {
169
- return {
170
- label : folder . folderUri . fsPath ,
171
- }
172
- } )
168
+ const items : vscode . QuickPickItem [ ] = opened
169
+ // Filter out `/` since that's added above.
170
+ . filter ( ( folder ) => folder . folderUri . path !== "/" )
171
+ . map ( ( folder ) : vscode . QuickPickItem => {
172
+ return {
173
+ label : folder . folderUri . fsPath ,
174
+ }
175
+ } )
173
176
const item = await vscode . window . showQuickPick ( items , {
174
177
title : "Select a recently opened folder" ,
175
178
} )
Original file line number Diff line number Diff line change @@ -392,9 +392,14 @@ export class Remote {
392
392
}
393
393
394
394
parsedConfig . remove ( { Host : computedHost . Host } )
395
+ const escape = ( str : string ) : string => `"${ str . replace ( / " / g, '\\"' ) } "`
395
396
parsedConfig . append ( {
396
397
Host : `${ Remote . Prefix } *` ,
397
- ProxyCommand : `${ binaryPath } vscodessh --network-info-dir ${ this . storage . getNetworkInfoPath ( ) } --session-token-file ${ this . storage . getSessionTokenPath ( ) } --url-file ${ this . storage . getURLPath ( ) } %h` ,
398
+ ProxyCommand : `${ escape ( binaryPath ) } vscodessh --network-info-dir ${ escape (
399
+ this . storage . getNetworkInfoPath ( ) ,
400
+ ) } --session-token-file ${ escape ( this . storage . getSessionTokenPath ( ) ) } --url-file ${ escape (
401
+ this . storage . getURLPath ( ) ,
402
+ ) } %h`,
398
403
ConnectTimeout : "0" ,
399
404
StrictHostKeyChecking : "no" ,
400
405
UserKnownHostsFile : "/dev/null" ,
You can’t perform that action at this time.
0 commit comments