'use strict' ; import * as vscode from 'vscode' ; import CopySyntax from './CopySyntax' ; export function activate ( context ) { const copySyntax = new CopySyntax ( ) ; const ext = vscode . extensions . all ; console . log ( 'Congratulations, your extension "vscode-copy-syntax" is now active!' ) ; context . subscriptions . push ( vscode . commands . registerCommand ( 'copySyntax.copy' , ( ) => { copySyntax . exec ( ) ; } ) ) ; context . subscriptions . push ( vscode . commands . registerCommand ( 'copySyntax.copyWithOptions' , ( ) => { const config = vscode . workspace . getConfiguration ( 'copy-syntax' ) ; const defaultLanguage = config . get ( 'defaults.lang' ) . toString ( ) ; vscode . window . showInputBox ( { prompt : 'copy syntax as language' , placeHolder : 'default as ' + defaultLanguage } ) . then ( result => { copySyntax . exec ( null , { lang : result || defaultLanguage } ) ; } ) ; } ) ) ; } export function deactivate ( ) { }