import { workspace } from "vscode" ; import { join } from "path" ; import Utils from "./utils" ; export function activate ( ) { const utils = new Utils ( ) ; workspace . onDidChangeConfiguration ( ( event ) => { utils . detectConfigChanges ( event , ( ) => { utils . generate ( join ( __dirname , ".." , "themes" , "everforest-dark.json" ) , join ( __dirname , ".." , "themes" , "everforest-light.json" ) , utils . getThemeData ( utils . getConfiguration ( ) ) ) ; } ) ; } ) ; if ( utils . isNewlyInstalled ( ) && ! utils . isDefaultConfiguration ( utils . getConfiguration ( ) ) ) { utils . generate ( join ( __dirname , ".." , "themes" , "everforest-dark.json" ) , join ( __dirname , ".." , "themes" , "everforest-light.json" ) , utils . getThemeData ( utils . getConfiguration ( ) ) ) ; } } export function deactivate ( ) { }