提交 0a7bfcf3 编写于 作者: H Howard Hung

Fix some typos in comment

上级 b2bf3e39
...@@ -49,7 +49,7 @@ export namespace Event { ...@@ -49,7 +49,7 @@ export namespace Event {
/** /**
* Given an event and a `map` function, returns another event which maps each element * Given an event and a `map` function, returns another event which maps each element
* throught the mapping function. * through the mapping function.
*/ */
export function map<I, O>(event: Event<I>, map: (i: I) => O): Event<O> { export function map<I, O>(event: Event<I>, map: (i: I) => O): Event<O> {
return snapshot((listener, thisArgs = null, disposables?) => event(i => listener.call(thisArgs, map(i)), null, disposables)); return snapshot((listener, thisArgs = null, disposables?) => event(i => listener.call(thisArgs, map(i)), null, disposables));
...@@ -90,7 +90,7 @@ export namespace Event { ...@@ -90,7 +90,7 @@ export namespace Event {
/** /**
* Given an event and a `merge` function, returns another event which maps each element * Given an event and a `merge` function, returns another event which maps each element
* and the cummulative result throught the `merge` function. Similar to `map`, but with memory. * and the cumulative result through the `merge` function. Similar to `map`, but with memory.
*/ */
export function reduce<I, O>(event: Event<I>, merge: (last: O | undefined, event: I) => O, initial?: O): Event<O> { export function reduce<I, O>(event: Event<I>, merge: (last: O | undefined, event: I) => O, initial?: O): Event<O> {
let output: O | undefined = initial; let output: O | undefined = initial;
......
...@@ -11,7 +11,7 @@ import { TernarySearchTree } from 'vs/base/common/map'; ...@@ -11,7 +11,7 @@ import { TernarySearchTree } from 'vs/base/common/map';
// http://www.techrepublic.com/blog/data-center/mac-address-scorecard-for-common-virtual-machine-platforms/ // http://www.techrepublic.com/blog/data-center/mac-address-scorecard-for-common-virtual-machine-platforms/
// VMware ESX 3, Server, Workstation, Player 00-50-56, 00-0C-29, 00-05-69 // VMware ESX 3, Server, Workstation, Player 00-50-56, 00-0C-29, 00-05-69
// Microsoft Hyper-V, Virtual Server, Virtual PC 00-03-FF // Microsoft Hyper-V, Virtual Server, Virtual PC 00-03-FF
// Parallells Desktop, Workstation, Server, Virtuozzo 00-1C-42 // Parallels Desktop, Workstation, Server, Virtuozzo 00-1C-42
// Virtual Iron 4 00-0F-4B // Virtual Iron 4 00-0F-4B
// Red Hat Xen 00-16-3E // Red Hat Xen 00-16-3E
// Oracle VM 00-16-3E // Oracle VM 00-16-3E
......
...@@ -210,19 +210,19 @@ export interface INotificationService { ...@@ -210,19 +210,19 @@ export interface INotificationService {
notify(notification: INotification): INotificationHandle; notify(notification: INotification): INotificationHandle;
/** /**
* A convinient way of reporting infos. Use the `INotificationService.notify` * A convenient way of reporting infos. Use the `INotificationService.notify`
* method if you need more control over the notification. * method if you need more control over the notification.
*/ */
info(message: NotificationMessage | NotificationMessage[]): void; info(message: NotificationMessage | NotificationMessage[]): void;
/** /**
* A convinient way of reporting warnings. Use the `INotificationService.notify` * A convenient way of reporting warnings. Use the `INotificationService.notify`
* method if you need more control over the notification. * method if you need more control over the notification.
*/ */
warn(message: NotificationMessage | NotificationMessage[]): void; warn(message: NotificationMessage | NotificationMessage[]): void;
/** /**
* A convinient way of reporting errors. Use the `INotificationService.notify` * A convenient way of reporting errors. Use the `INotificationService.notify`
* method if you need more control over the notification. * method if you need more control over the notification.
*/ */
error(message: NotificationMessage | NotificationMessage[]): void; error(message: NotificationMessage | NotificationMessage[]): void;
...@@ -239,7 +239,7 @@ export interface INotificationService { ...@@ -239,7 +239,7 @@ export interface INotificationService {
prompt(severity: Severity, message: string, choices: IPromptChoice[], options?: IPromptOptions): INotificationHandle; prompt(severity: Severity, message: string, choices: IPromptChoice[], options?: IPromptOptions): INotificationHandle;
/** /**
* Shows a status message in the status area with the provied text. * Shows a status message in the status area with the provided text.
* *
* @param message the message to show as status * @param message the message to show as status
* @param options provides some optional configuration options * @param options provides some optional configuration options
......
...@@ -21,7 +21,7 @@ export interface IOpenerService { ...@@ -21,7 +21,7 @@ export interface IOpenerService {
registerOpener(opener: IOpener): IDisposable; registerOpener(opener: IOpener): IDisposable;
/** /**
* Opens a resource, like a webadress, a document uri, or executes command. * Opens a resource, like a webaddress, a document uri, or executes command.
* *
* @param resource A resource * @param resource A resource
* @return A promise that resolves when the opening is done. * @return A promise that resolves when the opening is done.
......
...@@ -52,19 +52,19 @@ export interface IResourceLabel extends IDisposable { ...@@ -52,19 +52,19 @@ export interface IResourceLabel extends IDisposable {
setLabel(label?: string, description?: string, options?: IIconLabelValueOptions): void; setLabel(label?: string, description?: string, options?: IIconLabelValueOptions): void;
/** /**
* Convinient method to apply a label by passing a resource along. * Convenient method to apply a label by passing a resource along.
* *
* Note: for file resources consider to use the #setFile() method instead. * Note: for file resources consider to use the #setFile() method instead.
*/ */
setResource(label: IResourceLabelProps, options?: IResourceLabelOptions): void; setResource(label: IResourceLabelProps, options?: IResourceLabelOptions): void;
/** /**
* Convinient method to render a file label based on a resource. * Convenient method to render a file label based on a resource.
*/ */
setFile(resource: URI, options?: IFileLabelOptions): void; setFile(resource: URI, options?: IFileLabelOptions): void;
/** /**
* Convinient method to apply a label by passing an editor along. * Convenient method to apply a label by passing an editor along.
*/ */
setEditor(editor: IEditorInput, options?: IResourceLabelOptions): void; setEditor(editor: IEditorInput, options?: IResourceLabelOptions): void;
......
...@@ -1280,7 +1280,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView { ...@@ -1280,7 +1280,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
// If the group is empty and the request is to close all editors, we still close // If the group is empty and the request is to close all editors, we still close
// the editor group is the related setting to close empty groups is enabled for // the editor group is the related setting to close empty groups is enabled for
// a convinient way of removing empty editor groups for the user. // a convenient way of removing empty editor groups for the user.
if (this.accessor.partOptions.closeEmptyGroups) { if (this.accessor.partOptions.closeEmptyGroups) {
this.accessor.removeGroup(this); this.accessor.removeGroup(this);
} }
......
...@@ -484,7 +484,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> { ...@@ -484,7 +484,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
const items = (data as ElementsDragAndDropData<ExplorerItem>).elements; const items = (data as ElementsDragAndDropData<ExplorerItem>).elements;
if (!target) { if (!target) {
// Droping onto the empty area. Do not accept if items dragged are already // Dropping onto the empty area. Do not accept if items dragged are already
// children of the root unless we are copying the file // children of the root unless we are copying the file
if (!isCopy && items.every(i => !!i.parent && i.parent.isRoot)) { if (!isCopy && items.every(i => !!i.parent && i.parent.isRoot)) {
return false; return false;
......
...@@ -113,7 +113,7 @@ class RequestOracle { ...@@ -113,7 +113,7 @@ class RequestOracle {
); );
if (this._lastState && thisState.equals(this._lastState)) { if (this._lastState && thisState.equals(this._lastState)) {
// prevent unneccesary changes... // prevent unnecessary changes...
return; return;
} }
dispose(this._sessionDisposable); dispose(this._sessionDisposable);
......
...@@ -136,12 +136,12 @@ export interface ITextFileService extends IDisposable { ...@@ -136,12 +136,12 @@ export interface ITextFileService extends IDisposable {
confirmSave(resources?: URI[]): Promise<ConfirmResult>; confirmSave(resources?: URI[]): Promise<ConfirmResult>;
/** /**
* Convinient fast access to the current auto save mode. * Convenient fast access to the current auto save mode.
*/ */
getAutoSaveMode(): AutoSaveMode; getAutoSaveMode(): AutoSaveMode;
/** /**
* Convinient fast access to the raw configured auto save settings. * Convenient fast access to the raw configured auto save settings.
*/ */
getAutoSaveConfiguration(): IAutoSaveConfiguration; getAutoSaveConfiguration(): IAutoSaveConfiguration;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册