diff --git a/src/vs/editor/browser/controller/textAreaHandler.ts b/src/vs/editor/browser/controller/textAreaHandler.ts index 45970c2a2b64d..8ce775febd3b1 100644 --- a/src/vs/editor/browser/controller/textAreaHandler.ts +++ b/src/vs/editor/browser/controller/textAreaHandler.ts @@ -522,7 +522,7 @@ export class TextAreaHandler extends ViewPart { this._accessibilitySupport = options.get(EditorOption.accessibilitySupport); const accessibilityPageSize = options.get(EditorOption.accessibilityPageSize); if (this._accessibilitySupport === AccessibilitySupport.Enabled && accessibilityPageSize === EditorOptions.accessibilityPageSize.defaultValue) { - // If a screen reader is attached and the default value is not set we shuold automatically increase the page size to 500 for a better experience + // If a screen reader is attached and the default value is not set we should automatically increase the page size to 500 for a better experience this._accessibilityPageSize = 500; } else { this._accessibilityPageSize = accessibilityPageSize; diff --git a/src/vs/editor/common/viewModel.ts b/src/vs/editor/common/viewModel.ts index 19fea69d49c58..e582f7dc71903 100644 --- a/src/vs/editor/common/viewModel.ts +++ b/src/vs/editor/common/viewModel.ts @@ -133,7 +133,7 @@ export interface IEditorWhitespace { } /** - * An accessor that allows for whtiespace to be added, removed or changed in bulk. + * An accessor that allows for whitespace to be added, removed or changed in bulk. */ export interface IWhitespaceChangeAccessor { insertWhitespace(afterLineNumber: number, ordinal: number, heightInPx: number, minWidth: number): string; diff --git a/src/vs/workbench/api/browser/mainThreadEditorTabs.ts b/src/vs/workbench/api/browser/mainThreadEditorTabs.ts index 500240311bec6..2bcb34d00d1e0 100644 --- a/src/vs/workbench/api/browser/mainThreadEditorTabs.ts +++ b/src/vs/workbench/api/browser/mainThreadEditorTabs.ts @@ -173,7 +173,7 @@ export class MainThreadEditorTabs implements MainThreadEditorTabsShape { */ private _generateTabId(editor: EditorInput, groupId: number) { let resourceString: string | undefined; - // Properly get the reousrce and account for sideby side editors + // Properly get the resource and account for side by side editors const resource = EditorResourceAccessor.getOriginalUri(editor, { supportSideBySide: SideBySideEditor.BOTH }); if (resource instanceof URI) { resourceString = resource.toString(); diff --git a/src/vs/workbench/api/browser/mainThreadFileSystem.ts b/src/vs/workbench/api/browser/mainThreadFileSystem.ts index 6086f867f4b4f..02e75eae05e8e 100644 --- a/src/vs/workbench/api/browser/mainThreadFileSystem.ts +++ b/src/vs/workbench/api/browser/mainThreadFileSystem.ts @@ -191,7 +191,7 @@ export class MainThreadFileSystem implements MainThreadFileSystemShape { // our workspace watchers in case the request is a // recursive file watcher. // Still allow for non-recursive watch requests as a way - // to bypass configured exlcude rules though + // to bypass configured exclude rules though // (see https://github.com/microsoft/vscode/issues/146066) if (workspaceFolder && opts.recursive) { this._logService.trace(`MainThreadFileSystem#$watch(): ignoring request to start watching because path is inside workspace (extension: ${extensionId}, path: ${uri.toString(true)}, recursive: ${opts.recursive}, session: ${session})`); diff --git a/src/vs/workbench/api/browser/mainThreadNotebookEditors.ts b/src/vs/workbench/api/browser/mainThreadNotebookEditors.ts index 75296f0373efa..861c1e680e27d 100644 --- a/src/vs/workbench/api/browser/mainThreadNotebookEditors.ts +++ b/src/vs/workbench/api/browser/mainThreadNotebookEditors.ts @@ -132,7 +132,7 @@ export class MainThreadNotebookEditors implements MainThreadNotebookEditorsShape if (notebookEditor) { return notebookEditor.getId(); } else { - throw new Error(`Notebook Editor creation failure for documenet ${resource}`); + throw new Error(`Notebook Editor creation failure for document ${resource}`); } } diff --git a/src/vs/workbench/api/browser/mainThreadTerminalService.ts b/src/vs/workbench/api/browser/mainThreadTerminalService.ts index b280f677abee6..62b439b64ab44 100644 --- a/src/vs/workbench/api/browser/mainThreadTerminalService.ts +++ b/src/vs/workbench/api/browser/mainThreadTerminalService.ts @@ -288,7 +288,7 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape const proxy = request.proxy; this._terminalProcessProxies.set(proxy.instanceId, proxy); - // Note that onReisze is not being listened to here as it needs to fire when max dimensions + // Note that onResize is not being listened to here as it needs to fire when max dimensions // change, excluding the dimension override const initialDimensions: ITerminalDimensionsDto | undefined = request.cols && request.rows ? { columns: request.cols, diff --git a/src/vs/workbench/api/common/extHostCommands.ts b/src/vs/workbench/api/common/extHostCommands.ts index 7e6668d8a2a43..109e515a32753 100644 --- a/src/vs/workbench/api/common/extHostCommands.ts +++ b/src/vs/workbench/api/common/extHostCommands.ts @@ -206,7 +206,7 @@ export class ExtHostCommands implements ExtHostCommandsShape { } catch (e) { // Rerun the command when it wasn't known, had arguments, and when retry // is enabled. We do this because the command might be registered inside - // the extension host now and can therfore accept the arguments as-is. + // the extension host now and can therefore accept the arguments as-is. if (e instanceof Error && e.message === '$executeCommand:retry') { return this._doExecuteCommand(id, args, false); } else { diff --git a/src/vs/workbench/api/common/extHostEditorTabs.ts b/src/vs/workbench/api/common/extHostEditorTabs.ts index 1fbc2d487deae..21a42adb1e4da 100644 --- a/src/vs/workbench/api/common/extHostEditorTabs.ts +++ b/src/vs/workbench/api/common/extHostEditorTabs.ts @@ -195,7 +195,7 @@ class ExtHostEditorTabGroup { this._activeTabId = operation.tabDto.id; } else if (this._activeTabId === operation.tabDto.id && !operation.tabDto.isActive) { // Events aren't guaranteed to be in order so if we receive a dto that matches the active tab id - // but isn't active we mark the active tab id as empty. This prevent onDidActiveTabChange frorm + // but isn't active we mark the active tab id as empty. This prevent onDidActiveTabChange from // firing incorrectly this._activeTabId = ''; } @@ -256,12 +256,12 @@ export class ExtHostEditorTabs implements IExtHostEditorTabs { return this._closeTabs(tabsOrTabGroups as vscode.Tab[], preserveFocus); } }, - // move: async (tab: vscode.Tab, viewColumn: ViewColumn, index: number, preservceFocus?: boolean) => { + // move: async (tab: vscode.Tab, viewColumn: ViewColumn, index: number, preserveFocus?: boolean) => { // const extHostTab = this._findExtHostTabFromApi(tab); // if (!extHostTab) { // throw new Error('Invalid tab'); // } - // this._proxy.$moveTab(extHostTab.tabId, index, typeConverters.ViewColumn.from(viewColumn), preservceFocus); + // this._proxy.$moveTab(extHostTab.tabId, index, typeConverters.ViewColumn.from(viewColumn), preserveFocus); // return; // } }; diff --git a/src/vs/workbench/api/common/extHostNotebookKernels.ts b/src/vs/workbench/api/common/extHostNotebookKernels.ts index 356c29a7a76bb..6cc843c39dc38 100644 --- a/src/vs/workbench/api/common/extHostNotebookKernels.ts +++ b/src/vs/workbench/api/common/extHostNotebookKernels.ts @@ -59,7 +59,7 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape { ) { this._proxy = mainContext.getProxy(MainContext.MainThreadNotebookKernels); - // todo@rebornix @joyceerhl: move to APICommands once stablized. + // todo@rebornix @joyceerhl: move to APICommands once stabilized. const selectKernelApiCommand = new ApiCommand( 'notebook.selectKernel', '_notebook.selectKernel', diff --git a/src/vs/workbench/api/common/extHostTesting.ts b/src/vs/workbench/api/common/extHostTesting.ts index a7c81eb67d292..559d09d0aa036 100644 --- a/src/vs/workbench/api/common/extHostTesting.ts +++ b/src/vs/workbench/api/common/extHostTesting.ts @@ -774,7 +774,7 @@ export class MirroredTestCollection extends AbstractIncrementalTestCollection(); /** - * Change emitter that fires with the same sematics as `TestObserver.onDidChangeTests`. + * Change emitter that fires with the same semantics as `TestObserver.onDidChangeTests`. */ public readonly onDidChangeTests = this.changeEmitter.event; diff --git a/src/vs/workbench/api/common/extHostWorkspace.ts b/src/vs/workbench/api/common/extHostWorkspace.ts index 9d805271e48ee..9127c0db90e3b 100644 --- a/src/vs/workbench/api/common/extHostWorkspace.ts +++ b/src/vs/workbench/api/common/extHostWorkspace.ts @@ -228,7 +228,7 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac if (this._actualWorkspace) { if (this._actualWorkspace.configuration) { if (this._actualWorkspace.isUntitled) { - return URI.from({ scheme: Schemas.untitled, path: basename(dirname(this._actualWorkspace.configuration)) }); // Untitled Worspace: return untitled URI + return URI.from({ scheme: Schemas.untitled, path: basename(dirname(this._actualWorkspace.configuration)) }); // Untitled Workspace: return untitled URI } return this._actualWorkspace.configuration; // Workspace: return the configuration location diff --git a/src/vs/workbench/browser/composite.ts b/src/vs/workbench/browser/composite.ts index d5e691faaf917..a619fe25a1fdb 100644 --- a/src/vs/workbench/browser/composite.ts +++ b/src/vs/workbench/browser/composite.ts @@ -134,7 +134,7 @@ export abstract class Composite extends Component implements IComposite { * The composite will be on-DOM if visible is set to true and off-DOM otherwise. * * Typically this operation should be fast though because setVisible might be called many times during a session. - * If there is a long running opertaion it is fine to have it running in the background asyncly and return before. + * If there is a long running operation it is fine to have it running in the background asyncly and return before. */ setVisible(visible: boolean): void { if (this.visible !== !!visible) { @@ -238,7 +238,7 @@ export abstract class Composite extends Component implements IComposite { } /** - * A composite descriptor is a leightweight descriptor of a composite in the workbench. + * A composite descriptor is a lightweight descriptor of a composite in the workbench. */ export abstract class CompositeDescriptor { diff --git a/src/vs/workbench/browser/dnd.ts b/src/vs/workbench/browser/dnd.ts index f5061e30594d6..8bc290a1655fc 100644 --- a/src/vs/workbench/browser/dnd.ts +++ b/src/vs/workbench/browser/dnd.ts @@ -189,7 +189,7 @@ export class ResourcesDropHandler { await this.workspaceEditingService.addFolders(folderURIs); } - // Finaly, enter untitled workspace when dropping >1 folders + // Finally, enter untitled workspace when dropping >1 folders else { await this.workspaceEditingService.createAndEnterWorkspace(folderURIs); } diff --git a/src/vs/workbench/browser/panecomposite.ts b/src/vs/workbench/browser/panecomposite.ts index 9d642b8934620..21230d84325ba 100644 --- a/src/vs/workbench/browser/panecomposite.ts +++ b/src/vs/workbench/browser/panecomposite.ts @@ -139,7 +139,7 @@ export abstract class PaneComposite extends Composite implements IPaneComposite /** - * A Pane Composite descriptor is a leightweight descriptor of a Pane Composite in the workbench. + * A Pane Composite descriptor is a lightweight descriptor of a Pane Composite in the workbench. */ export class PaneCompositeDescriptor extends CompositeDescriptor { diff --git a/src/vs/workbench/browser/web.api.ts b/src/vs/workbench/browser/web.api.ts index 99c7b0446355d..637b1af74cd7d 100644 --- a/src/vs/workbench/browser/web.api.ts +++ b/src/vs/workbench/browser/web.api.ts @@ -251,7 +251,7 @@ export interface IWorkbenchConstructionOptions { readonly commands?: readonly ICommand[]; /** - * Optional default layout to apply on first time the workspace is opened (uness `force` is specified). + * Optional default layout to apply on first time the workspace is opened (unless `force` is specified). */ readonly defaultLayout?: IDefaultLayout; diff --git a/src/vs/workbench/browser/workbench.ts b/src/vs/workbench/browser/workbench.ts index 25b50228d2acd..8094c87aca2b5 100644 --- a/src/vs/workbench/browser/workbench.ts +++ b/src/vs/workbench/browser/workbench.ts @@ -408,7 +408,7 @@ export class Workbench extends Layout { } // Transition into restored phase after layout has restored - // but do not wait indefinitly on this to account for slow + // but do not wait indefinitely on this to account for slow // editors restoring. Since the workbench is fully functional // even when the visible editors have not resolved, we still // want contributions on the `Restored` phase to work before diff --git a/src/vs/workbench/common/contextkeys.ts b/src/vs/workbench/common/contextkeys.ts index 9682738ae6cc3..907cfa0dda22d 100644 --- a/src/vs/workbench/common/contextkeys.ts +++ b/src/vs/workbench/common/contextkeys.ts @@ -142,7 +142,7 @@ export class ResourceContextKey { // UNDEFINED! IT IS IMPORTANT THAT DEFAULTS ARE INHERITED // FROM THE PARENT CONTEXT AND ONLY UNDEFINED DOES THIS - static readonly Scheme = new RawContextKey('resourceScheme', undefined, { type: 'string', description: localize('resourceScheme', "The scheme of the rsource") }); + static readonly Scheme = new RawContextKey('resourceScheme', undefined, { type: 'string', description: localize('resourceScheme', "The scheme of the resource") }); static readonly Filename = new RawContextKey('resourceFilename', undefined, { type: 'string', description: localize('resourceFilename', "The file name of the resource") }); static readonly Dirname = new RawContextKey('resourceDirname', undefined, { type: 'string', description: localize('resourceDirname', "The folder name the resource is contained in") }); static readonly Path = new RawContextKey('resourcePath', undefined, { type: 'string', description: localize('resourcePath', "The full path of the resource") }); diff --git a/src/vs/workbench/common/editor.ts b/src/vs/workbench/common/editor.ts index 166addd5daccd..03fd014d39b73 100644 --- a/src/vs/workbench/common/editor.ts +++ b/src/vs/workbench/common/editor.ts @@ -720,7 +720,7 @@ export interface EditorInputWithPreferredResource { * URIs. But when displaying the editor label to the user, the * preferred URI should be used. * - * Not all editors have a `preferredResouce`. The `EditorResourceAccessor` + * Not all editors have a `preferredResource`. The `EditorResourceAccessor` * utility can be used to always get the right resource without having * to do instanceof checks. */ diff --git a/src/vs/workbench/services/editor/browser/editorResolverService.ts b/src/vs/workbench/services/editor/browser/editorResolverService.ts index 2d99f4bb24b92..21ea8e0dcacc9 100644 --- a/src/vs/workbench/services/editor/browser/editorResolverService.ts +++ b/src/vs/workbench/services/editor/browser/editorResolverService.ts @@ -517,7 +517,7 @@ export class EditorResolverService extends Disposable implements IEditorResolver } /** - * Given a resource and an editorId, returns all editors open for that resouce and editorId. + * Given a resource and an editorId, returns all editors open for that resource and editorId. * @param resource The resource specified * @param editorId The editorID * @returns A list of editors @@ -671,7 +671,7 @@ export class EditorResolverService extends Disposable implements IEditorResolver // Create the editor picker const editorPicker = this.quickInputService.createQuickPick(); const placeHolderMessage = showDefaultPicker ? - localize('prompOpenWith.updateDefaultPlaceHolder', "Select new default editor for '{0}'", `*${extname(resource)}`) : + localize('promptOpenWith.updateDefaultPlaceHolder', "Select new default editor for '{0}'", `*${extname(resource)}`) : localize('promptOpenWith.placeHolder', "Select editor for '{0}'", basename(resource)); editorPicker.placeholder = placeHolderMessage; editorPicker.canAcceptInBackground = true; @@ -746,7 +746,7 @@ export class EditorResolverService extends Disposable implements IEditorResolver private sendEditorResolutionTelemetry(chosenInput: EditorInput): void { type editorResolutionClassification = { - viewType: { classification: 'PublicNonPersonalData'; purpose: 'FeatureInsight'; comment: 'The id of the editor opened. Used to gain an undertsanding of what editors are most popular' }; + viewType: { classification: 'PublicNonPersonalData'; purpose: 'FeatureInsight'; comment: 'The id of the editor opened. Used to gain an understanding of what editors are most popular' }; owner: 'lramos15'; comment: 'An event that fires when an editor type is picked'; }; diff --git a/src/vs/workbench/services/search/common/searchExtTypes.ts b/src/vs/workbench/services/search/common/searchExtTypes.ts index 5b8449ffd8321..6d037174bed4a 100644 --- a/src/vs/workbench/services/search/common/searchExtTypes.ts +++ b/src/vs/workbench/services/search/common/searchExtTypes.ts @@ -223,7 +223,7 @@ export interface TextSearchOptions extends SearchOptions { } /** - * Represents the severiry of a TextSearchComplete message. + * Represents the severity of a TextSearchComplete message. */ export enum TextSearchCompleteMessageType { Information = 1, diff --git a/src/vscode-dts/vscode.proposed.notebookContentProvider.d.ts b/src/vscode-dts/vscode.proposed.notebookContentProvider.d.ts index 95963aeaea511..b1e9211ceb28e 100644 --- a/src/vscode-dts/vscode.proposed.notebookContentProvider.d.ts +++ b/src/vscode-dts/vscode.proposed.notebookContentProvider.d.ts @@ -47,7 +47,7 @@ declare module 'vscode' { /** * Content providers should always use {@link FileSystemProvider file system providers} to - * resolve the raw content for `uri` as the resouce is not necessarily a file on disk. + * resolve the raw content for `uri` as the resource is not necessarily a file on disk. */ openNotebook(uri: Uri, openContext: NotebookDocumentOpenContext, token: CancellationToken): NotebookData | Thenable; diff --git a/src/vscode-dts/vscode.proposed.testCoverage.d.ts b/src/vscode-dts/vscode.proposed.testCoverage.d.ts index 3d7092ebb3cc1..7ed2627673a13 100644 --- a/src/vscode-dts/vscode.proposed.testCoverage.d.ts +++ b/src/vscode-dts/vscode.proposed.testCoverage.d.ts @@ -30,7 +30,7 @@ declare module 'vscode' { /** * Give a FileCoverage to fill in more data, namely {@link FileCoverage.detailedCoverage}. - * The editor will only resolve a FileCoverage once, and onyl if detailedCoverage + * The editor will only resolve a FileCoverage once, and only if detailedCoverage * is undefined. * * @param coverage A coverage object obtained from {@link provideFileCoverage} diff --git a/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts b/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts index 4fbd0c053ec8c..5d4b2b50fc2c9 100644 --- a/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts +++ b/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts @@ -142,7 +142,7 @@ declare module 'vscode' { } /** - * Represents the severiry of a TextSearchComplete message. + * Represents the severity of a TextSearchComplete message. */ export enum TextSearchCompleteMessageType { Information = 1,