'use strict' ; import * as vscode from 'vscode' ; import * as dict from 'cspell-dict-medicalterms' ; interface CodeSpellCheckerExtension { registerConfig ( path ) : Promise < void > ; enableLocal ( isGlobal , local ) : Promise < void > ; disableLocal ( isGlobal , local ) : Promise < void > ; } export function activate ( ) { const vscodeSpellCheckerExtension = 'streetsidesoftware.code-spell-checker' ; const extension = vscode . extensions . getExtension < CodeSpellCheckerExtension > ( vscodeSpellCheckerExtension ) ; if ( extension ) { extension . activate ( ) . then ( ext => { const path = dict . getConfigLocation ( ) ; ext && ext . registerConfig && ext . registerConfig ( path ) ; } ) ; } } export function deactivate ( ) { }