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 parent4662ebd commit8086c7bCopy full SHA for 8086c7b
src/commands.ts
@@ -217,7 +217,7 @@ export class Commands {
217
if(agents.length===1){
218
folderPath=agents[0].expanded_directory
219
workspaceAgent=agents[0].name
220
-}else{
+}elseif(agents.length>0){
221
constagentQuickPick=vscode.window.createQuickPick()
222
agentQuickPick.title=`Select an agent`
223
src/sshSupport.test.ts
@@ -3,6 +3,7 @@ import { sshSupportsSetEnv, sshVersionSupportsSetEnv } from "./sshSupport"
3
4
constsupports={
5
"OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022":true,
6
+"OpenSSH_9.0p1, LibreSSL 3.3.6":true,
7
"OpenSSH_7.6p1 Ubuntu-4ubuntu0.7, OpenSSL 1.0.2n 7 Dec 2017":false,
8
"OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017":false,
9
}
src/sshSupport.ts
@@ -24,10 +24,12 @@ export function sshVersionSupportsSetEnv(sshVersionString: string): boolean {
24
returnfalse
25
26
// 7.8 is the first version that supports SetEnv
27
-if(Number.parseInt(parts[0],10)<7){
+constmajor=Number.parseInt(parts[0],10)
28
+constminor=Number.parseInt(parts[1],10)
29
+if(major<7){
30
31
-if(Number.parseInt(parts[1],10)<8){
32
+if(major===7&&minor<8){
33
34
35
returntrue
src/storage.ts
@@ -264,7 +264,7 @@ export class Storage {
264
265
266
publicgetUserSettingsPath():string{
267
-returnpath.join(this.appDataDir(),"Code","User","settings.json")
+returnpath.join(this.globalStorageUri.fsPath,"..","..","..","User","settings.json")
268
269
270
publicgetSessionTokenPath():string{
@@ -292,19 +292,6 @@ export class Storage {
292
})
293
294
295
-privateappDataDir():string{
296
-switch(process.platform){
297
-case"darwin":
298
-return`${os.homedir()}/Library/Application Support`
299
-case"linux":
300
-return`${os.homedir()}/.config`
301
-case"win32":
302
-returnprocess.env.APPDATA||""
303
-default:
304
-return"/var/local"
305
-}
306
307
-
308
privateasyncupdateURL():Promise<void>{
309
consturl=this.getURL()
310
axios.defaults.baseURL=url