mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
fix typo in files.ts (#124693)
* fix typo in files.ts occured -> occurred * fix typos
This commit is contained in:
parent
5eec3c86e3
commit
b5b059d2e2
|
@ -811,7 +811,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
|||
}
|
||||
*/
|
||||
this.logTelemetry('fatalError', { ...(error instanceof TypeScriptServerError ? error.telemetry : { command }) });
|
||||
console.error(`A non-recoverable error occured while executing tsserver command: ${command}`);
|
||||
console.error(`A non-recoverable error occurred while executing tsserver command: ${command}`);
|
||||
if (error instanceof TypeScriptServerError && error.serverErrorText) {
|
||||
console.error(error.serverErrorText);
|
||||
}
|
||||
|
|
|
@ -1120,7 +1120,7 @@ class InnerMinimap extends Disposable {
|
|||
}
|
||||
if (this._model.options.size !== 'proportional') {
|
||||
if (e.leftButton && this._lastRenderData) {
|
||||
// pretend the click occured in the center of the slider
|
||||
// pretend the click occurred in the center of the slider
|
||||
const position = dom.getDomNodePagePosition(this._slider.domNode);
|
||||
const initialPosY = position.top + position.height / 2;
|
||||
this._startSliderDragging(e.buttons, e.posx, initialPosY, e.posy, this._lastRenderData.renderedLayout);
|
||||
|
|
|
@ -23,7 +23,7 @@ const ERR_FILE_NOT_DIR = createFileSystemProviderError(localize('fileNotDirector
|
|||
const ERR_DIR_NOT_EMPTY = createFileSystemProviderError(localize('dirIsNotEmpty', "Directory is not empty"), FileSystemProviderErrorCode.Unknown);
|
||||
|
||||
// Arbitrary Internal Errors (should never be thrown in production)
|
||||
const ERR_UNKNOWN_INTERNAL = (message: string) => createFileSystemProviderError(localize('internal', "Internal error occured in IndexedDB File System Provider. ({0})", message), FileSystemProviderErrorCode.Unknown);
|
||||
const ERR_UNKNOWN_INTERNAL = (message: string) => createFileSystemProviderError(localize('internal', "Internal error occurred in IndexedDB File System Provider. ({0})", message), FileSystemProviderErrorCode.Unknown);
|
||||
|
||||
export class IndexedDB {
|
||||
|
||||
|
|
|
@ -975,7 +975,7 @@ export interface IReadFileOptions extends IBaseReadFileOptions {
|
|||
*
|
||||
* Typically you should not need to use this flag but if
|
||||
* for example you are quickly reading a file right after
|
||||
* a file event occured and the file changes a lot, there
|
||||
* a file event occurred and the file changes a lot, there
|
||||
* is a chance that a read returns an empty or partial file
|
||||
* because a pending write has not finished yet.
|
||||
*
|
||||
|
|
|
@ -709,7 +709,7 @@ export class UndoRedoService implements IUndoRedoService {
|
|||
|
||||
private _onError(err: Error, element: StackElement): void {
|
||||
onUnexpectedError(err);
|
||||
// An error occured while undoing or redoing => drop the undo/redo stack for all affected resources
|
||||
// An error occurred while undoing or redoing => drop the undo/redo stack for all affected resources
|
||||
for (const strResource of element.strResources) {
|
||||
this.removeElements(strResource);
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ export class NoTabsTitleControl extends TitleControl {
|
|||
private onTitleTap(e: GestureEvent): void {
|
||||
|
||||
// We only want to open the quick access picker when
|
||||
// the tap occured over the editor label, so we need
|
||||
// the tap occurred over the editor label, so we need
|
||||
// to check on the target
|
||||
// (https://github.com/microsoft/vscode/issues/107543)
|
||||
const target = e.initialTarget;
|
||||
|
|
|
@ -394,7 +394,7 @@ export class ReplAccessibilityProvider implements IListAccessibilityProvider<IRe
|
|||
}
|
||||
if (element instanceof SimpleReplElement || element instanceof ReplEvaluationInput || element instanceof ReplEvaluationResult) {
|
||||
return element.value + (element instanceof SimpleReplElement && element.count > 1 ? localize({ key: 'occurred', comment: ['Front will the value of the debug console element. Placeholder will be replaced by a number which represents occurrance count.'] },
|
||||
", occured {0} times", element.count) : '');
|
||||
", occurred {0} times", element.count) : '');
|
||||
}
|
||||
if (element instanceof RawObjectReplElement) {
|
||||
return localize('replRawObjectAriaLabel', "Debug console variable {0}, value {1}", element.name, element.value);
|
||||
|
|
|
@ -594,7 +594,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
return;
|
||||
}
|
||||
|
||||
// Attach has not occured yet
|
||||
// Attach has not occurred yet
|
||||
if (!this._wrapperElement) {
|
||||
return this._attachToElement(container);
|
||||
}
|
||||
|
|
|
@ -339,7 +339,7 @@ export class EditorService extends Disposable implements EditorServiceImpl {
|
|||
|
||||
// Handle deletes in opened editors depending on:
|
||||
// - we close any editor when `closeOnFileDelete: true`
|
||||
// - we close any editor when the delete occured from within VSCode
|
||||
// - we close any editor when the delete occurred from within VSCode
|
||||
// - we close any editor without resolved working copy assuming that
|
||||
// this editor could not be opened after the file is gone
|
||||
if (this.closeOnFileDelete || !isExternal || !this.workingCopyService.has(resource)) {
|
||||
|
|
Loading…
Reference in a new issue