Skip to content

Commit fc6faeb

Browse files
committed
Merge pull request microsoft#453 from pborreli/typos
Fixed typos
2 parents 150c33d + 16fc6b7 commit fc6faeb

27 files changed

Lines changed: 52 additions & 52 deletions

File tree

extensions/php/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"php.validate.executablePath": {
2525
"type": "string",
2626
"default": null,
27-
"description": "Points to the php exectuable."
27+
"description": "Points to the php executable."
2828
},
2929
"php.validate.run": {
3030
"type": "string",

src/vs/base/common/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface IActionItem extends IEventEmitter {
3434
}
3535

3636
/**
37-
* Checks if the provided object is compatabile
37+
* Checks if the provided object is compatible
3838
* with the IAction interface.
3939
* @param thing an object
4040
*/

src/vs/base/common/diff/diff.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var MaxDifferencesHistory = 1447;
9999
* A utility class which helps to create the set of DiffChanges from
100100
* a difference operation. This class accepts original DiffElements and
101101
* modified DiffElements that are involved in a particular change. The
102-
* MarktNextChange() method can be called to mark the seration between
102+
* MarktNextChange() method can be called to mark the separation between
103103
* distinct changes. At the end, the Changes property can be called to retrieve
104104
* the constructed changes.
105105
*/
@@ -612,7 +612,7 @@ export class LcsDiff {
612612

613613
// STEP 3: If delta is odd (overlap first happens on forward when delta is odd)
614614
// and diagonal is in the range of reverse diagonals computed for numDifferences-1
615-
// (the previous iteration; we havent computed reverse diagonals for numDifferences yet)
615+
// (the previous iteration; we haven't computed reverse diagonals for numDifferences yet)
616616
// then check for overlap.
617617
if (!deltaIsEven && Math.abs(diagonal - diagonalReverseBase) <= (numDifferences - 1)) {
618618
if (originalIndex >= reversePoints[diagonal]) {
@@ -754,7 +754,7 @@ export class LcsDiff {
754754
}
755755

756756
/**
757-
* Concatentates the two input DiffChange lists and returns the resulting
757+
* Concatenates the two input DiffChange lists and returns the resulting
758758
* list.
759759
* @param The left changes
760760
* @param The right changes

src/vs/base/common/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export function isPromiseCanceledError(error: any): boolean {
350350
}
351351

352352
/**
353-
* Returns an error that signals cancelation.
353+
* Returns an error that signals cancellation.
354354
*/
355355
export function canceled(): Error {
356356
var error = new Error(canceledName);

src/vs/base/common/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class Emitter<T> {
119119

120120
/**
121121
* Creates an Event which is backed-up by the event emitter. This allows
122-
* to use the existing eventing pattern and is likely using less memeory.
122+
* to use the existing eventing pattern and is likely using less memory.
123123
* Sample:
124124
*
125125
* class Document {

src/vs/base/common/glob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function starsToRegExp(starCount: number): string {
2828
return NO_PATH_REGEX + '*?'; // 1 star matches any number of characters except path separator (/ and \) - non greedy (?)
2929
default:
3030
// Matches: (Path Sep OR Path Val followed by Path Sep OR Path Sep followed by Path Val) 0-many times
31-
// Group is non capturing because we dont need to capture at all (?:...)
31+
// Group is non capturing because we don't need to capture at all (?:...)
3232
// Overall we use non-greedy matching because it could be that we match too much
3333
return '(?:' + PATH_REGEX + '|' + NO_PATH_REGEX + '+' + PATH_REGEX + '|' + PATH_REGEX + NO_PATH_REGEX + '+)*?';
3434
}

src/vs/base/common/network.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export namespace schemas {
455455

456456
/**
457457
* A schema that is used for models that exist in memory
458-
* only and that have no correspondance on a server or such.
458+
* only and that have no correspondence on a server or such.
459459
*/
460460
export var inMemory:string = 'inmemory';
461461

src/vs/base/common/sortedList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface ISortedList<TKey, TValue> extends IIterable<KeyValue<TKey, TVal
2727

2828
/**
2929
* Gets the value associated with the specified key.
30-
* Returns null if there is no value asociated with the key.
30+
* Returns null if there is no value associated with the key.
3131
* O(log n)
3232
*/
3333
getValue(key: TKey): TValue;

src/vs/base/common/strings.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import nls = require('vs/nls');
1212
export var empty = '';
1313

1414
/**
15-
* Returns the provided number with the given number of preceeding zeros.
15+
* Returns the provided number with the given number of preceding zeros.
1616
*/
1717
export function pad(n: number, l: number, char: string = '0'): string {
1818
var str = '' + n;
@@ -114,14 +114,14 @@ export function escapeRegExpCharacters(value: string): string {
114114
}
115115

116116
/**
117-
* Searches for all occurances of needle in haystack and replaces them with replacement.
117+
* Searches for all occurrences of needle in haystack and replaces them with replacement.
118118
*/
119119
export function replaceAll(haystack: string, needle: string, replacement: string): string {
120120
return haystack.replace(new RegExp(escapeRegExpCharacters(needle.toString()), 'g'), replacement);
121121
}
122122

123123
/**
124-
* Removes all occurances of needle from the beginning and end of haystack.
124+
* Removes all occurrences of needle from the beginning and end of haystack.
125125
* @param haystack string to trim
126126
* @param needle the thing to trim (default is a blank)
127127
*/
@@ -131,7 +131,7 @@ export function trim(haystack: string, needle: string = ' '): string {
131131
}
132132

133133
/**
134-
* Removes all occurances of needle from the beginning of haystack.
134+
* Removes all occurrences of needle from the beginning of haystack.
135135
* @param haystack string to trim
136136
* @param needle the thing to trim
137137
*/
@@ -155,7 +155,7 @@ export function ltrim(haystack?: string, needle?: string): string {
155155
}
156156

157157
/**
158-
* Removes all occurances of needle from the end of haystack.
158+
* Removes all occurrences of needle from the end of haystack.
159159
* @param haystack string to trim
160160
* @param needle the thing to trim
161161
*/
@@ -189,7 +189,7 @@ export function rtrim(haystack?: string, needle?: string): string {
189189
}
190190

191191
/**
192-
* Removes all occurances of whitespaces from the beginning and end of haystack.
192+
* Removes all occurrences of whitespaces from the beginning and end of haystack.
193193
*/
194194
export function trimWhitespace(haystack: string): string {
195195
return haystack.replace(/(^\s+|\s+$)/g, '');
@@ -512,7 +512,7 @@ export function difference(first: string, second: string, maxLenDelta: number =
512512
if (lengthDifference > maxLenDelta) {
513513
return 0;
514514
}
515-
// Initiliaze LCS (largest common subsequence) matrix.
515+
// Initialize LCS (largest common subsequence) matrix.
516516
var LCS: number[][] = [];
517517
var zeroArray: number[] = [];
518518
var i: number, j: number;

src/vs/base/common/uri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class URI {
9191
private _fsPath: string;
9292

9393
/**
94-
* Retuns a string representing the corresponding file system path of this URI.
94+
* Returns a string representing the corresponding file system path of this URI.
9595
* Will handle UNC paths and normalize windows drive letters to lower-case. Also
9696
* uses the platform specific path separator. Will *not* validate the path for
9797
* invalid characters and semantics. Will *not* look at the scheme of this URI.

0 commit comments

Comments
 (0)