Vim/extension.ts
Jason Fields 666ea2fa34 Use source maps to get readable stack traces in production
Using the 'source-map' option does blow up the package size quite a bit, but I couldn't find another option that was doing the trick.
Fixes #5887
2021-03-18 19:02:48 -04:00

39 lines
1.1 KiB
TypeScript

/**
* Extension.ts is a lightweight wrapper around ModeHandler. It converts key
* events to their string names and passes them on to ModeHandler via
* handleKeyEvent().
*/
import './src/actions/include-main';
import './src/actions/include-plugins';
/**
* Load configuration validator
*/
import './src/configuration/validators/inputMethodSwitcherValidator';
import './src/configuration/validators/remappingValidator';
import './src/configuration/validators/neovimValidator';
import './src/configuration/validators/vimrcValidator';
import { install as installSourceMapSupport } from 'source-map-support';
import * as vscode from 'vscode';
import { activate as activateFunc } from './extensionBase';
import { Globals } from './src/globals';
import { Register } from './src/register/register';
export { getAndUpdateModeHandler } from './extensionBase';
export async function activate(context: vscode.ExtensionContext) {
// Set the storage path to be used by history files
Globals.extensionStoragePath = context.globalStoragePath;
installSourceMapSupport();
activateFunc(context);
}
export async function deactivate() {
await Register.saveToDisk(true);
}