An openwhisk-vscode-extension is an open-source VS Code extension for Apache OpenWhisk. It manages the wskdeploy manifest file and makes deployment easy. You can also create and update actions and packages in VS Code.
Try creating and editing your action code in the VS Code!
Install the dependencies below to use full features:
This extension finds the .wskprops
configuration file located in the home path and connects to the Openwhisk server automatically. Set up your configuration referred to the cli docs.
wsk activation list <action>
).wsk activation get <activation_id>
).This extension contributes the following commands to the Command palette.
Create a wskdeploy project
: creates a wskdeploy projectClone the repository:
git clone https://github.com/apache/openwhisk-vscode-extension.git code ./openwhisk-vscode-extension # Open openwhisk-vscode-extension in VS Code
In your terminal, execute the command npm install
to install extension dependencies
In your terminal, execute the command npm run webpack-dev
to start up the extension builder in watch mode (allows for making changes to files and rebuilding automatically)
Open up the src/extension.ts
file for editing
In the src/extension.ts
file press F5
button to start debugger and select VS Code Extension Development
if a modal appears at the top of the VS Code window
Interact with the DEBUG CONSOLE
for real time debugging of the extension and learn more about debugging here
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.
Portions of this product include SVG files developed by the XEIcon project (https://github.com/xpressengine/XEIcon).
Those files are distributed under the XEIcon license (https://github.com/xpressengine/XEIcon#license).