import * as assert from "assert" ; import * as vscode from "vscode" ; import * as TestUtils from "./testUtils" ; suite ( "Extension Tests" , ( ) => { test ( "extension loads" , ( ) => { assert . ok ( vscode . extensions . getExtension ( TestUtils . extensionId ) ) ; } ) ; test ( "should be able to activate" , ( ) => { const ext = vscode . extensions . getExtension ( TestUtils . extensionId ) ; if ( ! ext ) { assert . fail ( "failed to get extension" ) ; } return ext . activate ( ) . then ( ( ) => { assert . ok ( true ) ; } ) ; } ) ; } ) ;