File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,22 @@ export function activate(context: vscode.ExtensionContext) {
210210 const namespace = pathParts [ 3 ] ;
211211 const serverSpec = await getServerSpec ( serverName , undefined , undefined , true ) ;
212212 if ( serverSpec ) {
213+ const ISFS_ID = 'intersystems-community.vscode-objectscript' ;
214+ const isfsExtension = vscode . extensions . getExtension ( ISFS_ID ) ;
215+ if ( isfsExtension ) {
216+ if ( ! isfsExtension . isActive ) {
217+ await isfsExtension . activate ( ) ;
218+ if ( ! isfsExtension . isActive ) {
219+ vscode . window . showErrorMessage ( `${ ISFS_ID } could not be activated.` , "Close" )
220+ return ;
221+ }
222+ }
223+ }
224+ else {
225+ vscode . window . showErrorMessage ( `${ ISFS_ID } is not installed.` , "Close" )
226+ return ;
227+ }
228+
213229 const uri = vscode . Uri . parse ( `isfs${ readonly ? "-readonly" : "" } ://${ serverName } :${ namespace } /${ serverSpec . webServer . pathPrefix || '' } ` ) ;
214230 const label = `${ serverName } :${ namespace } ${ readonly ? " (read-only)" : "" } ` ;
215231 const added = vscode . workspace . updateWorkspaceFolders (
You can’t perform that action at this time.
0 commit comments