From c4cb95558b31e00f64c2f477a62746c645f5d926 Mon Sep 17 00:00:00 2001 From: davis-matthew Date: Wed, 3 Aug 2022 18:40:59 -0500 Subject: [PATCH] Spelling Fixes --- browser/src/components/LogView/BranchGraph/index.tsx | 2 +- browser/src/components/LogView/Commit/index.tsx | 2 +- browser/src/global.d.ts | 2 +- src/adapter/avatar/github.ts | 2 +- src/adapter/parsers/fileStat/parser.ts | 2 +- src/adapter/repository/git.ts | 2 +- test/non-extension/__mocks__/vsc/arrays.ts | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/browser/src/components/LogView/BranchGraph/index.tsx b/browser/src/components/LogView/BranchGraph/index.tsx index beca732a..aa20db03 100644 --- a/browser/src/components/LogView/BranchGraph/index.tsx +++ b/browser/src/components/LogView/BranchGraph/index.tsx @@ -14,7 +14,7 @@ class BrachGraph extends React.Component { } // Hack, first clear before rebuilding. - // Remember, we will need to support apending results, as opposed to clearing page + // Remember, we will need to support appending results, as opposed to clearing page drawGitGraph(this.svg, this.svg.nextSibling as HTMLElement, 0, this.props.itemHeight, []); drawGitGraph(this.svg, this.svg.nextSibling as HTMLElement, 0, this.props.itemHeight, this.props.logEntries); } diff --git a/browser/src/components/LogView/Commit/index.tsx b/browser/src/components/LogView/Commit/index.tsx index 72f7fa27..bab9d6d0 100644 --- a/browser/src/components/LogView/Commit/index.tsx +++ b/browser/src/components/LogView/Commit/index.tsx @@ -78,7 +78,7 @@ class Commit extends React.Component { }; private handleKeyDown = (e: React.KeyboardEvent) => { if (e.key === 'Escape' && !this.state.searchText) { - // close commit view when ESC is pressen (but only when no text given) + // close commit view when ESC is pressed (but only when no text given) this.onClose(); return; } diff --git a/browser/src/global.d.ts b/browser/src/global.d.ts index ede510e0..39d2500f 100644 --- a/browser/src/global.d.ts +++ b/browser/src/global.d.ts @@ -1,4 +1,4 @@ -/** Global definitions for developement **/ +/** Global definitions for development **/ // for style loader declare module '*.css' { diff --git a/src/adapter/avatar/github.ts b/src/adapter/avatar/github.ts index f975d483..74246f7f 100644 --- a/src/adapter/avatar/github.ts +++ b/src/adapter/avatar/github.ts @@ -138,7 +138,7 @@ export class GithubAvatarProvider extends BaseAvatarProvider implements IAvatarP } /** - * Fetch all constributors from the remote repository through Github API + * Fetch all contributors from the remote repository through Github API * @param repoPath relative repository path */ private getContributors(repoPath: string) { diff --git a/src/adapter/parsers/fileStat/parser.ts b/src/adapter/parsers/fileStat/parser.ts index 1b0e0e71..f42e6e24 100644 --- a/src/adapter/parsers/fileStat/parser.ts +++ b/src/adapter/parsers/fileStat/parser.ts @@ -20,7 +20,7 @@ export class FileStatParser implements IFileStatParser { // src/{client/common/comms/another dir => }/id Dispenser.ts // src/test/jupyter/{extension.jupyter.comms.jupyterKernelManager.test.ts => jupyterKernelManager.test.ts} - // Another exampe is as follows, where a tab is used as a separator + // Another example is as follows, where a tab is used as a separator // src/vs/workbench/services/extensions/node/ipcRemoteCom.ts src/vs/workbench/services/extensions/node/rpcProtocol.ts const diffSeparator = [' => ', '\t'].reduce((separator, item) => { diff --git a/src/adapter/repository/git.ts b/src/adapter/repository/git.ts index 6d33c3ac..c9cee69a 100644 --- a/src/adapter/repository/git.ts +++ b/src/adapter/repository/git.ts @@ -148,7 +148,7 @@ export class Git implements IGitService { * Used to load dereferenced hashes for (annotation) tags * * This is used in vscode versions prior to 1.52 because - * annotation references to not correct point to the assocated commit + * annotation references to not correct point to the associated commit * * See https://github.com/microsoft/vscode/issues/92146 */ diff --git a/test/non-extension/__mocks__/vsc/arrays.ts b/test/non-extension/__mocks__/vsc/arrays.ts index 34a650a6..86dc3229 100644 --- a/test/non-extension/__mocks__/vsc/arrays.ts +++ b/test/non-extension/__mocks__/vsc/arrays.ts @@ -50,7 +50,7 @@ export namespace vscMockArrays { /** * Takes a sorted array and a function p. The array is sorted in such a way that all elements where p(x) is false * are located before all elements where p(x) is true. - * @returns the least x for which p(x) is true or array.length if no element fullfills the given function. + * @returns the least x for which p(x) is true or array.length if no element fulfills the given function. */ export function findFirst(array: T[], p: (x: T) => boolean): number { let low = 0, @@ -215,7 +215,7 @@ export namespace vscMockArrays { * @param array The unsorted array. * @param compare A sort function for the elements. * @param n The number of elements to return. - * @return The first n elemnts from array when sorted with compare. + * @return The first n elements from array when sorted with compare. */ export function top(array: T[], compare: (a: T, b: T) => number, n: number): T[] { if (n === 0) { @@ -265,7 +265,7 @@ export namespace vscMockArrays { /** * Removes duplicates from the given array. The optional keyFn allows to specify - * how elements are checked for equalness by returning a unique string for each. + * how elements are checked for equality by returning a unique string for each. */ export function distinct(array: T[], keyFn?: (t: T) => string): T[] { if (!keyFn) {