Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo #153187

Merged
merged 1 commit into from
Jun 27, 2022
Merged

fix: typo #153187

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vs/editor/browser/controller/textAreaHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/editor/common/viewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/browser/mainThreadEditorTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/browser/mainThreadFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})`);
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/browser/mainThreadNotebookEditors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/browser/mainThreadTerminalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/common/extHostCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions src/vs/workbench/api/common/extHostEditorTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}
Expand Down Expand Up @@ -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;
// }
};
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/common/extHostNotebookKernels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/common/extHostTesting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ export class MirroredTestCollection extends AbstractIncrementalTestCollection<Mi
private changeEmitter = new Emitter<vscode.TestsChangeEvent>();

/**
* 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;

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/api/common/extHostWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/browser/composite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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<T extends Composite> {

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/dnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/panecomposite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<PaneComposite> {

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/web.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/common/contextkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('resourceScheme', undefined, { type: 'string', description: localize('resourceScheme', "The scheme of the rsource") });
static readonly Scheme = new RawContextKey<string>('resourceScheme', undefined, { type: 'string', description: localize('resourceScheme', "The scheme of the resource") });
static readonly Filename = new RawContextKey<string>('resourceFilename', undefined, { type: 'string', description: localize('resourceFilename', "The file name of the resource") });
static readonly Dirname = new RawContextKey<string>('resourceDirname', undefined, { type: 'string', description: localize('resourceDirname', "The folder name the resource is contained in") });
static readonly Path = new RawContextKey<string>('resourcePath', undefined, { type: 'string', description: localize('resourcePath', "The full path of the resource") });
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/common/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -671,7 +671,7 @@ export class EditorResolverService extends Disposable implements IEditorResolver
// Create the editor picker
const editorPicker = this.quickInputService.createQuickPick<IQuickPickItem>();
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;
Expand Down Expand Up @@ -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';
};
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/services/search/common/searchExtTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<NotebookData>;

Expand Down
2 changes: 1 addition & 1 deletion src/vscode-dts/vscode.proposed.testCoverage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion src/vscode-dts/vscode.proposed.textSearchProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down