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 @@ -213,6 +213,22 @@ export function activate(context: vscode.ExtensionContext) {
213213 const namespace = pathParts [ 3 ] ;
214214 const serverSpec = await getServerSpec ( serverName , undefined , undefined , true ) ;
215215 if ( serverSpec ) {
216+ const ISFS_ID = 'intersystems-community.vscode-objectscript' ;
217+ const isfsExtension = vscode . extensions . getExtension ( ISFS_ID ) ;
218+ if ( isfsExtension ) {
219+ if ( ! isfsExtension . isActive ) {
220+ await isfsExtension . activate ( ) ;
221+ if ( ! isfsExtension . isActive ) {
222+ vscode . window . showErrorMessage ( `${ ISFS_ID } could not be activated.` , "Close" )
223+ return ;
224+ }
225+ }
226+ }
227+ else {
228+ vscode . window . showErrorMessage ( `${ ISFS_ID } is not installed.` , "Close" )
229+ return ;
230+ }
231+
216232 const uri = vscode . Uri . parse ( `isfs${ readonly ? "-readonly" : "" } ://${ serverName } :${ namespace } /${ serverSpec . webServer . pathPrefix || '' } ` ) ;
217233 if ( ( vscode . workspace . workspaceFolders || [ ] ) . filter ( ( workspaceFolder ) => workspaceFolder . uri . toString ( ) === uri . toString ( ) ) . length === 0 ) {
218234 const label = `${ serverName } :${ namespace } ${ readonly ? " (read-only)" : "" } ` ;
You can’t perform that action at this time.
0 commit comments