You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by st...@apache.org on 2021/05/27 01:48:34 UTC

[openwhisk-vscode-extension] branch master updated: chore: fix HTML, grammar and spelling (#8)

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

style95 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-vscode-extension.git


The following commit(s) were added to refs/heads/master by this push:
     new 0395d49  chore: fix HTML, grammar and spelling (#8)
0395d49 is described below

commit 0395d494196278fa6c5e67ac86c9617a37894e28
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Thu May 27 11:48:28 2021 +1000

    chore: fix HTML, grammar and spelling (#8)
---
 README.md                                 | 2 +-
 src/activationList.ts                     | 4 ++--
 src/commands/common/openMetadataEditor.ts | 2 +-
 src/commands/deleteAction.ts              | 2 +-
 src/commands/deletePackage.ts             | 2 +-
 src/commands/deleteTrigger.ts             | 2 +-
 src/commands/editActionMetadata.ts        | 6 +++---
 src/commands/editPackageMetadata.ts       | 6 +++---
 src/commands/showTriggerInfo.ts           | 2 +-
 src/common/index.ts                       | 2 +-
 vsc-extension-quickstart.md               | 2 +-
 webview-template/triggerInfo.html         | 4 ++--
 12 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md
index f9aba87..a3c4836 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ This extension finds the `.wskprops` configuration file located in the home path
 - Explore all entities in your endpoints/namespaces.
     - The .wskprops file is automatically registered.
     - You can add the API host manually.
-    - You can add namespace manually by API auth key.
+    - You can add the namespace manually by API auth key.
 - Show the action code with syntax highlighting.
 - Edit the action code on the remote server.
 - Invoke the action remotely and get the activation result.
diff --git a/src/activationList.ts b/src/activationList.ts
index 11eb354..472a144 100644
--- a/src/activationList.ts
+++ b/src/activationList.ts
@@ -91,10 +91,10 @@ export class WskActivationProvider implements vscode.TreeDataProvider<WskActivat
         const start = activation.annotations?.find((x) => x.key === 'initTime') ? 'cold ' : 'warm';
 
         const durationFormat = `${duration} ms`;
-        const acitonName = `${activation.name}:${activation.version}`;
+        const actionName = `${activation.name}:${activation.version}`;
 
         if (withActionName) {
-            return [startTime, id, status, start, durationFormat, acitonName].join('\t');
+            return [startTime, id, status, start, durationFormat, actionName].join('\t');
         }
         return [startTime, id, status, start, durationFormat].join('\t');
     }
diff --git a/src/commands/common/openMetadataEditor.ts b/src/commands/common/openMetadataEditor.ts
index 21b2dcf..3491661 100644
--- a/src/commands/common/openMetadataEditor.ts
+++ b/src/commands/common/openMetadataEditor.ts
@@ -20,7 +20,7 @@ import * as fs from 'fs';
 import { WEBVIEW_TEMPLATE_PATH } from '../../constant/path';
 import { Limits } from 'openwhisk';
 
-export async function openMetadatEditor(
+export async function openMetadataEditor(
     viewType: string,
     tabTitle: string,
     context: vscode.ExtensionContext,
diff --git a/src/commands/deleteAction.ts b/src/commands/deleteAction.ts
index 3d65913..8add04f 100644
--- a/src/commands/deleteAction.ts
+++ b/src/commands/deleteAction.ts
@@ -28,7 +28,7 @@ export async function deleteAction(action: WskAction): Promise<void> {
             .delete(action.getFullName())
             .then((target) => {
                 vscode.window.showInformationMessage(
-                    `Action ${target.name} is deleted succesfully.`
+                    `Action ${target.name} is deleted successfully.`
                 );
             })
             .catch(() => vscode.window.showErrorMessage(`Failed to delete ${action.label}`));
diff --git a/src/commands/deletePackage.ts b/src/commands/deletePackage.ts
index 2654258..2953fbe 100644
--- a/src/commands/deletePackage.ts
+++ b/src/commands/deletePackage.ts
@@ -29,7 +29,7 @@ export async function deletePackage(pkg: WskPackage): Promise<void> {
             .delete(packageName)
             .then(() => {
                 vscode.window.showInformationMessage(
-                    `Package ${packageName} is deleted succesfully.`
+                    `Package ${packageName} is deleted successfully.`
                 );
             })
             .catch((error) =>
diff --git a/src/commands/deleteTrigger.ts b/src/commands/deleteTrigger.ts
index 9905eb8..38b890f 100644
--- a/src/commands/deleteTrigger.ts
+++ b/src/commands/deleteTrigger.ts
@@ -32,7 +32,7 @@ export async function deleteTrigger(trigger: WskTrigger): Promise<void> {
             .delete(triggerName)
             .then(() => {
                 vscode.window.showInformationMessage(
-                    `Trigger ${triggerName} is deleted succesfully.`
+                    `Trigger ${triggerName} is deleted successfully.`
                 );
             })
             .catch(() => vscode.window.showErrorMessage(`Failed to delete ${triggerName}`));
diff --git a/src/commands/editActionMetadata.ts b/src/commands/editActionMetadata.ts
index 18f06ba..439e04b 100644
--- a/src/commands/editActionMetadata.ts
+++ b/src/commands/editActionMetadata.ts
@@ -18,7 +18,7 @@ import * as vscode from 'vscode';
 
 import { WskAction } from '../wskEntity';
 import { convertKeyValToObj } from '../common';
-import { openMetadatEditor } from './common/openMetadataEditor';
+import { openMetadataEditor } from './common/openMetadataEditor';
 import { Limits } from 'openwhisk';
 
 export async function editActionMetadata(
@@ -40,13 +40,13 @@ export async function editActionMetadata(
                 annotations: annotations,
                 limits: limits,
             });
-            vscode.window.showInformationMessage('The action is updated succesfully.');
+            vscode.window.showInformationMessage('The action is updated successfully.');
         } catch (e) {
             vscode.window.showErrorMessage(`Failed to update the action (${e.message})`);
         }
     };
 
-    await openMetadatEditor(
+    await openMetadataEditor(
         'editActionMetadata',
         `Edit action metadata: ${action.actionDesc.name}`,
         context,
diff --git a/src/commands/editPackageMetadata.ts b/src/commands/editPackageMetadata.ts
index a099536..ba640b5 100644
--- a/src/commands/editPackageMetadata.ts
+++ b/src/commands/editPackageMetadata.ts
@@ -18,7 +18,7 @@ import * as vscode from 'vscode';
 
 import { WskPackage } from '../wskEntity';
 import { convertKeyValToObj, convertObjToKeyVal } from '../common';
-import { openMetadatEditor } from './common/openMetadataEditor';
+import { openMetadataEditor } from './common/openMetadataEditor';
 
 export async function editPackageMetadata(
     pkg: WskPackage,
@@ -36,12 +36,12 @@ export async function editPackageMetadata(
                 parameters: convertObjToKeyVal(params),
                 annotations: convertObjToKeyVal(annotations),
             });
-            vscode.window.showInformationMessage('The package is updated succesfully.');
+            vscode.window.showInformationMessage('The package is updated successfully.');
         } catch (e) {
             vscode.window.showErrorMessage(`Failed to update the package (${e.message})`);
         }
     };
-    await openMetadatEditor(
+    await openMetadataEditor(
         'editPackageMetadata',
         `Edit package metadata: ${packageName}`,
         context,
diff --git a/src/commands/showTriggerInfo.ts b/src/commands/showTriggerInfo.ts
index 6452bfb..477bd15 100644
--- a/src/commands/showTriggerInfo.ts
+++ b/src/commands/showTriggerInfo.ts
@@ -84,7 +84,7 @@ export async function showTriggerInfo(
                     parameters: convertObjToKeyVal(parameterObject),
                 },
             });
-            vscode.window.showInformationMessage('The trigger is updated succesfully.');
+            vscode.window.showInformationMessage('The trigger is updated successfully.');
             triggerDesc = null;
         }
     });
diff --git a/src/common/index.ts b/src/common/index.ts
index 6a40061..2d31041 100644
--- a/src/common/index.ts
+++ b/src/common/index.ts
@@ -22,7 +22,7 @@ export async function showConfirmMessage(message: string, action = 'delete') {
         message,
         { modal: true },
         { action: 'confirm', title: action, isCloseAffordance: false },
-        { action: 'cancel', title: 'Calcel', isCloseAffordance: true }
+        { action: 'cancel', title: 'Cancel', isCloseAffordance: true }
     );
     return res.action === 'confirm';
 }
diff --git a/vsc-extension-quickstart.md b/vsc-extension-quickstart.md
index b510bff..869d46e 100644
--- a/vsc-extension-quickstart.md
+++ b/vsc-extension-quickstart.md
@@ -2,7 +2,7 @@
 
 ## What's in the folder
 
-* This folder contains all of the files necessary for your extension.
+* This folder contains all the files necessary for your extension.
 * `package.json` - this is the manifest file in which you declare your extension and command.
   * The sample plugin registers a command and defines its title and command name. With this information VS Code can show the command in the command palette. It doesn’t yet need to load the plugin.
 * `src/extension.ts` - this is the main file where you will provide the implementation of your command.
diff --git a/webview-template/triggerInfo.html b/webview-template/triggerInfo.html
index 5dd3a5b..c944303 100644
--- a/webview-template/triggerInfo.html
+++ b/webview-template/triggerInfo.html
@@ -9,7 +9,7 @@
     <link href="{{webviewTemplatePath}}/css/common.css" rel="stylesheet" type="text/css">
 </head>
 <body>
-    <h2>Trigger Information</h1>
+    <h2>Trigger Information</h2>
     <table>
         <tr>
             <th>Trigger name</th>
@@ -32,7 +32,7 @@
         <button class="button" onclick="update()">Update trigger</button>
     </div>
 
-    <h2>Connected actions</h1>
+    <h2>Connected actions</h2>
     <table id="ruleTable">
         <tr>
             <th>Rule</th>