Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#minor #49

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/pr_validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Validate PR

on:
pull_request:

jobs:
Build_And_Test_Extension:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.13.x'
- run: npm install
- name: Setup webview depedencies
run: npm run setup-browser
- name: Compile
run: npm run compile
- name: Start xvfb
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Run extension tests
env:
DISPLAY: ':99.0'
UP9_AUTH_ENV: ${{ secrets.UP9_AUTH_ENV }}
UP9_CLIENT_ID: ${{ secrets.UP9_CLIENT_ID }}
UP9_CLIENT_SECRET: ${{ secrets.UP9_CLIENT_SECRET }}
DEFAULT_WORKSPACE: ${{ secrets.DEFAULT_WORKSPACE }}
run: npm run test
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: publish

on:
push:
branches:
- 'develop'
- 'main'

jobs:
Make_VSIX:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.13.x'
- uses: haya14busa/action-cond@v1
id: condval
with:
cond: ${{ github.ref == 'refs/heads/main' }}
if_true: "minor"
if_false: "patch"
- name: Auto Increment Semver Action
uses: MCKanpolat/[email protected]
id: versioning
with:
releaseType: ${{ steps.condval.outputs.value }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Get version parameters
shell: bash
run: |
echo "##[set-output name=build_timestamp;]$(echo $(date +%s))"
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: version_parameters
- run: npm version ${{ steps.versioning.outputs.version }} --no-git-tag-version
- run: npm install -g vsce
- run: npm install
- name: Setup webview depedencies
run: npm run setup-browser
- name: Make vsix
run: vsce package
- name: publish
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "./*.vsix"
commit: ${{ steps.version_parameters.outputs.branch }}
tag: ${{ steps.versioning.outputs.version }}
prerelease: ${{ github.ref != 'refs/heads/main' }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
dist/
out/
*.vsix
.vscode-test
48 changes: 48 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [{
"args": [
"-r",
"ts-node/register",
"-u",
"tdd",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/src/tests/integration/*.test.ts"
],
"internalConsoleOptions": "openOnSessionStart",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "npm: compile"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/tests/integration/index"
],
"outFiles": ["${workspaceFolder}/out/tests/integration/*.js"],
"preLaunchTask": "npm: pretest"
}
]
}
4 changes: 4 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
react-app/
.gitignore
tsconfig.json
src/
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2022 UP9, INC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 changes: 0 additions & 21 deletions License.md

This file was deleted.

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# UP9 VS Code Extension

This extension for Microsoft Visual Studio Code popular IDE allows developers easy access to UP9-generated code samples for Web APIs.

## Installation

* install latest MS VS Code
* we tested version 1.62 from October 2021
* NOTE: version 1.59 from August 2021 had bugs that made UP9 extension failure
* click **EXTENSIONS** icon - this open extensions list
* click **[...]** icon on top of extension list and select **[ Install from VSIX.. ]**
* chose _vsix_ file with UP9 extension and click OK
* wait till "extension installed successfully" pop-up shows ..



## Quick Start

* press COMMAND-SHIFT-P to access VS Code command launcher
* type or select "UP9: Open Code Browser" command from the list
* this opens right-panel dialog with connection details to fill of the desired UP9 env (URL)
* fill the required details and press OK
* screen should now offer drop-down-lists titled WORKSPACE and ENDPOINTS
* select workspace and endpoint from the drop-down lists
* now you can view sample code for selected endpoint on the screen
* use push button to push the code inside your browser, in case the file is empty full code will be pushed, otherwise only function to the location of the cursor
* use COPY button to copy code into clipboard ..
* in order to run the code please right click-> UP9: run code with UP9
1 change: 0 additions & 1 deletion Readme.md

This file was deleted.

Binary file removed example.png
Binary file not shown.
Binary file added images/logo128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
143 changes: 143 additions & 0 deletions images/ui_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading