'use strict' ; import { languages , ExtensionContext , DocumentSelector , window , workspace , } from 'vscode' ; import { registerPrettierESLintCommand , registerPrettierESLintCommandOutput } from './commands' ; import EditProvider from './PrettierESLintEditProvider' ; const VALID_LANG = [ 'javascript' , 'javascriptreact' ] ; export function activate ( context ) { const editProvider = new EditProvider ( ) ; const disposables = [ languages . registerDocumentRangeFormattingEditProvider ( VALID_LANG , editProvider ) , languages . registerDocumentFormattingEditProvider ( VALID_LANG , editProvider ) , registerPrettierESLintCommand ( VALID_LANG ) , registerPrettierESLintCommandOutput ( ) , ] ; context . subscriptions . push ( ... disposables ) ; } export function deactivate ( ) { }