This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/openserverless-vscode-extension.git

commit 08bc41f3225c3ef52eb5524978a00f1903c004ee
Author: Michele Sciabarra <[email protected]>
AuthorDate: Wed Mar 20 17:31:43 2024 +0000

    v1.0.3
---
 .gitignore        |  2 ++
 debug.sh          | 12 ++++++++++++
 package-lock.json |  4 ++--
 package.json      |  2 +-
 publish.sh        |  8 ++++++++
 src/extension.ts  |  2 +-
 6 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index 287c36b..9c0b28f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@ node_modules
 *.vsix
 .vscode/
 .git-hooks/
+extdir/
+userdir/
diff --git a/debug.sh b/debug.sh
new file mode 100644
index 0000000..ecaaf36
--- /dev/null
+++ b/debug.sh
@@ -0,0 +1,12 @@
+if test -n "$NUV_ROOT"
+then echo "warning: NUV_ROOT set - you are using your own olaris"
+fi
+
+if test -z "$NUVDEV_FORCE"
+then echo "warning: NUVDEV_FORCE unset - it will not work without a container"
+fi
+npm run package
+dir=$(pwd)
+mkdir -p /tmp/vs/extdir /tmp/vs/userdir
+cd /tmp/vs
+code --user-data-dir userdir  --extensions-dir extdir --disable-extensions $dir
diff --git a/package-lock.json b/package-lock.json
index e6ef8bd..5bc55ce 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
 {
        "name": "nuvolaris-vscode-extension",
-       "version": "1.0.2",
+       "version": "1.0.3",
        "lockfileVersion": 3,
        "requires": true,
        "packages": {
                "": {
                        "name": "nuvolaris-vscode-extension",
-                       "version": "1.0.2",
+                       "version": "1.0.3",
                        "devDependencies": {
                                "@types/node": "^16.18.34",
                                "@types/vscode": "^1.73.0",
diff --git a/package.json b/package.json
index 8f5b68e..8753e50 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
        "displayName": "nuvolaris",
        "icon": "media/nuv_market.png",
        "description": "Nuvolaris extension for VS Code",
-       "version": "1.0.2",
+       "version": "1.0.3",
        "publisher": "nuvolaris",
        "repository": "https://github.com/nuvolaris/nuvolaris-vscode-extension";,
        "engines": {
diff --git a/publish.sh b/publish.sh
new file mode 100644
index 0000000..c837d98
--- /dev/null
+++ b/publish.sh
@@ -0,0 +1,8 @@
+npm install -g @vscode/vsce
+npm install
+npm run package
+vsce package
+vsce publish
+
+VER="$(jq -r .version package.json)"
+gh release create v$VER -t v$VER nuvolaris-vscode-extension-${VER}.vsix
\ No newline at end of file
diff --git a/src/extension.ts b/src/extension.ts
index 2f76ad2..edabda5 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -50,7 +50,7 @@ function handleLogin(username: string, password: string, 
apiHost: string) {
        loginOutput.show();
        try {
                loginOutput.appendLine('Launching login script...');
-               const execLogin = execSync(`nuv -login ${apiHost.endsWith('/') 
? apiHost.slice(0, -1) : apiHost} ${username}`, {
+               const execLogin = execSync(`nuv ide login  "${username}" 
"${apiHost.endsWith('/') ? apiHost.slice(0, -1) : apiHost}"`, {
                        env: {...process.env, NUV_PASSWORD: password}
                });
                loginOutput.appendLine(execLogin.toString());

Reply via email to