diff --git a/vscode/dist/extension.js b/vscode/dist/extension.js new file mode 100644 index 0000000..04017cf --- /dev/null +++ b/vscode/dist/extension.js @@ -0,0 +1,100 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ([ +/* 0 */ +/***/ (function(__unused_webpack_module, exports, __webpack_require__) { + + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.activate = activate; +exports.deactivate = deactivate; +// The module 'vscode' contains the VS Code extensibility API +// Import the module and reference it with the alias vscode in your code below +const vscode = __importStar(__webpack_require__(1)); +// This method is called when your extension is activated +// Your extension is activated the very first time the command is executed +function activate(context) { + // Use the console to output diagnostic information (console.log) and errors (console.error) + // This line of code will only be executed once when your extension is activated + console.log('Congratulations, your extension "osmium-vyper" is now active!'); + // The command has been defined in the package.json file + // Now provide the implementation of the command with registerCommand + // The commandId parameter must match the command field in package.json + const disposable = vscode.commands.registerCommand('osmium-vyper.helloWorld', () => { + // The code you place here will be executed every time your command is executed + // Display a message box to the user + vscode.window.showInformationMessage('Hello World from osmium-vyper!'); + }); + context.subscriptions.push(disposable); +} +// This method is called when your extension is deactivated +function deactivate() { } + + +/***/ }), +/* 1 */ +/***/ ((module) => { + +module.exports = require("vscode"); + +/***/ }) +/******/ ]); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module is referenced by other modules so it can't be inlined +/******/ var __webpack_exports__ = __webpack_require__(0); +/******/ module.exports = __webpack_exports__; +/******/ +/******/ })() +; +//# sourceMappingURL=extension.js.map \ No newline at end of file diff --git a/vscode/dist/extension.js.map b/vscode/dist/extension.js.map new file mode 100644 index 0000000..627e5be --- /dev/null +++ b/vscode/dist/extension.js.map @@ -0,0 +1 @@ +{"version":3,"file":"extension.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,4BAgBC;AAGD,gCAA+B;AAzB/B,6DAA6D;AAC7D,8EAA8E;AAC9E,oDAAiC;AAEjC,yDAAyD;AACzD,0EAA0E;AAC1E,SAAgB,QAAQ,CAAC,OAAgC;IAExD,4FAA4F;IAC5F,gFAAgF;IAChF,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC;IAE7E,wDAAwD;IACxD,qEAAqE;IACrE,uEAAuE;IACvE,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,yBAAyB,EAAE,GAAG,EAAE;QAClF,+EAA+E;QAC/E,oCAAoC;QACpC,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,gCAAgC,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC;AAED,2DAA2D;AAC3D,SAAgB,UAAU,KAAI,CAAC;;;;;;;ACzB/B;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://osmium-vyper/./src/extension.ts","webpack://osmium-vyper/external commonjs \"vscode\"","webpack://osmium-vyper/webpack/bootstrap","webpack://osmium-vyper/webpack/before-startup","webpack://osmium-vyper/webpack/startup","webpack://osmium-vyper/webpack/after-startup"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/vscode/images/icons/vyper-logo.png b/vscode/images/icons/vyper-logo.png new file mode 100644 index 0000000..aa59ea9 Binary files /dev/null and b/vscode/images/icons/vyper-logo.png differ diff --git a/vscode/package.json b/vscode/package.json index a02e2a8..acf12c4 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -11,12 +11,25 @@ ], "activationEvents": [], "main": "./dist/extension.js", + "icon": "images/icons/vyper-logo.png", "contributes": { "commands": [ { "command": "osmium-vyper.helloWorld", "title": "Hello World" } + ], + "languages": [ + { + "id": "vyper", + "aliases": ["Vyper", "vyper"], + "extensions": [".vy"], + "configuration": "./language-configuration.json", + "icon": { + "light": "images/icons/vyper-logo.png", + "dark": "images/icons/vyper-logo.png" + } + } ] }, "devDependencies": {