File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -340,12 +340,16 @@ export class AtelierAPI {
340
340
}
341
341
}
342
342
343
+ /**
344
+ * Use the serverInfo endpoint. Connection object does not need to have specified a namespace when instantiated.
345
+ */
343
346
public serverInfo ( ) : Promise < Atelier . Response < Atelier . Content < Atelier . ServerInfo > > > {
344
347
return this . request ( 0 , "GET" ) . then ( ( info ) => {
345
348
if ( info && info . result && info . result . content && info . result . content . api > 0 ) {
346
349
const data = info . result . content ;
347
350
const apiVersion = data . api ;
348
- if ( ! data . namespaces . includes ( this . ns . toUpperCase ( ) ) ) {
351
+ // If this is a namespace-specific connection, throw if it doesn't exist or if the user has no access to it
352
+ if ( this . ns && ! data . namespaces . includes ( this . ns . toUpperCase ( ) ) ) {
349
353
throw {
350
354
code : "WrongNamespace" ,
351
355
message : `This server does not have specified namespace '${ this . ns } '.\n
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export async function addServerNamespaceToWorkspace(): Promise<void> {
24
24
return ;
25
25
}
26
26
// Get its namespace list
27
- let uri = vscode . Uri . parse ( `isfs://${ serverName } /?ns=%SYS ` ) ;
27
+ let uri = vscode . Uri . parse ( `isfs://${ serverName } /` ) ;
28
28
await resolveConnectionSpec ( serverName ) ;
29
29
// Prepare a displayable form of its connection spec as a hint to the user
30
30
const connSpec = await serverManagerApi . getServerSpec ( serverName ) ;
You can’t perform that action at this time.
0 commit comments