Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// get keymap
var keymap = bootstrap.parseJSON(file.read(file.createPath(coreDir, 'keymap.json')));
// load extensions
var fso = new ActiveXObject("Scripting.FileSystemObject");
if (fso.FolderExists(extensionsDir)) {
var fileList = [];
var extensionFiles = fso.GetFolder(extensionsDir).Files;
var fileEnum = new Enumerator(extensionFiles);
for (; !fileEnum.atEnd(); fileEnum.moveNext()) {
fileList.push(fileEnum.item().Path);
}
bootstrap.loadExtensions(fileList);
}
// more info http://msdn.microsoft.com/en-us/library/dd375731%28VS.85%29.aspx
var vkeys = {
VK_LBUTTON: 0x01,
VK_RBUTTON: 0x02,
VK_CANCEL: 0x03,
VK_MBUTTON: 0x04,
VK_BACK: 0x08,
VK_TAB: 0x09,
VK_CLEAR: 0x0C,
VK_RETURN: 0x0D,
VK_SHIFT: 0x10,
VK_CONTROL: 0x11,
VK_MENU: 0x12,
VK_PAUSE: 0x13,
function javaLoadExtensions(payload) {
require('bootstrap').loadExtensions(strToJSON(payload));
}
var extPath = require('file').createPath(DirIO.get('Home').path, 'emmet', function(extPath) {
var rootDir = FileIO.open(extPath);
if (rootDir.exists() && rootDir.isDirectory()) {
var extFiles = _.reject(DirIO.read(rootDir, true), function(f) {
return f.isDirectory();
});
extFiles = _.map(extFiles, function(f) {
return FileIO.path(f);
});
require('bootstrap').loadExtensions(extFiles);
}
});
function objcLoadExtensions(fileList) {
var bs = require('bootstrap');
fileList = bs.parseJSON(objcToString(fileList));
require('bootstrap').loadExtensions(fileList);
}