| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| "use strict"; |
| |
| // The module 'vscode' contains the VS Code extensibility API |
| // Import the module and reference it with the alias vscode in your code below |
| var vscode = require('vscode'); |
| |
| let controller = require("./commands/controller.js"); |
| |
| // 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 "vscode-openwhisk" 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 |
| |
| controller.init(context); |
| } |
| exports.activate = activate; |
| |
| // this method is called when your extension is deactivated |
| function deactivate() { |
| } |
| exports.deactivate = deactivate; |