Skip to content

Commit 0a7bfcf

Browse files
committed
Fix some typos in comment
1 parent b2bf3e3 commit 0a7bfcf

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/vs/base/common/event.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export namespace Event {
4949

5050
/**
5151
* Given an event and a `map` function, returns another event which maps each element
52-
* throught the mapping function.
52+
* through the mapping function.
5353
*/
5454
export function map<I, O>(event: Event<I>, map: (i: I) => O): Event<O> {
5555
return snapshot((listener, thisArgs = null, disposables?) => event(i => listener.call(thisArgs, map(i)), null, disposables));
@@ -90,7 +90,7 @@ export namespace Event {
9090

9191
/**
9292
* Given an event and a `merge` function, returns another event which maps each element
93-
* and the cummulative result throught the `merge` function. Similar to `map`, but with memory.
93+
* and the cumulative result through the `merge` function. Similar to `map`, but with memory.
9494
*/
9595
export function reduce<I, O>(event: Event<I>, merge: (last: O | undefined, event: I) => O, initial?: O): Event<O> {
9696
let output: O | undefined = initial;

src/vs/base/node/id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { TernarySearchTree } from 'vs/base/common/map';
1111
// http://www.techrepublic.com/blog/data-center/mac-address-scorecard-for-common-virtual-machine-platforms/
1212
// VMware ESX 3, Server, Workstation, Player 00-50-56, 00-0C-29, 00-05-69
1313
// Microsoft Hyper-V, Virtual Server, Virtual PC 00-03-FF
14-
// Parallells Desktop, Workstation, Server, Virtuozzo 00-1C-42
14+
// Parallels Desktop, Workstation, Server, Virtuozzo 00-1C-42
1515
// Virtual Iron 4 00-0F-4B
1616
// Red Hat Xen 00-16-3E
1717
// Oracle VM 00-16-3E

src/vs/platform/notification/common/notification.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,19 +210,19 @@ export interface INotificationService {
210210
notify(notification: INotification): INotificationHandle;
211211

212212
/**
213-
* A convinient way of reporting infos. Use the `INotificationService.notify`
213+
* A convenient way of reporting infos. Use the `INotificationService.notify`
214214
* method if you need more control over the notification.
215215
*/
216216
info(message: NotificationMessage | NotificationMessage[]): void;
217217

218218
/**
219-
* A convinient way of reporting warnings. Use the `INotificationService.notify`
219+
* A convenient way of reporting warnings. Use the `INotificationService.notify`
220220
* method if you need more control over the notification.
221221
*/
222222
warn(message: NotificationMessage | NotificationMessage[]): void;
223223

224224
/**
225-
* A convinient way of reporting errors. Use the `INotificationService.notify`
225+
* A convenient way of reporting errors. Use the `INotificationService.notify`
226226
* method if you need more control over the notification.
227227
*/
228228
error(message: NotificationMessage | NotificationMessage[]): void;
@@ -239,7 +239,7 @@ export interface INotificationService {
239239
prompt(severity: Severity, message: string, choices: IPromptChoice[], options?: IPromptOptions): INotificationHandle;
240240

241241
/**
242-
* Shows a status message in the status area with the provied text.
242+
* Shows a status message in the status area with the provided text.
243243
*
244244
* @param message the message to show as status
245245
* @param options provides some optional configuration options

src/vs/platform/opener/common/opener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface IOpenerService {
2121
registerOpener(opener: IOpener): IDisposable;
2222

2323
/**
24-
* Opens a resource, like a webadress, a document uri, or executes command.
24+
* Opens a resource, like a webaddress, a document uri, or executes command.
2525
*
2626
* @param resource A resource
2727
* @return A promise that resolves when the opening is done.

src/vs/workbench/browser/labels.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ export interface IResourceLabel extends IDisposable {
5252
setLabel(label?: string, description?: string, options?: IIconLabelValueOptions): void;
5353

5454
/**
55-
* Convinient method to apply a label by passing a resource along.
55+
* Convenient method to apply a label by passing a resource along.
5656
*
5757
* Note: for file resources consider to use the #setFile() method instead.
5858
*/
5959
setResource(label: IResourceLabelProps, options?: IResourceLabelOptions): void;
6060

6161
/**
62-
* Convinient method to render a file label based on a resource.
62+
* Convenient method to render a file label based on a resource.
6363
*/
6464
setFile(resource: URI, options?: IFileLabelOptions): void;
6565

6666
/**
67-
* Convinient method to apply a label by passing an editor along.
67+
* Convenient method to apply a label by passing an editor along.
6868
*/
6969
setEditor(editor: IEditorInput, options?: IResourceLabelOptions): void;
7070

src/vs/workbench/browser/parts/editor/editorGroupView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
12801280

12811281
// If the group is empty and the request is to close all editors, we still close
12821282
// the editor group is the related setting to close empty groups is enabled for
1283-
// a convinient way of removing empty editor groups for the user.
1283+
// a convenient way of removing empty editor groups for the user.
12841284
if (this.accessor.partOptions.closeEmptyGroups) {
12851285
this.accessor.removeGroup(this);
12861286
}

src/vs/workbench/contrib/files/browser/views/explorerViewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
484484
const items = (data as ElementsDragAndDropData<ExplorerItem>).elements;
485485

486486
if (!target) {
487-
// Droping onto the empty area. Do not accept if items dragged are already
487+
// Dropping onto the empty area. Do not accept if items dragged are already
488488
// children of the root unless we are copying the file
489489
if (!isCopy && items.every(i => !!i.parent && i.parent.isRoot)) {
490490
return false;

src/vs/workbench/contrib/outline/browser/outlinePanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class RequestOracle {
113113
);
114114

115115
if (this._lastState && thisState.equals(this._lastState)) {
116-
// prevent unneccesary changes...
116+
// prevent unnecessary changes...
117117
return;
118118
}
119119
dispose(this._sessionDisposable);

src/vs/workbench/services/textfile/common/textfiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ export interface ITextFileService extends IDisposable {
136136
confirmSave(resources?: URI[]): Promise<ConfirmResult>;
137137

138138
/**
139-
* Convinient fast access to the current auto save mode.
139+
* Convenient fast access to the current auto save mode.
140140
*/
141141
getAutoSaveMode(): AutoSaveMode;
142142

143143
/**
144-
* Convinient fast access to the raw configured auto save settings.
144+
* Convenient fast access to the raw configured auto save settings.
145145
*/
146146
getAutoSaveConfiguration(): IAutoSaveConfiguration;
147147
}

0 commit comments

Comments
 (0)