From 36ac195d167a389cecbbde8b66ad487ad7d6230e Mon Sep 17 00:00:00 2001 From: bissonex Date: Fri, 28 Dec 2018 15:13:31 -0500 Subject: [PATCH] fix typo (#65740) fix typo for Editor Find, terminalSupport.ts, terminals.ts, extHostDebugService.ts --- src/vs/editor/common/config/editorOptions.ts | 8 ++++---- .../workbench/api/electron-browser/mainThreadDocuments.ts | 4 ++-- src/vs/workbench/api/node/extHostDebugService.ts | 4 ++-- .../parts/debug/electron-browser/terminalSupport.ts | 4 ++-- src/vs/workbench/parts/debug/node/terminals.ts | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/vs/editor/common/config/editorOptions.ts b/src/vs/editor/common/config/editorOptions.ts index bef7f91cd4e..e1f1515c0ce 100644 --- a/src/vs/editor/common/config/editorOptions.ts +++ b/src/vs/editor/common/config/editorOptions.ts @@ -1843,7 +1843,7 @@ export class EditorOptionsValidator { }; } - private static _santizeFindOpts(opts: IEditorFindOptions | undefined, defaults: InternalEditorFindOptions): InternalEditorFindOptions { + private static _sanitizeFindOpts(opts: IEditorFindOptions | undefined, defaults: InternalEditorFindOptions): InternalEditorFindOptions { if (typeof opts !== 'object') { return defaults; } @@ -1866,7 +1866,7 @@ export class EditorOptionsValidator { }; } - private static _santizeHoverOpts(_opts: boolean | IEditorHoverOptions | undefined, defaults: InternalEditorHoverOptions): InternalEditorHoverOptions { + private static _sanitizeHoverOpts(_opts: boolean | IEditorHoverOptions | undefined, defaults: InternalEditorHoverOptions): InternalEditorHoverOptions { let opts: IEditorHoverOptions; if (typeof _opts === 'boolean') { opts = { @@ -2027,10 +2027,10 @@ export class EditorOptionsValidator { if (typeof opts.acceptSuggestionOnEnter === 'boolean') { opts.acceptSuggestionOnEnter = opts.acceptSuggestionOnEnter ? 'on' : 'off'; } - const find = this._santizeFindOpts(opts.find, defaults.find); + const find = this._sanitizeFindOpts(opts.find, defaults.find); return { selectionClipboard: _boolean(opts.selectionClipboard, defaults.selectionClipboard), - hover: this._santizeHoverOpts(opts.hover, defaults.hover), + hover: this._sanitizeHoverOpts(opts.hover, defaults.hover), links: _boolean(opts.links, defaults.links), contextmenu: _boolean(opts.contextmenu, defaults.contextmenu), quickSuggestions: quickSuggestions, diff --git a/src/vs/workbench/api/electron-browser/mainThreadDocuments.ts b/src/vs/workbench/api/electron-browser/mainThreadDocuments.ts index 99fc3ac120a..3080eafc6a1 100644 --- a/src/vs/workbench/api/electron-browser/mainThreadDocuments.ts +++ b/src/vs/workbench/api/electron-browser/mainThreadDocuments.ts @@ -180,7 +180,7 @@ export class MainThreadDocuments implements MainThreadDocumentsShape { let promise: Promise; switch (uri.scheme) { case Schemas.untitled: - promise = this._handleUnititledScheme(uri); + promise = this._handleUntitledScheme(uri); break; case Schemas.file: default: @@ -213,7 +213,7 @@ export class MainThreadDocuments implements MainThreadDocumentsShape { }); } - private _handleUnititledScheme(uri: URI): Promise { + private _handleUntitledScheme(uri: URI): Promise { let asFileUri = uri.with({ scheme: Schemas.file }); return this._fileService.resolveFile(asFileUri).then(stats => { // don't create a new file ontop of an existing file diff --git a/src/vs/workbench/api/node/extHostDebugService.ts b/src/vs/workbench/api/node/extHostDebugService.ts index 1be53428560..35b2bb2c1c4 100644 --- a/src/vs/workbench/api/node/extHostDebugService.ts +++ b/src/vs/workbench/api/node/extHostDebugService.ts @@ -20,7 +20,7 @@ import { ExtHostWorkspace } from 'vs/workbench/api/node/extHostWorkspace'; import { ExtHostExtensionService } from 'vs/workbench/api/node/extHostExtensionService'; import { ExtHostDocumentsAndEditors } from 'vs/workbench/api/node/extHostDocumentsAndEditors'; import { ITerminalSettings, IDebuggerContribution, IConfig, IDebugAdapter, IDebugAdapterServer, IDebugAdapterExecutable, IAdapterDescriptor } from 'vs/workbench/parts/debug/common/debug'; -import { getTerminalLauncher, hasChildprocesses, prepareCommand } from 'vs/workbench/parts/debug/node/terminals'; +import { getTerminalLauncher, hasChildProcesses, prepareCommand } from 'vs/workbench/parts/debug/node/terminals'; import { IWorkspaceFolder } from 'vs/platform/workspace/common/workspace'; import { AbstractVariableResolverService } from 'vs/workbench/services/configurationResolver/node/variableResolver'; import { ExtHostConfiguration } from './extHostConfiguration'; @@ -330,7 +330,7 @@ export class ExtHostDebugService implements ExtHostDebugServiceShape { return new Promise(resolve => { if (this._integratedTerminalInstance) { this._integratedTerminalInstance.processId.then(pid => { - resolve(hasChildprocesses(pid)); + resolve(hasChildProcesses(pid)); }, err => { resolve(true); }); diff --git a/src/vs/workbench/parts/debug/electron-browser/terminalSupport.ts b/src/vs/workbench/parts/debug/electron-browser/terminalSupport.ts index 2e367104e83..188979ad031 100644 --- a/src/vs/workbench/parts/debug/electron-browser/terminalSupport.ts +++ b/src/vs/workbench/parts/debug/electron-browser/terminalSupport.ts @@ -8,7 +8,7 @@ import { IDisposable } from 'vs/base/common/lifecycle'; import { ITerminalService, ITerminalInstance } from 'vs/workbench/parts/terminal/common/terminal'; import { ITerminalService as IExternalTerminalService } from 'vs/workbench/parts/execution/common/execution'; import { ITerminalLauncher, ITerminalSettings } from 'vs/workbench/parts/debug/common/debug'; -import { hasChildprocesses, prepareCommand } from 'vs/workbench/parts/debug/node/terminals'; +import { hasChildProcesses, prepareCommand } from 'vs/workbench/parts/debug/node/terminals'; export class TerminalLauncher implements ITerminalLauncher { @@ -37,7 +37,7 @@ export class TerminalLauncher implements ITerminalLauncher { } let t = this.integratedTerminalInstance; - if ((t && hasChildprocesses(t.processId)) || !t) { + if ((t && hasChildProcesses(t.processId)) || !t) { t = this.terminalService.createTerminal({ name: args.title || nls.localize('debug.terminal.title', "debuggee") }); this.integratedTerminalInstance = t; } diff --git a/src/vs/workbench/parts/debug/node/terminals.ts b/src/vs/workbench/parts/debug/node/terminals.ts index c81df11eb9c..af57e7bbb31 100644 --- a/src/vs/workbench/parts/debug/node/terminals.ts +++ b/src/vs/workbench/parts/debug/node/terminals.ts @@ -257,7 +257,7 @@ function quote(args: string[]): string { } -export function hasChildprocesses(processId: number): boolean { +export function hasChildProcesses(processId: number): boolean { if (processId) { try { // if shell has at least one child process, assume that shell is busy