From b104c7d0f862621c8372944b5ca4dcae26fa354a Mon Sep 17 00:00:00 2001 From: hikerpig <102706325@163.com> Date: Tue, 15 Aug 2017 08:23:29 -0500 Subject: [PATCH] fix spelling of 'iff' and 'idenifier' (#32401) * fix spelling of 'iff' and 'idenifier' * Keep 'iff' in comment if it means *if and only if* --- src/vs/editor/common/editorCommon.ts | 4 ++-- src/vs/monaco.d.ts | 2 +- src/vs/platform/files/common/files.ts | 2 +- src/vs/platform/registry/common/platform.ts | 4 ++-- src/vs/platform/workspace/common/workspace.ts | 8 ++++---- .../workbench/api/node/extHostDocumentSaveParticipant.ts | 2 +- src/vs/workbench/common/actionRegistry.ts | 4 ++-- src/vs/workbench/services/editor/common/editorService.ts | 4 ++-- src/vs/workbench/services/part/common/partService.ts | 2 +- src/vs/workbench/services/textfile/common/textfiles.ts | 4 ++-- .../services/untitled/common/untitledEditorService.ts | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/vs/editor/common/editorCommon.ts b/src/vs/editor/common/editorCommon.ts index 93e9a28cf56..cc864bcb222 100644 --- a/src/vs/editor/common/editorCommon.ts +++ b/src/vs/editor/common/editorCommon.ts @@ -684,7 +684,7 @@ export interface ITextModel { getFullModelRange(): Range; /** - * Returns iff the model was disposed or not. + * Returns if the model was disposed or not. */ isDisposed(): boolean; @@ -1180,7 +1180,7 @@ export interface IModel extends IReadOnlyModel, IEditableTextModel, ITextModelWi onBeforeDetached(): void; /** - * Returns iff this model is attached to an editor or not. + * Returns if this model is attached to an editor or not. * @internal */ isAttachedToEditor(): boolean; diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index 9bedc8ea408..8fff0f3d350 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -1559,7 +1559,7 @@ declare module monaco.editor { */ getFullModelRange(): Range; /** - * Returns iff the model was disposed or not. + * Returns if the model was disposed or not. */ isDisposed(): boolean; /** diff --git a/src/vs/platform/files/common/files.ts b/src/vs/platform/files/common/files.ts index f49a8fe98ac..e9db5020672 100644 --- a/src/vs/platform/files/common/files.ts +++ b/src/vs/platform/files/common/files.ts @@ -368,7 +368,7 @@ export interface IBaseStat { export interface IFileStat extends IBaseStat { /** - * The resource is a directory. Iff {{true}} + * The resource is a directory. if {{true}} * {{encoding}} has no meaning. */ isDirectory: boolean; diff --git a/src/vs/platform/registry/common/platform.ts b/src/vs/platform/registry/common/platform.ts index 718f886a3de..5ddc3f336bc 100644 --- a/src/vs/platform/registry/common/platform.ts +++ b/src/vs/platform/registry/common/platform.ts @@ -20,13 +20,13 @@ export interface IRegistry { /** * Returns true iff there is an extension with the provided id. - * @param id an extension idenifier + * @param id an extension identifier */ knows(id: string): boolean; /** * Returns the extension functions and properties defined by the specified key or null. - * @param id an extension idenifier + * @param id an extension identifier */ as(id: string): any; as(id: string): T; diff --git a/src/vs/platform/workspace/common/workspace.ts b/src/vs/platform/workspace/common/workspace.ts index 843041b3646..473099f12b8 100644 --- a/src/vs/platform/workspace/common/workspace.ts +++ b/src/vs/platform/workspace/common/workspace.ts @@ -17,17 +17,17 @@ export interface IWorkspaceContextService { _serviceBrand: any; /** - * Returns iff the application was opened with a workspace or not. + * Returns if the application was opened with a workspace or not. */ hasWorkspace(): boolean; /** - * Returns iff the application was opened with a folder. + * Returns if the application was opened with a folder. */ hasFolderWorkspace(): boolean; /** - * Returns iff the application was opened with a workspace that can have one or more folders. + * Returns if the application was opened with a workspace that can have one or more folders. */ hasMultiFolderWorkspace(): boolean; @@ -65,7 +65,7 @@ export interface IWorkspaceContextService { getRoot(resource: URI): URI; /** - * Returns iff the provided resource is inside the workspace or not. + * Returns if the provided resource is inside the workspace or not. */ isInsideWorkspace(resource: URI): boolean; diff --git a/src/vs/workbench/api/node/extHostDocumentSaveParticipant.ts b/src/vs/workbench/api/node/extHostDocumentSaveParticipant.ts index 8ee95f6ad0a..94a82a1a272 100644 --- a/src/vs/workbench/api/node/extHostDocumentSaveParticipant.ts +++ b/src/vs/workbench/api/node/extHostDocumentSaveParticipant.ts @@ -149,7 +149,7 @@ export class ExtHostDocumentSaveParticipant extends ExtHostDocumentSaveParticipa } } - // apply edits iff any and iff document + // apply edits if any and if document // didn't change somehow in the meantime if (edits.length === 0) { return undefined; diff --git a/src/vs/workbench/common/actionRegistry.ts b/src/vs/workbench/common/actionRegistry.ts index 640dba79e82..a0bf5f60f84 100644 --- a/src/vs/workbench/common/actionRegistry.ts +++ b/src/vs/workbench/common/actionRegistry.ts @@ -49,12 +49,12 @@ export interface IWorkbenchActionRegistry { getWorkbenchActions(): SyncActionDescriptor[]; /** - * Returns the alias associated with the given action or null iff none. + * Returns the alias associated with the given action or null if none. */ getAlias(actionId: string): string; /** - * Returns the category for the given action or null iff none. + * Returns the category for the given action or null if none. */ getCategory(actionId: string): string; } diff --git a/src/vs/workbench/services/editor/common/editorService.ts b/src/vs/workbench/services/editor/common/editorService.ts index 5381c9de4e7..05f2ae36cc2 100644 --- a/src/vs/workbench/services/editor/common/editorService.ts +++ b/src/vs/workbench/services/editor/common/editorService.ts @@ -36,9 +36,9 @@ export interface IWorkbenchEditorService extends IEditorService { getVisibleEditors(): IEditor[]; /** - * Returns iff the provided input is currently visible. + * Returns if the provided input is currently visible. * - * @param includeDiff iff set to true, will also consider diff editors to find out if the provided + * @param includeDiff if set to true, will also consider diff editors to find out if the provided * input is opened either on the left or right hand side of the diff editor. */ isVisible(input: IEditorInput, includeDiff: boolean): boolean; diff --git a/src/vs/workbench/services/part/common/partService.ts b/src/vs/workbench/services/part/common/partService.ts index c1fd22b2dc7..4e41c5df51c 100644 --- a/src/vs/workbench/services/part/common/partService.ts +++ b/src/vs/workbench/services/part/common/partService.ts @@ -67,7 +67,7 @@ export interface IPartService { getContainer(part: Parts): HTMLElement; /** - * Returns iff the part is visible. + * Returns if the part is visible. */ isVisible(part: Parts): boolean; diff --git a/src/vs/workbench/services/textfile/common/textfiles.ts b/src/vs/workbench/services/textfile/common/textfiles.ts index 29933972ac8..dc892cb33b0 100644 --- a/src/vs/workbench/services/textfile/common/textfiles.ts +++ b/src/vs/workbench/services/textfile/common/textfiles.ts @@ -266,7 +266,7 @@ export interface ITextFileService extends IDisposable { * Saves the resource. * * @param resource the resource to save - * @return true iff the resource was saved. + * @return true if the resource was saved. */ save(resource: URI, options?: ISaveOptions): TPromise; @@ -274,7 +274,7 @@ export interface ITextFileService extends IDisposable { * Saves the provided resource asking the user for a file name. * * @param resource the resource to save as. - * @return true iff the file was saved. + * @return true if the file was saved. */ saveAs(resource: URI, targetResource?: URI): TPromise; diff --git a/src/vs/workbench/services/untitled/common/untitledEditorService.ts b/src/vs/workbench/services/untitled/common/untitledEditorService.ts index ab49aacd62d..ae215cb923f 100644 --- a/src/vs/workbench/services/untitled/common/untitledEditorService.ts +++ b/src/vs/workbench/services/untitled/common/untitledEditorService.ts @@ -62,7 +62,7 @@ export interface IUntitledEditorService { getDirty(resources?: URI[]): URI[]; /** - * Returns true iff the provided resource is dirty. + * Returns true if the provided resource is dirty. */ isDirty(resource: URI): boolean; -- GitLab