mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
fix spelling of 'iff' and 'idenifier' (#32401)
* fix spelling of 'iff' and 'idenifier' * Keep 'iff' in comment if it means *if and only if*
This commit is contained in:
parent
a16000f2b4
commit
b104c7d0f8
|
@ -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;
|
||||
|
|
2
src/vs/monaco.d.ts
vendored
2
src/vs/monaco.d.ts
vendored
|
@ -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;
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<T>(id: string): T;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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<boolean>;
|
||||
|
||||
|
@ -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<URI>;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue