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

Fix some typos in comment #75565

Merged
merged 1 commit into from
Jun 16, 2019
Merged
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
4 changes: 2 additions & 2 deletions src/vs/base/common/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export namespace Event {

/**
* 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> {
return snapshot((listener, thisArgs = null, disposables?) => event(i => listener.call(thisArgs, map(i)), null, disposables));
Expand Down Expand Up @@ -90,7 +90,7 @@ export namespace Event {

/**
* 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> {
let output: O | undefined = initial;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/base/node/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/
// 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
// Parallells Desktop, Workstation, Server, Virtuozzo 00-1C-42
// Parallels Desktop, Workstation, Server, Virtuozzo 00-1C-42
// Virtual Iron 4 00-0F-4B
// Red Hat Xen 00-16-3E
// Oracle VM 00-16-3E
Expand Down
8 changes: 4 additions & 4 deletions src/vs/platform/notification/common/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,19 @@ export interface INotificationService {
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.
*/
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.
*/
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.
*/
error(message: NotificationMessage | NotificationMessage[]): void;
Expand All @@ -239,7 +239,7 @@ export interface INotificationService {
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 options provides some optional configuration options
Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/opener/common/opener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface IOpenerService {
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
* @return A promise that resolves when the opening is done.
Expand Down
6 changes: 3 additions & 3 deletions src/vs/workbench/browser/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ export interface IResourceLabel extends IDisposable {
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.
*/
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;

/**
* 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;

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/editor/editorGroupView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
// 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) {
this.accessor.removeGroup(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
const items = (data as ElementsDragAndDropData<ExplorerItem>).elements;

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
if (!isCopy && items.every(i => !!i.parent && i.parent.isRoot)) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/outline/browser/outlinePanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class RequestOracle {
);

if (this._lastState && thisState.equals(this._lastState)) {
// prevent unneccesary changes...
// prevent unnecessary changes...
return;
}
dispose(this._sessionDisposable);
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/services/textfile/common/textfiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ export interface ITextFileService extends IDisposable {
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;

/**
* Convinient fast access to the raw configured auto save settings.
* Convenient fast access to the raw configured auto save settings.
*/
getAutoSaveConfiguration(): IAutoSaveConfiguration;
}
Expand Down