'use strict' ; import * as vscode from 'vscode' ; import { CredentialManager } from './credentialManager' ; import { App } from './app' ; import { TwitchChatService } from './ttvchat' ; let app ; let ttvchat ; export function activate ( context ) { CredentialManager . deleteTwitchToken ( ) ; CredentialManager . deleteTwitchClientId ( ) ; const outputChannel = vscode . window . createOutputChannel ( 'Twitch Line Highlighter' ) ; app = new App ( outputChannel ) ; ttvchat = new TwitchChatService ( app . API , outputChannel ) ; app . intialize ( context ) ; ttvchat . initialize ( context ) ; return app . API ; } export function deactivate ( ) { ttvchat . dispose ( ) ; } export const editorHasDecorations = ( ) => { return true ; } ;