Fixed typos

This commit is contained in:
Pascal Borreli 2015-11-22 15:45:31 +00:00
parent e807c0e305
commit 16fc6b7585
27 changed files with 52 additions and 52 deletions

View file

@ -24,7 +24,7 @@
"php.validate.executablePath": {
"type": "string",
"default": null,
"description": "Points to the php exectuable."
"description": "Points to the php executable."
},
"php.validate.run": {
"type": "string",

View file

@ -34,7 +34,7 @@ export interface IActionItem extends IEventEmitter {
}
/**
* Checks if the provided object is compatabile
* Checks if the provided object is compatible
* with the IAction interface.
* @param thing an object
*/

View file

@ -99,7 +99,7 @@ var MaxDifferencesHistory = 1447;
* A utility class which helps to create the set of DiffChanges from
* a difference operation. This class accepts original DiffElements and
* modified DiffElements that are involved in a particular change. The
* MarktNextChange() method can be called to mark the seration between
* MarktNextChange() method can be called to mark the separation between
* distinct changes. At the end, the Changes property can be called to retrieve
* the constructed changes.
*/
@ -612,7 +612,7 @@ export class LcsDiff {
// STEP 3: If delta is odd (overlap first happens on forward when delta is odd)
// and diagonal is in the range of reverse diagonals computed for numDifferences-1
// (the previous iteration; we havent computed reverse diagonals for numDifferences yet)
// (the previous iteration; we haven't computed reverse diagonals for numDifferences yet)
// then check for overlap.
if (!deltaIsEven && Math.abs(diagonal - diagonalReverseBase) <= (numDifferences - 1)) {
if (originalIndex >= reversePoints[diagonal]) {
@ -754,7 +754,7 @@ export class LcsDiff {
}
/**
* Concatentates the two input DiffChange lists and returns the resulting
* Concatenates the two input DiffChange lists and returns the resulting
* list.
* @param The left changes
* @param The right changes

View file

@ -350,7 +350,7 @@ export function isPromiseCanceledError(error: any): boolean {
}
/**
* Returns an error that signals cancelation.
* Returns an error that signals cancellation.
*/
export function canceled(): Error {
var error = new Error(canceledName);

View file

@ -119,7 +119,7 @@ export class Emitter<T> {
/**
* Creates an Event which is backed-up by the event emitter. This allows
* to use the existing eventing pattern and is likely using less memeory.
* to use the existing eventing pattern and is likely using less memory.
* Sample:
*
* class Document {

View file

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

View file

@ -455,7 +455,7 @@ export namespace schemas {
/**
* A schema that is used for models that exist in memory
* only and that have no correspondance on a server or such.
* only and that have no correspondence on a server or such.
*/
export var inMemory:string = 'inmemory';

View file

@ -27,7 +27,7 @@ export interface ISortedList<TKey, TValue> extends IIterable<KeyValue<TKey, TVal
/**
* Gets the value associated with the specified key.
* Returns null if there is no value asociated with the key.
* Returns null if there is no value associated with the key.
* O(log n)
*/
getValue(key: TKey): TValue;

View file

@ -12,7 +12,7 @@ import nls = require('vs/nls');
export var empty = '';
/**
* Returns the provided number with the given number of preceeding zeros.
* Returns the provided number with the given number of preceding zeros.
*/
export function pad(n: number, l: number, char: string = '0'): string {
var str = '' + n;
@ -114,14 +114,14 @@ export function escapeRegExpCharacters(value: string): string {
}
/**
* Searches for all occurances of needle in haystack and replaces them with replacement.
* Searches for all occurrences of needle in haystack and replaces them with replacement.
*/
export function replaceAll(haystack: string, needle: string, replacement: string): string {
return haystack.replace(new RegExp(escapeRegExpCharacters(needle.toString()), 'g'), replacement);
}
/**
* Removes all occurances of needle from the beginning and end of haystack.
* Removes all occurrences of needle from the beginning and end of haystack.
* @param haystack string to trim
* @param needle the thing to trim (default is a blank)
*/
@ -131,7 +131,7 @@ export function trim(haystack: string, needle: string = ' '): string {
}
/**
* Removes all occurances of needle from the beginning of haystack.
* Removes all occurrences of needle from the beginning of haystack.
* @param haystack string to trim
* @param needle the thing to trim
*/
@ -155,7 +155,7 @@ export function ltrim(haystack?: string, needle?: string): string {
}
/**
* Removes all occurances of needle from the end of haystack.
* Removes all occurrences of needle from the end of haystack.
* @param haystack string to trim
* @param needle the thing to trim
*/
@ -189,7 +189,7 @@ export function rtrim(haystack?: string, needle?: string): string {
}
/**
* Removes all occurances of whitespaces from the beginning and end of haystack.
* Removes all occurrences of whitespaces from the beginning and end of haystack.
*/
export function trimWhitespace(haystack: string): string {
return haystack.replace(/(^\s+|\s+$)/g, '');
@ -512,7 +512,7 @@ export function difference(first: string, second: string, maxLenDelta: number =
if (lengthDifference > maxLenDelta) {
return 0;
}
// Initiliaze LCS (largest common subsequence) matrix.
// Initialize LCS (largest common subsequence) matrix.
var LCS: number[][] = [];
var zeroArray: number[] = [];
var i: number, j: number;

View file

@ -91,7 +91,7 @@ export default class URI {
private _fsPath: string;
/**
* Retuns a string representing the corresponding file system path of this URI.
* Returns a string representing the corresponding file system path of this URI.
* Will handle UNC paths and normalize windows drive letters to lower-case. Also
* uses the platform specific path separator. Will *not* validate the path for
* invalid characters and semantics. Will *not* look at the scheme of this URI.

View file

@ -28,7 +28,7 @@ define(['./winjs.base.raw', 'vs/base/common/errors'], function (raw, __Errors__)
return;
}
// Indicate that this error was orignated and needs to be handled
// Indicate that this error was originated and needs to be handled
outstandingPromiseErrors[id] = details;
// The first time the queue fills up this iteration, schedule a timeout to

View file

@ -8,7 +8,7 @@
import sd = require('string_decoder');
/**
* Convinient way to iterate over output line by line. This helper accomodates for the fact that
* Convenient way to iterate over output line by line. This helper accommodates for the fact that
* a buffer might not end with new lines all the way.
*
* To use:

View file

@ -145,7 +145,7 @@ function Sequence(sequences: { (...param: any[]): void; }[]): void {
clb(error, null);
} else {
sequenceResult = result; //Remember result of sequence
clb(null, null); //Dont pass on result to Looper as we are not aggregating it
clb(null, null); //Don't pass on result to Looper as we are not aggregating it
}
};
@ -166,7 +166,7 @@ function Sequence(sequences: { (...param: any[]): void; }[]): void {
/**
* Takes a variable list of functions to execute in sequence. The first function must be the error handler and the
* following functions can do arbritrary work. "this" must be used as callback value for async functions to continue
* following functions can do arbitrary work. "this" must be used as callback value for async functions to continue
* through the sequence:
* sequence(
* function errorHandler(error) {

View file

@ -111,7 +111,7 @@ function doDetectMimesFromContent(enc: string, buffer: NodeBuffer, bytesRead: nu
if (enc === encoding.UTF8) {
startpos = 3; // prepare for skipping BOM
} else {
return []; // we dont auto detect from other encodings yet
return []; // we don't auto detect from other encodings yet
}
}
@ -156,7 +156,7 @@ export function detectMimesFromStream(instream: streams.Readable, nameHint: stri
/**
* Opens the given file to detect its mime type. Returns an array of mime types sorted from most specific to unspecific.
* @param absolutePath the pabsolute ath of the file.
* @param absolutePath the absolute path of the file.
*/
export function detectMimesFromFile(absolutePath: string, callback: (error: Error, result: IMimeAndEncoding) => void): void {
doDetectMimesFromFile(absolutePath, (error: Error, result: IMimeAndEncoding) => {

View file

@ -122,11 +122,11 @@ export abstract class AbstractProcess<TProgressData> {
this.shell = false;
this.options = <ForkOptions>arg3;
} else {
let exectuable = <Executable>arg1;
this.cmd = exectuable.command;
this.shell = exectuable.isShellCommand;
this.args = exectuable.args.slice(0);
this.options = exectuable.options || {};
let executable = <Executable>arg1;
this.cmd = executable.command;
this.shell = executable.isShellCommand;
this.args = executable.args.slice(0);
this.options = executable.options || {};
}
this.childProcess = null;

View file

@ -28,7 +28,7 @@ export interface IAutoFocus {
autoFocusSecondEntry?: boolean;
/**
* If set to true, will automatically select any entry whos label starts with the search
* If set to true, will automatically select any entry whose label starts with the search
* value. Since some entries to the top might match the query but not on the prefix, this
* allows to select the most accurate match (matching the prefix) while still showing other
* elements.

View file

@ -98,7 +98,7 @@ export class QuickOpenEntry {
}
/**
* Allows to set highlight ranges that should show up for the entry label and optinally description if set.
* Allows to set highlight ranges that should show up for the entry label and optionally description if set.
*/
public setHighlights(labelHighlights: IHighlight[], descriptionHighlights?: IHighlight[]): void {
this.labelHighlights = labelHighlights;
@ -114,7 +114,7 @@ export class QuickOpenEntry {
/**
* Called when the entry is selected for opening. Returns a boolean value indicating if an action was performed or not.
* The mode parameter gives an indication if the element is previewd (using arrow keys) or opened.
* The mode parameter gives an indication if the element is previewed (using arrow keys) or opened.
*
* The context parameter provides additional context information how the run was triggered.
*/
@ -165,7 +165,7 @@ export class QuickOpenEntryGroup extends QuickOpenEntry {
}
/**
* Wether to show a border on top of the group entry or not.
* Whether to show a border on top of the group entry or not.
*/
public showBorder(): boolean {
return this.withBorder;

View file

@ -408,7 +408,7 @@ export class QuickOpenWidget implements IModelProvider {
hide = this.model.runner.run(value, Mode.OPEN, context);
}
// add telemetry when an item is acceptted, logging the index of the item in the list and the length of the list
// add telemetry when an item is accepted, logging the index of the item in the list and the length of the list
// to measure the rate of the success and the relevance of the order
if (this.usageLogger) {
let indexOfAcceptedElement = this.model.entries.indexOf(value);
@ -598,12 +598,12 @@ export class QuickOpenWidget implements IModelProvider {
// Apply
this.treeContainer.style({ height: newHeight });
// Return instantly if we dont CSS transition or the height is the same as old
// Return instantly if we don't CSS transition or the height is the same as old
if (!this.treeContainer.hasClass('transition') || oldHeight === newHeight) {
return Promise.as(null);
}
// Otherwise return promise that only fullfills when the CSS transition has ended
// Otherwise return promise that only fulfills when the CSS transition has ended
return new Promise((c, e) => {
let unbind: { (): void; }[] = [];
let complete = false;

View file

@ -305,7 +305,7 @@ export interface ITree extends Events.IEventEmitter {
/**
* Allows to render an invisible fake row, for measurement purposes.
* Returns whathever fn(...) returns.
* Returns whatever fn(...) returns.
*/
withFakeRow(fn:(container:HTMLElement)=>any):any;
@ -354,7 +354,7 @@ export interface IRenderer {
/**
* Renders the template in a DOM element. This method should render all the DOM
* structure for an hipothetical element leaving its contents blank. It should
* structure for an hypothetical element leaving its contents blank. It should
* return an object bag which will be passed along to `renderElement` and used
* to fill in those blanks.
*

View file

@ -45,17 +45,17 @@ export class Lock {
API-wise, there are two possibly-structure-changing: refresh(...),
expand(...) and collapse(...). All these calls must call Lock#run(...).
Any call to Lock#run(...) needs to provide the afecting item and a
Any call to Lock#run(...) needs to provide the affecting item and a
callback to execute when unlocked. It must also return a promise
which fulfills once the operation ends. Once it is called, there
are three possibilities:
- Nothing is currently running. The afecting item is remembered, and
- Nothing is currently running. The affecting item is remembered, and
the callback is executed.
- Or, there are on-going operations. There are two outcomes:
- The afecting item intersects with any other afecting items
- The affecting item intersects with any other affecting items
of on-going run calls. In such a case, the given callback should
be executed only when the on-going one completes.

View file

@ -75,7 +75,7 @@ var Conway;
return neighbors;
}
function isAlive(row, col) {
// todo - need to guard with worl[row] exists?
// todo - need to guard with world[row] exists?
if (row < 0 || col < 0 || row >= gridSize || col >= gridSize)
return false;
return world[row][col].live;

View file

@ -383,7 +383,7 @@ suite('Flow', () => {
);
});
test('tolerateBoolanResults', function(done: () => void) {
test('tolerateBooleanResults', function(done: () => void) {
var assertionCount = 0;
var errorCount = 0;
@ -412,7 +412,7 @@ suite('Flow', () => {
);
});
test('loopTolerateBoolanResults', function(done: () => void) {
test('loopTolerateBooleanResults', function(done: () => void) {
var elements = ["1", "2", "3"];
loop(elements, function(element, callback) {
process.nextTick(function() {

View file

@ -45,7 +45,7 @@ class WebWorker implements IWorker {
}
/**
* A worker that runs in an iframe and therfore does have its
* A worker that runs in an iframe and therefore does have its
* own global scope, but no own thread.
*/
class FrameWorker implements IWorker {
@ -60,7 +60,7 @@ class FrameWorker implements IWorker {
constructor(id: number, onMessageCallback:IWorkerCallback) {
this.id = id;
// Collect all messeges sent to the worker until the iframe is loaded
// Collect all messages sent to the worker until the iframe is loaded
this.loaded = false;
this.beforeLoadMessages = [];

View file

@ -3162,11 +3162,11 @@ export interface ICommonDiffEditor extends IEditor {
getValue(options?:{ preserveBOM:boolean; lineEnding:string; }): string;
/**
* Returns wether the diff editor is ignoring trim whitespace or not.
* Returns whether the diff editor is ignoring trim whitespace or not.
*/
ignoreTrimWhitespace: boolean;
/**
* Returns wether the diff editor is rendering side by side or not.
* Returns whether the diff editor is rendering side by side or not.
*/
renderSideBySide: boolean;
}

View file

@ -378,7 +378,7 @@ export interface IUpdateContentOptions {
charset?: string;
/**
* Wether to overwrite a file even if it is readonly.
* Whether to overwrite a file even if it is readonly.
*/
overwriteReadonly?: boolean;

View file

@ -115,7 +115,7 @@ export abstract class EditorInput extends EventEmitter implements IEditorInput {
}
/**
* Returns wether this input was disposed or not.
* Returns whether this input was disposed or not.
*/
public isDisposed(): boolean {
return this.disposed;
@ -389,7 +389,7 @@ export class TextDiffEditorOptions extends TextEditorOptions {
}
/**
* Wether to auto reveal the first change when the text editor is opened or not. By default
* Whether to auto reveal the first change when the text editor is opened or not. By default
* the first change will not be revealed.
*/
public autoRevealFirstChange: boolean;

View file

@ -40,7 +40,7 @@ export interface IPartService {
joinCreation(): TPromise<boolean>;
/**
* Returns wether the given part has the keyboard focus or not.
* Returns whether the given part has the keyboard focus or not.
*/
hasFocus(part: Parts): boolean;