Skip to content

Commit

Permalink
fix(vscode): Fix typos in code (#4654)
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
ccastrotrejo committed Apr 19, 2024
1 parent 3afadda commit 6648d7c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
8 changes: 8 additions & 0 deletions Localize/lang/strings.json
@@ -1,6 +1,7 @@
{
"++ZVe/": "Testing",
"+0H8Or": "Warning: input node type does not match the schema node's type",
"+0ua83": "Parameters",
"+0yxlR": "Function display",
"+3rROX": "Protected",
"+FcXe9": "Faulted",
Expand Down Expand Up @@ -906,9 +907,11 @@
"Zi9gQK": "Add new item",
"ZihyUf": "Close",
"ZkjTbp": "Learn more about dynamic content.",
"ZvAp7m": "Save",
"ZyDq4/": "Show a different suggestion",
"_++ZVe/.comment": "Title for testing section",
"_+0H8Or.comment": "Warning message for when input node type does not match schema node type",
"_+0ua83.comment": "Button text for parameters",
"_+0yxlR.comment": "Label for the function display radio group",
"_+3rROX.comment": "Label in the chatbot header stating that the users information is protected in this chatbot",
"_+FcXe9.comment": "The status message to show in monitoring view.",
Expand Down Expand Up @@ -1814,6 +1817,7 @@
"_Zi9gQK.comment": "Label to add item to property editor",
"_ZihyUf.comment": "Label for the close button in the chatbot header",
"_ZkjTbp.comment": "Text for dynamic content link",
"_ZvAp7m.comment": "Button text for save",
"_ZyDq4/.comment": "Text for the show different suggestion flow button",
"_a7j3gS.comment": "Required number parameter to divide in mod function",
"_aAXnqw.comment": "Required number of occurrences to get nthIndexOf function with",
Expand Down Expand Up @@ -2164,6 +2168,7 @@
"_oWGaw9.comment": "Click to view less token options.",
"_oZMhX/.comment": "Text of Tooltip to expand",
"_odQ554.comment": "Response body for test map API",
"_ohOaXj.comment": "Button text for errors",
"_onXUu0.comment": "Text to tell users to click to add comments",
"_osKNnl.comment": "Error validation message for doubles",
"_ox2Ou7.comment": "Placeholder for empty collapsed dictionary",
Expand Down Expand Up @@ -2247,6 +2252,7 @@
"_sEqLTV.comment": "An accessability label that describes the testing tab",
"_sFbnCs.comment": "Time zone value ",
"_sFwHQc.comment": "aria label description for cancel button",
"_sOnphB.comment": "Button text for resubmit",
"_sQ2vRs.comment": "add a case to switch statement",
"_sRpETS.comment": "Warning message for when custom value does not match schema node type",
"_sVQe34.comment": "The description for the test tab parameters.",
Expand Down Expand Up @@ -2795,6 +2801,7 @@
"oWGaw9": "See Less",
"oZMhX/": "Expand",
"odQ554": "Response body",
"ohOaXj": "Errors",
"onXUu0": "Add a note",
"osKNnl": "Enter a valid Double number.",
"ox2Ou7": "Enter a valid JSON",
Expand Down Expand Up @@ -2878,6 +2885,7 @@
"sEqLTV": "Testing Tab",
"sFbnCs": "(UTC-05:00) Chetumal",
"sFwHQc": "Cancel creating a connection",
"sOnphB": "Resubmit",
"sQ2vRs": "Add Case",
"sRpETS": "Warning: custom value does not match the schema node's type",
"sVQe34": "Provide parameters to test the output.",
Expand Down
Expand Up @@ -12,7 +12,7 @@ import * as fse from 'fs-extra';
import { Uri, window, workspace } from 'vscode';
import type { Progress } from 'vscode';

interface ICachedWorfkflow {
interface ICachedWorkflow {
projectPath: string;
newFilePath: string;
isHttpTrigger: boolean;
Expand All @@ -21,7 +21,7 @@ interface ICachedWorfkflow {
const cacheKey = 'azLAPostWorkflowCreate';

export function runPostWorkflowCreateStepsFromCache(): void {
const cachedFunc: ICachedWorfkflow | undefined = ext.context.globalState.get(cacheKey);
const cachedFunc: ICachedWorkflow | undefined = ext.context.globalState.get(cacheKey);
if (cachedFunc) {
try {
runPostWorkflowCreateSteps(cachedFunc);
Expand All @@ -47,7 +47,7 @@ export abstract class WorkflowCreateStepBase<T extends IFunctionWizardContext> e

const newFilePath = await this.executeCore(context);

const cachedFunc: ICachedWorfkflow = { projectPath: context.projectPath, newFilePath, isHttpTrigger: template.isHttpTrigger };
const cachedFunc: ICachedWorkflow = { projectPath: context.projectPath, newFilePath, isHttpTrigger: template.isHttpTrigger };

if (context.openBehavior) {
// OpenFolderStep sometimes restarts the extension host, so we will cache this to run on the next extension activation
Expand All @@ -66,7 +66,7 @@ export abstract class WorkflowCreateStepBase<T extends IFunctionWizardContext> e
}
}

function runPostWorkflowCreateSteps(workflow: ICachedWorfkflow): void {
function runPostWorkflowCreateSteps(workflow: ICachedWorkflow): void {
callWithTelemetryAndErrorHandling('postWorkflowCreate', async (context: IActionContext) => {
context.telemetry.suppressIfSuccessful = true;

Expand Down
Expand Up @@ -11,7 +11,7 @@ import type { Artifacts, AzureConnectorDetails, ConnectionsData, FileDetails, Pa
import { azurePublicBaseUrl, workflowManagementBaseURIKey } from '../../../../constants';
import type { WebviewPanel, WebviewOptions, WebviewPanelOptions } from 'vscode';

export interface IDesingerOptions {
export interface IDesignerOptions {
references?: any;
connectionsData: string;
parametersData: Record<string, Parameter>;
Expand Down Expand Up @@ -77,7 +77,7 @@ export abstract class OpenDesignerBase {
this.panel.webview.postMessage(msg);
}

protected async getWebviewContent(options: IDesingerOptions): Promise<string> {
protected async getWebviewContent(options: IDesignerOptions): Promise<string> {
const { parametersData, localSettings, artifacts, azureDetails } = options;
let { connectionsData } = options;

Expand Down
4 changes: 2 additions & 2 deletions apps/vs-code-designer/src/app/utils/verifyIsProject.ts
Expand Up @@ -26,8 +26,8 @@ export async function isLogicAppProject(folderPath: string): Promise<boolean> {
const hostJsonData = fse.readFileSync(hostFilePath, 'utf-8');
const hostJson = JSON.parse(hostJsonData);

const hasWorfklowBundle = hostJson?.extensionBundle?.id === extensionBundleId;
return hasHostJson && hasLocalSettingsJson && hasWorfklowBundle;
const hasWorkflowBundle = hostJson?.extensionBundle?.id === extensionBundleId;
return hasHostJson && hasLocalSettingsJson && hasWorkflowBundle;
}

return false;
Expand Down
Expand Up @@ -147,7 +147,7 @@ export const DesignerCommandBar: React.FC<DesignerCommandBarProps> = ({ isRefres

const isSaveDisabled = useMemo(() => isSaving || haveErrors || !designerIsDirty, [isSaving, haveErrors, designerIsDirty]);

const desingerItems: ICommandBarItemProps[] = [
const designerItems: ICommandBarItemProps[] = [
{
key: 'Save',
disabled: isSaveDisabled,
Expand Down Expand Up @@ -222,7 +222,7 @@ export const DesignerCommandBar: React.FC<DesignerCommandBarProps> = ({ isRefres

return (
<CommandBar
items={isMonitoringView ? monitoringViewItems : desingerItems}
items={isMonitoringView ? monitoringViewItems : designerItems}
ariaLabel="Use left and right arrow keys to navigate between commands"
styles={{
root: { borderBottom: `1px solid ${isDarkMode ? '#333333' : '#d6d6d6'}`, padding: '0 20px' },
Expand Down

0 comments on commit 6648d7c

Please sign in to comment.