File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ export function getServerNames(scope?: vscode.ConfigurationScope): ServerName[]
77 const servers = vscode . workspace . getConfiguration ( 'intersystems' , scope ) . get ( 'servers' ) ;
88
99 if ( typeof servers === 'object' && servers ) {
10- const defaultName : string = servers [ '/default' ] || '' ;
11- if ( defaultName . length > 0 && servers [ defaultName ] ) {
10+ const myDefault : string = vscode . workspace . getConfiguration ( 'intersystems.servers' , scope ) . inspect ( '/default' ) ?. defaultValue ? '' : servers [ '/default' ] || '' ;
11+ if ( myDefault . length > 0 && servers [ myDefault ] ) {
1212 names . push ( {
13- name : defaultName ,
14- description : `${ servers [ defaultName ] . description || '' } (default)` ,
15- detail : serverDetail ( servers [ defaultName ] )
13+ name : myDefault ,
14+ description : `${ servers [ myDefault ] . description || '' } (default)` ,
15+ detail : serverDetail ( servers [ myDefault ] )
1616 } ) ;
1717 }
1818 for ( const key in servers ) {
19- if ( ! key . startsWith ( '/' ) && key !== defaultName ) {
19+ if ( ! key . startsWith ( '/' ) && key !== myDefault ) {
2020 const inspected = vscode . workspace . getConfiguration ( 'intersystems.servers' , scope ) . inspect ( key ) ;
2121
2222 // At least in VS Code 1.49 the defaultValue unexpectedly returns undefined
You can’t perform that action at this time.
0 commit comments