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 ec1dce4a0449329a74699d8f507a19da08f737f2
Author: William Grienti <[email protected]>
AuthorDate: Sat Mar 23 15:32:29 2024 +0100

    theia compatibility and small messages fixes
---
 package.json       |  2 +-
 publish.sh         |  2 +-
 src/extension.ts   | 27 +++++++++++++++++++++++++--
 src/login/login.ts |  8 ++++----
 4 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/package.json b/package.json
index 8753e50..8a867d3 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.3",
+       "version": "1.0.4",
        "publisher": "nuvolaris",
        "repository": "https://github.com/nuvolaris/nuvolaris-vscode-extension";,
        "engines": {
diff --git a/publish.sh b/publish.sh
index c837d98..7404d50 100644
--- a/publish.sh
+++ b/publish.sh
@@ -5,4 +5,4 @@ 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
+gh release create v$VER -t v$VER nuvolaris-vscode-extension.vsix
\ No newline at end of file
diff --git a/src/extension.ts b/src/extension.ts
index edabda5..3db737a 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -11,6 +11,14 @@ let context: vscode.ExtensionContext;
 
 export async function activate(ctx: vscode.ExtensionContext) {
        try {
+
+               // Necessary for Theia compatibility of welcome screen. See 
https://github.com/eclipse-theia/theia/issues/9361
+               vscode.window.registerTreeDataProvider(
+                       "command-palette",
+                       new EmptyTreeDataProvider()
+               );
+               // 
+
                context = ctx;
                if (!isLoggedIn()) {
                        LoginPanel.render(handleLogin, context.extensionUri);
@@ -75,9 +83,24 @@ function launchTerminal(command: string): void {
 }
 
 function printError(error: any) {
-       return vscode.window.showErrorMessage("Error occurred", 
error.toString());
+       return vscode.window.showErrorMessage(error.toString());
 }
 function printInfo(info: string) {
-       return vscode.window.showInformationMessage("Info", info);
+       return vscode.window.showInformationMessage(info);
 
 }
+
+export function deactivate() {}
+
+// Necessary for Theia compatibility of welcome screen. See 
https://github.com/eclipse-theia/theia/issues/9361
+export class EmptyTreeDataProvider implements vscode.TreeDataProvider<any> {
+       constructor() {}
+
+       getTreeItem(element: any): vscode.TreeItem {
+               return {};
+       }
+
+       getChildren(element?: any): Thenable<any[]> {
+               return new Promise((resolve) => resolve([]));
+       }
+}
\ No newline at end of file
diff --git a/src/login/login.ts b/src/login/login.ts
index 56c3db3..667c66f 100644
--- a/src/login/login.ts
+++ b/src/login/login.ts
@@ -18,13 +18,13 @@ function main() {
       .addEventListener("click", handleLoginSubmit);
 
     LoginPage.getUsername()
-      .addEventListener("keypress", validateLogin);
+      .addEventListener("input", validateLogin);
 
     LoginPage.getPassword()
-      .addEventListener("keypress", validateLogin);
-
+      .addEventListener("input", validateLogin)
+      
     LoginPage.getApiHost()
-      .addEventListener("keypress", validateLogin);
+      .addEventListener("input", validateLogin);
 
   } catch (error: any) {
     sendError(error);

Reply via email to