'use strict' ; import * as vscode from 'vscode' ; interface CodeSpellCheckerExtension { registerConfig ( path ) : Promise < void > ; enableLocal ( isGlobal , local ) : Promise < void > ; disableLocal ( isGlobal , local ) : Promise < void > ; } export function activate ( context ) { const vscodeSpellCheckerExtension = 'streetsidesoftware.code-spell-checker' ; const configLocation = context . asAbsolutePath ( './cspell-ext.json' ) ; const extension = vscode . extensions . getExtension < CodeSpellCheckerExtension > ( vscodeSpellCheckerExtension ) ; if ( extension ) { extension . activate ( ) . then ( ( ext ) => { ext ?. registerConfig ?. ( configLocation ) ; } ) ; } context . subscriptions . push ( ) ; } export function deactivate ( ) { }