Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
fe0bf46
Update license headers
arunans23 Jul 1, 2025
7b13f29
use Choreo sts if passed as env variables
kaje94 Jul 1, 2025
08f4e9c
use zod to validate platform ext env variables
kaje94 Jul 1, 2025
bd4917b
pass region after signin
kaje94 Jul 1, 2025
882bfc8
use project handler when opening in console
kaje94 Jul 1, 2025
734cd56
update download script to accept PAT
gigara Jul 1, 2025
51af038
always download pre-release ls in ballerina
gigara Jul 1, 2025
2895108
update authorization method to use GITHUB_TOKEN for API requests
gigara Jul 2, 2025
0c793f0
Merge pull request #7 from gigara/source
gigara Jul 2, 2025
3cefc6d
add support for GITHUB_BOT_TOKEN in authorization headers for API req…
gigara Jul 2, 2025
ab49335
Merge pull request #8 from gigara/source
gigara Jul 2, 2025
f33ab2e
Refactor: update environment variable names for consistency
gigara Jul 2, 2025
91afd36
Merge pull request #3 from arunans23/attri
gigara Jul 2, 2025
9d1bacb
Replace GITHUB_BOT_TOKEN with CHOREO_BOT_TOKEN
gigara Jul 2, 2025
9ff0f43
Merge pull request #9 from gigara/source
gigara Jul 3, 2025
4f34135
Refactor: update authorization header logic to prioritize CHOREO_BOT_…
gigara Jul 3, 2025
d79273c
Merge branch 'source' of https://github.com/wso2/vscode-extensions in…
gigara Jul 3, 2025
082d2ca
Fix swagger styles
gigara Jul 3, 2025
657bc25
add validation for plaform env vars
kaje94 Jul 3, 2025
684f6e3
Merge branch 'source' of https://github.com/wso2/vscode-extensions in…
kaje94 Jul 3, 2025
0cd0945
fix failure during ext activation
kaje94 Jul 3, 2025
994330f
Disable extension recommendation notification and disable auto update
gigara Jul 3, 2025
0caf271
remove redundant code from choreo ext
kaje94 Jul 4, 2025
160a965
remove redundant code from choreo webviews
kaje94 Jul 4, 2025
41e7f98
get choreo and platform ext to working state
kaje94 Jul 4, 2025
57680e8
cleanup choreo core unused packages
kaje94 Jul 4, 2025
a28e293
pass ext name as cmd context
kaje94 Jul 4, 2025
1d88310
fix linting errors
kaje94 Jul 4, 2025
d0b101e
Merge pull request #12 from kaje94/wso2-platform
kaje94 Jul 4, 2025
b71d425
Merge pull request #2 from wso2/source
gigara Jul 4, 2025
6aaafd2
use cli for cache cleanup
gigara Jul 4, 2025
705f22e
remove token for checkout
gigara Jul 4, 2025
66ded34
Merge pull request #15 from gigara/source
gigara Jul 4, 2025
42a21a6
Improve BI run action to inherit process env
NipunaRanasinghe Jun 27, 2025
ea2787b
Add more improvements
NipunaRanasinghe Jun 30, 2025
14c5052
Address review suggestions
NipunaRanasinghe Jul 1, 2025
4813610
Remove unwanted AI logs
xlight05 Jul 1, 2025
9aad1b6
Add custom ls arguments before classpath command
kanushka Jul 1, 2025
94acaeb
Fix the theme issue in the BI Copilot command list
Jul 1, 2025
9783a33
Fix tryit for services having empty base paths
NipunaRanasinghe Jul 1, 2025
d961aab
Fix showing incorrect warnings when opening graphQL tryit view
NipunaRanasinghe Jul 1, 2025
0d68dec
Fix tryit feature to work with older Ballerina versions
NipunaRanasinghe Jul 2, 2025
ed29c74
Address review suggestions
NipunaRanasinghe Jul 2, 2025
b216ca3
fix env name prefix
senithkay Jul 2, 2025
f4d2aae
fix ballerina-auth-url
senithkay Jul 2, 2025
958d033
skip ballerina-extension tests
senithkay Jul 2, 2025
d03c901
Integrate new api of jsontoType
sachiniSam Jul 2, 2025
8da0e95
Add new api to get the type
sachiniSam Jul 2, 2025
526673c
On ls failure handle importing state
sachiniSam Jul 2, 2025
86af48c
Fix form loading issue on importing
sachiniSam Jul 2, 2025
41a9b46
Increase height of the textpanel
sachiniSam Jul 2, 2025
dd95e50
Reset missing handlers
sachiniSam Jul 2, 2025
f48150e
Update error msg
sachiniSam Jul 2, 2025
92e0397
Sort the artifacts list after updates
LakshanWeerasinghe Jul 1, 2025
42dceb9
Enable older test explorer for older bal versions
LakshanWeerasinghe Jul 1, 2025
91cd444
Fix filepath passed as uri to getConfigVar API
kaumini Jul 3, 2025
52a6b9f
Codelens pass filepath on run
kaumini Jul 3, 2025
c6b1880
Fix rendering data mapper for types referring arrays
madushajg Jul 4, 2025
8078514
Update graphiql dependency version from 4.1.0 to 3.7.0 in package.json
axewilledge Jul 4, 2025
b5efb57
Add function to update current artifact location after source code up…
axewilledge Jul 4, 2025
1cff69f
Update comment for clarity in artifact location update function
axewilledge Jul 4, 2025
707dc93
Update field rendering order based on preserveOrder prop
sachiniSam Jul 4, 2025
df9cfcf
Fix rendering on infinite loop when value is set
sachiniSam Jul 4, 2025
7696cff
Merge pull request #16 from kanushka/rebased-main
gigara Jul 4, 2025
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
12 changes: 6 additions & 6 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ inputs:
PLATFORM_DEFAULT_GHAPP_CLIENT_ID:
default: true
type: string
PLATFORM_DEFAULT_DEVANT_ASGUADEO_CLIENT_ID:
PLATFORM_DEFAULT_DEVANT_ASGARDEO_CLIENT_ID:
default: true
type: string
PLATFORM_STAGE_GHAPP_CLIENT_ID:
default: true
type: string
PLATFORM_STAGE_DEVANT_ASGUADEO_CLIENT_ID:
PLATFORM_STAGE_DEVANT_ASGARDEO_CLIENT_ID:
default: true
type: string
PLATFORM_DEV_GHAPP_CLIENT_ID:
default: true
type: string
PLATFORM_DEV_DEVANT_ASGUADEO_CLIENT_ID:
PLATFORM_DEV_DEVANT_ASGARDEO_CLIENT_ID:
default: true
type: string

Expand Down Expand Up @@ -149,11 +149,11 @@ runs:
MI_AUTH_ORG: ${{ inputs.MI_AUTH_ORG }}
MI_AUTH_CLIENT_ID: ${{ inputs.MI_AUTH_CLIENT_ID }}
PLATFORM_DEFAULT_GHAPP_CLIENT_ID: ${{ inputs.PLATFORM_DEFAULT_GHAPP_CLIENT_ID }}
PLATFORM_DEFAULT_DEVANT_ASGUADEO_CLIENT_ID: ${{ inputs.PLATFORM_DEFAULT_DEVANT_ASGUADEO_CLIENT_ID }}
PLATFORM_DEFAULT_DEVANT_ASGARDEO_CLIENT_ID: ${{ inputs.PLATFORM_DEFAULT_DEVANT_ASGARDEO_CLIENT_ID }}
PLATFORM_STAGE_GHAPP_CLIENT_ID: ${{ inputs.PLATFORM_STAGE_GHAPP_CLIENT_ID }}
PLATFORM_STAGE_DEVANT_ASGUADEO_CLIENT_ID: ${{ inputs.PLATFORM_STAGE_DEVANT_ASGUADEO_CLIENT_ID }}
PLATFORM_STAGE_DEVANT_ASGARDEO_CLIENT_ID: ${{ inputs.PLATFORM_STAGE_DEVANT_ASGARDEO_CLIENT_ID }}
PLATFORM_DEV_GHAPP_CLIENT_ID: ${{ inputs.PLATFORM_DEV_GHAPP_CLIENT_ID }}
PLATFORM_DEV_DEVANT_ASGUADEO_CLIENT_ID: ${{ inputs.PLATFORM_DEV_DEVANT_ASGUADEO_CLIENT_ID }}
PLATFORM_DEV_DEVANT_ASGARDEO_CLIENT_ID: ${{ inputs.PLATFORM_DEV_DEVANT_ASGARDEO_CLIENT_ID }}

- name: Compress build
shell: bash
Expand Down
26 changes: 7 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.BALLERINA_BOT_TOKEN }}
fetch-depth: 2

- name: Analyze diff
Expand Down Expand Up @@ -156,22 +155,23 @@ jobs:
bi: ${{ inputs.bi }}
mi: ${{ inputs.mi }}
version: ${{ inputs.version }}
token: ${{ secrets.PUBLISH_PAT }}
token: ${{ secrets.CHOREO_BOT_TOKEN }}
BALLERINA_AUTH_ORG: ${{ secrets.BALLERINA_AUTH_ORG }}
BALLERINA_AUTH_CLIENT_ID: ${{ secrets.BALLERINA_AUTH_CLIENT_ID }}
MI_AUTH_ORG: ${{ secrets.MI_AUTH_ORG }}
MI_AUTH_CLIENT_ID: ${{ secrets.MI_AUTH_CLIENT_ID }}
PLATFORM_DEFAULT_GHAPP_CLIENT_ID: ${{ secrets.PLATFORM_DEFAULT_GHAPP_CLIENT_ID }}
PLATFORM_DEFAULT_DEVANT_ASGUADEO_CLIENT_ID: ${{ secrets.PLATFORM_DEFAULT_DEVANT_ASGUADEO_CLIENT_ID }}
PLATFORM_DEFAULT_DEVANT_ASGARDEO_CLIENT_ID: ${{ secrets.PLATFORM_DEFAULT_DEVANT_ASGARDEO_CLIENT_ID }}
PLATFORM_STAGE_GHAPP_CLIENT_ID: ${{ secrets.PLATFORM_STAGE_GHAPP_CLIENT_ID }}
PLATFORM_STAGE_DEVANT_ASGUADEO_CLIENT_ID: ${{ secrets.PLATFORM_STAGE_DEVANT_ASGUADEO_CLIENT_ID }}
PLATFORM_STAGE_DEVANT_ASGARDEO_CLIENT_ID: ${{ secrets.PLATFORM_STAGE_DEVANT_ASGARDEO_CLIENT_ID }}
PLATFORM_DEV_GHAPP_CLIENT_ID: ${{ secrets.PLATFORM_DEV_GHAPP_CLIENT_ID }}
PLATFORM_DEV_DEVANT_ASGUADEO_CLIENT_ID: ${{ secrets.PLATFORM_DEV_DEVANT_ASGUADEO_CLIENT_ID }}
PLATFORM_DEV_DEVANT_ASGARDEO_CLIENT_ID: ${{ secrets.PLATFORM_DEV_DEVANT_ASGARDEO_CLIENT_ID }}

ExtTest_Ballerina:
name: Run Ballerina extension tests
needs: Build_Stage
if: ${{ inputs.runTests || !inputs.isPreRelease || needs.Build_Stage.outputs.runBalExtTests == 'true' || github.base_ref == 'release-ballerina' }}
if: false
# if: ${{ inputs.runTests || !inputs.isPreRelease || needs.Build_Stage.outputs.runBalExtTests == 'true' || github.base_ref == 'release-ballerina' }}
timeout-minutes: 45
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -338,18 +338,6 @@ jobs:
timeout 900 sh e2e-test-runner.sh
env:
TEST_CHOREO_EXT_ENV: prod
TEST_IDP_USERNAME: e8085eae-9391-4d03-9302-672068c1fe50
TEST_IDP_PASSWORD: ${{ secrets.TEST_IDP_PASSWORD }}
TEST_USER_ORG_HANDLE: choreouser
TEST_GITHUB_USERNAME: choreo-test-user@wso2.com
TEST_GITHUB_PAT: ${{ secrets.TEST_GITHUB_PAT }}
TEST_GITHUB_ORG: choreo-test-apps
TEST_GITHUB_MONO_REPO: vscode-ext-mono-repo-tests-prod
TEST_BITBUCKET_USERNAME: choreo-test-user
TEST_BITBUCKET_PASSWORD: ${{ secrets.TEST_BITBUCKET_PASSWORD }}
TEST_BITBUCKET_CHOREO_CREDENTIAL: vscode-test-credentials
TEST_BITBUCKET_WORKSPACE: vscode-tests
TEST_BITBUCKET_REPO: vscode-test-mono-repo-prod

- name: Publish e2e test output
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -459,7 +447,7 @@ jobs:
cd workspaces/mi/mi-extension && npx playwright install

- name: Run Tests (First Attempt)
if: github.run_attempt == 1
if: github.run_attempt == 1 || steps.check-results.outcome == 'failure'
run: |
export $(dbus-launch)
export DISPLAY=:98.0
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/cache-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,25 @@ jobs:

- name: Cleanup
run: |
gh extension install actions/gh-actions-cache

if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
PR_NUMBER="${{ github.event.inputs.pull_request_number }}"
PR_NUMBER="${{ github.event.inputs.pull_request_number }}"
else
PR_NUMBER="${{ github.event.pull_request.number }}"
PR_NUMBER="${{ github.event.pull_request.number }}"
fi

REPO=${{ github.repository }}
BRANCH="refs/pull/$PR_NUMBER/merge"

echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )
echo "Fetching list of cache keys"
cacheKeysForPR=$(gh cache list -R $REPO -r $BRANCH | cut -f 1)

## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
gh cache delete $cacheKey -R $REPO
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.CHOREO_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
title: Ballerina
fileName: ballerina
chatAPI: ${{ secrets.EGGPLANT_EXT_CHAT_API }}
chatAPI: ${{ secrets.BI_TEAM_CHAT_API }}

- name: Notification - MI
uses: ./.github/actions/dailyBuildNotification
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ jobs:
if: ${{ steps.repo.outputs.repo != '' }}
run: |
id=`curl -X GET -H "Accept: application/vnd.github.v3+json" \
-H "Authorization:token ${{ secrets.PUBLISH_PAT }}" \
-H "Authorization:token ${{ secrets.CHOREO_BOT_TOKEN }}" \
https://api.github.com/repos/wso2/${{ steps.repo.outputs.repo }}/releases/tags/v${{ steps.vsix.outputs.version }} \
| jq -r .id` && \
updateResponse=`curl -X PATCH -H "Accept: application/vnd.github.v3+json" \
-H "Authorization:token ${{ secrets.PUBLISH_PAT }}" \
-H "Authorization:token ${{ secrets.CHOREO_BOT_TOKEN }}" \
-d '{"draft":false,"prerelease":false}' \
https://api.github.com/repos/wso2/${{ steps.repo.outputs.repo }}/releases/$id`

Expand All @@ -123,7 +123,7 @@ jobs:
if [ "${{ inputs.extension }}" == "micro-integrator" ]; then
echo "chatAPI=${{ secrets.MI_TEAM_CHAT_API }}" >> $GITHUB_OUTPUT
elif [ "${{ inputs.extension }}" == "ballerina" ] || [ "${{ inputs.extension }}" == "ballerina-integrator" ]; then
echo "chatAPI=${{ secrets.EGGPLANT_EXT_CHAT_API }}" >> $GITHUB_OUTPUT
echo "chatAPI=${{ secrets.BI_TEAM_CHAT_API }}" >> $GITHUB_OUTPUT
else
echo "chatAPI=${{ secrets.TOOLING_TEAM_CHAT_API }}" >> $GITHUB_OUTPUT
fi
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ jobs:
with:
version: ${{ steps.publish.outputs.version }}${{ inputs.package }}
threadId: ${{ github.run_id }}
bot_username: ${{ secrets.BALLERINA_BOT_USERNAME }}
bot_email: ${{ secrets.BALLERINA_BOT_EMAIL }}
bot_token: ${{ secrets.BALLERINA_BOT_TOKEN }}
bot_username: ${{ secrets.CHOREO_BOT_USERNAME }}
bot_email: ${{ secrets.CHOREO_BOT_EMAIL }}
bot_token: ${{ secrets.CHOREO_BOT_TOKEN }}
ref_name: ${{ github.ref_name }}
commonLibs: true
choreo: true
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release-vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
if [ "${{ github.event.inputs.mi }}" == "true" ]; then
echo "chatAPI=${{ secrets.MI_TEAM_CHAT_API }}" >> $GITHUB_OUTPUT
elif [ "${{ github.event.inputs.bi }}" == "true" ] || [ "${{ github.event.inputs.ballerina }}" == "true" ]; then
echo "chatAPI=${{ secrets.EGGPLANT_EXT_CHAT_API }}" >> $GITHUB_OUTPUT
echo "chatAPI=${{ secrets.BI_TEAM_CHAT_API }}" >> $GITHUB_OUTPUT
else
echo "chatAPI=${{ secrets.TOOLING_TEAM_CHAT_API }}" >> $GITHUB_OUTPUT
fi
Expand All @@ -130,7 +130,7 @@ jobs:
with:
repo: wso2/ballerina-vscode
name: ballerina
token: ${{ secrets.PUBLISH_PAT }}
token: ${{ secrets.CHOREO_BOT_TOKEN }}
chatAPI: ${{ steps.chat.outputs.chatAPI }}

- name: Create a release in wso2/product-ballerina-integrator repo
Expand All @@ -139,7 +139,7 @@ jobs:
with:
repo: wso2/product-ballerina-integrator
name: ballerina-integrator
token: ${{ secrets.PUBLISH_PAT }}
token: ${{ secrets.CHOREO_BOT_TOKEN }}
chatAPI: ${{ steps.chat.outputs.chatAPI }}

- name: Create a release in wso2/platform-vscode repo
Expand All @@ -148,7 +148,7 @@ jobs:
with:
repo: wso2/platform-vscode
name: wso2-platform
token: ${{ secrets.PUBLISH_PAT }}
token: ${{ secrets.CHOREO_BOT_TOKEN }}
chatAPI: ${{ steps.chat.outputs.chatAPI }}

- name: Create a release in wso2/choreo-vscode repo
Expand All @@ -157,7 +157,7 @@ jobs:
with:
repo: wso2/choreo-vscode
name: choreo
token: ${{ secrets.PUBLISH_PAT }}
token: ${{ secrets.CHOREO_BOT_TOKEN }}
chatAPI: ${{ steps.chat.outputs.chatAPI }}

- name: Create a release in wso2/apk repo
Expand All @@ -166,15 +166,15 @@ jobs:
with:
repo: wso2/apk
name: apk
token: ${{ secrets.MI_PUBLISH_PAT }}
token: ${{ secrets.CHOREO_BOT_TOKEN }}
chatAPI: ${{ steps.chat.outputs.chatAPI }}

- name: Create a release in wso2/mi-vscode repo
if: ${{ github.event.inputs.mi == 'true' }}
uses: ./.github/actions/release
with:
repo: wso2/mi-vscode
token: ${{ secrets.MI_PUBLISH_PAT }}
token: ${{ secrets.CHOREO_BOT_TOKEN }}
name: micro-integrator
chatAPI: ${{ steps.chat.outputs.chatAPI }}

Expand All @@ -183,9 +183,9 @@ jobs:
with:
version: ${{ steps.vsix.outputs.version }}
threadId: ${{ github.run_id }}
bot_username: ${{ secrets.BALLERINA_BOT_USERNAME }}
bot_email: ${{ secrets.BALLERINA_BOT_EMAIL }}
bot_token: ${{ secrets.BALLERINA_BOT_TOKEN }}
bot_username: ${{ secrets.CHOREO_BOT_USERNAME }}
bot_email: ${{ secrets.CHOREO_BOT_EMAIL }}
bot_token: ${{ secrets.CHOREO_BOT_TOKEN }}
ref_name: ${{ github.ref_name }}
ballerina: ${{ inputs.ballerina }}
bi: ${{ inputs.bi }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sync-main-with-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.BALLERINA_BOT_TOKEN }}
token: ${{ secrets.CHOREO_BOT_TOKEN }}

- name: Configure Git
run: |
git config --global user.email "${{ secrets.BALLERINA_BOT_EMAIL }}"
git config --global user.name "${{ secrets.BALLERINA_BOT_USERNAME }}"
git config --global user.email "${{ secrets.CHOREO_BOT_EMAIL }}"
git config --global user.name "${{ secrets.CHOREO_BOT_USERNAME }}"

- name: Create temporary branch and sync changes
run: |
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Create Pull Request
id: commit
env:
GH_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.CHOREO_BOT_TOKEN }}
run: |
RELEASE_BRANCH="${{ github.event.pull_request.base.ref }}"
TEMP_BRANCH=$(git branch --show-current)
Expand Down
Loading