Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling Fixes #720

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion browser/src/components/LogView/BranchGraph/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class BrachGraph extends React.Component<BranchGrapProps> {
}

// 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);
}
Expand Down
2 changes: 1 addition & 1 deletion browser/src/components/LogView/Commit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Commit extends React.Component<CommitProps, CommitState> {
};
private handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
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;
}
Expand Down
2 changes: 1 addition & 1 deletion browser/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Global definitions for developement **/
/** Global definitions for development **/

// for style loader
declare module '*.css' {
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/avatar/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/parsers/fileStat/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | undefined>((separator, item) => {
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/repository/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
6 changes: 3 additions & 3 deletions test/non-extension/__mocks__/vsc/arrays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(array: T[], p: (x: T) => boolean): number {
let low = 0,
Expand Down Expand Up @@ -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<T>(array: T[], compare: (a: T, b: T) => number, n: number): T[] {
if (n === 0) {
Expand Down Expand Up @@ -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<T>(array: T[], keyFn?: (t: T) => string): T[] {
if (!keyFn) {
Expand Down