mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-11-10 10:58:33 +03:00
666ea2fa34
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
39 lines
1.1 KiB
TypeScript
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);
|
|
}
|