Skip to content

Commit

Permalink
Merge branch 'master' into feature/hidden-files-in-IFS
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjorgensen authored Feb 14, 2024
2 parents 6399fcc + a3f0c15 commit 4470d64
Show file tree
Hide file tree
Showing 17 changed files with 272 additions and 225 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- uses: actions/checkout@v3
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'build')
steps:
- uses: actions/setup-node@v2
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 20
registry-url: 'https://registry.npmjs.org'

- uses: actions/checkout@v2
with:
fetch-depth: 1
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on: workflow_dispatch

jobs:
publish_prerelease:
runs-on: ubuntu-latest

steps:
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- uses: actions/checkout@v3
with:
ref: master

- name: Install dependencies
run: npm install

- name: Update version number for prelease
run: |
npm version --no-git-tag-version patch
cd types && npm version --no-git-tag-version patch
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]

- name: Package
run: npx @vscode/vsce package --pre-release

- name: Publish
run: |
npx @vscode/vsce publish --skip-duplicate --packagePath code-for-ibmi-${{ steps.package-version.outputs.current-version}}.vsix --pat ${{ secrets.PUBLISHER_TOKEN }}
npx ovsx publish --skip-duplicate --packagePath code-for-ibmi-${{ steps.package-version.outputs.current-version}}.vsix --pat ${{ secrets.OPENVSX_TOKEN }}
- name: Bump version number for next dev cycle
run: |
npm version --no-git-tag-version prerelease --preid dev
cd types && npm version --no-git-tag-version prerelease --preid dev
- name: get-npm-version
id: devcycle-version
uses: martinbeentjes/[email protected]

- name: Commit version bump
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git commit --allow-empty -a -m "Pre-release ${{ steps.devcycle-version.outputs.current-version}}"
git push
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 36 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"icon": "icon.png",
"displayName": "Code for IBM i",
"description": "Maintain your RPGLE, CL, COBOL, C/CPP on IBM i right from Visual Studio Code.",
"version": "2.6.6-dev.0",
"version": "2.6.7-dev.0",
"keywords": [
"ibmi",
"rpgle",
Expand Down Expand Up @@ -1249,20 +1249,20 @@
{
"command": "code-for-ibmi.refreshIFSBrowser",
"enablement": "code-for-ibmi:connected",
"title": "Refresh IFS List",
"title": "Refresh",
"category": "IBM i",
"icon": "$(refresh)"
},
{
"command": "code-for-ibmi.refreshIFSBrowserItem",
"enablement": "code-for-ibmi:connected",
"title": "Refresh IFS List item",
"title": "Refresh List item",
"category": "IBM i"
},
{
"command": "code-for-ibmi.revealInIFSBrowser",
"enablement": "code-for-ibmi:connected",
"title": "Reveal IFS Browser Item",
"title": "Reveal Browser Item",
"category": "IBM i"
},
{
Expand All @@ -1275,7 +1275,7 @@
{
"command": "code-for-ibmi.deleteIFS",
"enablement": "code-for-ibmi:connected",
"title": "Delete Object",
"title": "Delete",
"category": "IBM i"
},
{
Expand All @@ -1287,7 +1287,7 @@
{
"command": "code-for-ibmi.moveIFS",
"enablement": "code-for-ibmi:connected",
"title": "Rename or Move Object",
"title": "Rename/Move",
"category": "IBM i",
"icon": "$(files)"
},
Expand All @@ -1301,21 +1301,21 @@
{
"command": "code-for-ibmi.searchIFS",
"enablement": "code-for-ibmi:connected",
"title": "Search Directory",
"title": "Search",
"category": "IBM i",
"icon": "$(search)"
},
{
"command": "code-for-ibmi.createDirectory",
"enablement": "code-for-ibmi:connected",
"title": "Create Directory",
"title": "New Directory",
"category": "IBM i",
"icon": "$(new-folder)"
},
{
"command": "code-for-ibmi.createStreamfile",
"enablement": "code-for-ibmi:connected",
"title": "Create Streamfile",
"title": "New File",
"category": "IBM i",
"icon": "$(new-file)"
},
Expand Down Expand Up @@ -1349,49 +1349,49 @@
{
"command": "code-for-ibmi.addIFSShortcut",
"enablement": "code-for-ibmi:connected",
"title": "Add IFS Shortcut",
"title": "Add Shortcut",
"category": "IBM i",
"icon": "$(add)"
},
{
"command": "code-for-ibmi.removeIFSShortcut",
"enablement": "code-for-ibmi:connected",
"title": "Remove IFS Shortcut",
"title": "Remove Shortcut",
"category": "IBM i",
"icon": "$(remove)"
},
{
"command": "code-for-ibmi.sortIFSShortcuts",
"enablement": "code-for-ibmi:connected",
"title": "Sort IFS Shortcuts",
"title": "Sort Shortcuts",
"category": "IBM i",
"icon": "$(list-ordered)"
},
{
"command": "code-for-ibmi.moveIFSShortcutDown",
"enablement": "code-for-ibmi:connected",
"title": "Move IFS Shortcut Down",
"title": "Move Shortcut Down",
"category": "IBM i",
"icon": "$(arrow-down)"
},
{
"command": "code-for-ibmi.moveIFSShortcutUp",
"enablement": "code-for-ibmi:connected",
"title": "Move IFS Shortcut Up",
"title": "Move Shortcut Up",
"category": "IBM i",
"icon": "$(arrow-up)"
},
{
"command": "code-for-ibmi.moveIFSShortcutToTop",
"enablement": "code-for-ibmi:connected",
"title": "Move IFS Shortcut to Top",
"title": "Move Shortcut to Top",
"category": "IBM i",
"icon": "$(arrow-up)"
},
{
"command": "code-for-ibmi.moveIFSShortcutToBottom",
"enablement": "code-for-ibmi:connected",
"title": "Move IFS Shortcut to Bottom",
"title": "Move Shortcut to Bottom",
"category": "IBM i",
"icon": "$(arrow-up)"
},
Expand Down Expand Up @@ -1468,7 +1468,7 @@
{
"command": "code-for-ibmi.refreshObjectBrowser",
"enablement": "code-for-ibmi:connected",
"title": "Refresh Object Browser",
"title": "Refresh",
"category": "IBM i",
"icon": "$(refresh)"
},
Expand Down Expand Up @@ -1574,7 +1574,7 @@
},
{
"command": "code-for-ibmi.openTerminalHere",
"title": "Open terminal here",
"title": "Open Terminal Here",
"category": "IBM i"
},
{
Expand Down Expand Up @@ -2362,35 +2362,35 @@
"group": "1_workspace@1"
},
{
"command": "code-for-ibmi.deleteIFS",
"when": "view == ifsBrowser && !(viewItem =~ /^.*_protected$/)",
"group": "2_ifsStuff@4"
"command": "code-for-ibmi.createStreamfile",
"when": "view == ifsBrowser && !listMultiSelection && viewItem =~ /^directory.*$/",
"group": "2_ifsStuff@1"
},
{
"command": "code-for-ibmi.moveIFS",
"when": "view == ifsBrowser && !listMultiSelection && !(viewItem =~ /^.*_protected$/)",
"command": "code-for-ibmi.createDirectory",
"when": "view == ifsBrowser && !listMultiSelection && viewItem =~ /^directory.*$/",
"group": "2_ifsStuff@2"
},
{
"command": "code-for-ibmi.copyIFS",
"when": "view == ifsBrowser && !listMultiSelection && !(viewItem =~ /^.*_protected$/)",
"group": "2_ifsStuff@2"
"group": "2_ifsStuff@3"
},
{
"command": "code-for-ibmi.createDirectory",
"when": "view == ifsBrowser && !listMultiSelection && viewItem =~ /^directory.*$/",
"group": "2_ifsStuff@2"
"command": "code-for-ibmi.moveIFS",
"when": "view == ifsBrowser && !listMultiSelection && !(viewItem =~ /^.*_protected$/)",
"group": "2_ifsStuff@4"
},
{
"command": "code-for-ibmi.deleteIFS",
"when": "view == ifsBrowser && !(viewItem =~ /^.*_protected$/)",
"group": "2_ifsStuff@5"
},
{
"submenu": "code-for-ibmi.sortIFSFiles",
"when": "view == ifsBrowser && !listMultiSelection",
"group": "5_ifsStuff@1"
},
{
"command": "code-for-ibmi.createStreamfile",
"when": "view == ifsBrowser && !listMultiSelection && viewItem =~ /^directory.*$/",
"group": "2_ifsStuff@1"
},
{
"command": "code-for-ibmi.searchIFS",
"when": "view == ifsBrowser && !listMultiSelection && viewItem =~ /^directory.*$/",
Expand All @@ -2407,14 +2407,14 @@
"group": "3_ifsStuff@3"
},
{
"command": "code-for-ibmi.createDirectory",
"command": "code-for-ibmi.createStreamfile",
"when": "view == ifsBrowser && !listMultiSelection && viewItem =~ /^shortcut.*$/",
"group": "2_ifsStuff@2"
"group": "2_ifsStuff@1"
},
{
"command": "code-for-ibmi.createStreamfile",
"command": "code-for-ibmi.createDirectory",
"when": "view == ifsBrowser && !listMultiSelection && viewItem =~ /^shortcut.*$/",
"group": "2_ifsStuff@1"
"group": "2_ifsStuff@2"
},
{
"command": "code-for-ibmi.searchIFS",
Expand Down
Loading

0 comments on commit 4470d64

Please sign in to comment.