Skip to content

Commit

Permalink
fix the the the typos (#239646)
Browse files Browse the repository at this point in the history
fix the `the the` -> `the` typos
  • Loading branch information
legomushroom authored Feb 4, 2025
1 parent 363d424 commit 1195e2c
Show file tree
Hide file tree
Showing 25 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Next: **[Try it out!](#try-it)**

You may see improved VNC responsiveness when accessing a codespace from VS Code client since you can use a [VNC Viewer][def]. Here's how to do it.

1. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the the [GitHub Codespaces extension](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces).
1. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the [GitHub Codespaces extension](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces).

> **Note:** The GitHub Codespaces extension requires the Visual Studio Code distribution of Code - OSS.
Expand Down
2 changes: 1 addition & 1 deletion extensions/ipynb/src/notebookModelStoreSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const noop = () => {
};

/**
* Code here is used to ensure the Notebook Model is in sync the the ipynb JSON file.
* Code here is used to ensure the Notebook Model is in sync the ipynb JSON file.
* E.g. assume you add a new cell, this new cell will not have any metadata at all.
* However when we save the ipynb, the metadata will be an empty object `{}`.
* Now thats completely different from the metadata os being `empty/undefined` in the model.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
}
this._isInitialized = true;

// Remember when adding to this method that it isn't called until the the view is visible, meaning that
// Remember when adding to this method that it isn't called until the view is visible, meaning that
// properties could be set and events could be fired before we're initialized and that this needs to be handled.

this.contextKeyService.bufferChangeEvents(() => {
Expand Down Expand Up @@ -534,7 +534,7 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {

private initializeShowCollapseAllAction(startingValue: boolean = false) {
if (!this.collapseAllContext) {
this.collapseAllContextKey = new RawContextKey<boolean>(`treeView.${this.id}.enableCollapseAll`, startingValue, localize('treeView.enableCollapseAll', "Whether the the tree view with id {0} enables collapse all.", this.id));
this.collapseAllContextKey = new RawContextKey<boolean>(`treeView.${this.id}.enableCollapseAll`, startingValue, localize('treeView.enableCollapseAll', "Whether the tree view with id {0} enables collapse all.", this.id));
this.collapseAllContext = this.collapseAllContextKey.bindTo(this.contextKeyService);
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/base/browser/ui/hover/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface IHoverDelegate2 {
): IDisposable;

/**
* Hides the hover if it was visible. This call will be ignored if the the hover is currently
* Hides the hover if it was visible. This call will be ignored if the hover is currently
* "locked" via the alt/option key.
*/
hideHover(): void;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/editor/browser/editorDom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class EditorPagePosition {
}

/**
* Coordinates relative to the the (top;left) of the editor that can be used safely with other internal editor metrics.
* Coordinates relative to the (top;left) of the editor that can be used safely with other internal editor metrics.
* **NOTE**: This position is obtained by taking page coordinates and transforming them relative to the
* editor's (top;left) position in a way in which scale transformations are taken into account.
* **NOTE**: These coordinates could be negative if the mouse position is outside the editor.
Expand Down
4 changes: 2 additions & 2 deletions src/vs/editor/browser/gpu/atlas/atlas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ export interface ITextureAtlasPageGlyph {
/** The y offset from {@link y} of the glyph's origin. */
originOffsetY: number;
/**
* The distance from the the glyph baseline to the top of the highest bounding rectangle of all
* The distance from the glyph baseline to the top of the highest bounding rectangle of all
* fonts used to render the text.
*
* @see {@link TextMetrics.fontBoundingBoxAscent}
*/
fontBoundingBoxAscent: number;
/**
* The distance from the the glyph baseline to the bottom of the bounding rectangle of all fonts
* The distance from the glyph baseline to the bottom of the bounding rectangle of all fonts
* used to render the text.
*
* @see {@link TextMetrics.fontBoundingBoxDescent}
Expand Down
4 changes: 2 additions & 2 deletions src/vs/editor/browser/gpu/raster/raster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ export interface IRasterizedGlyph {
*/
originOffset: { x: number; y: number };
/**
* The distance from the the glyph baseline to the top of the highest bounding rectangle of all
* The distance from the glyph baseline to the top of the highest bounding rectangle of all
* fonts used to render the text.
*
* @see {@link TextMetrics.fontBoundingBoxAscent}
*/
fontBoundingBoxAscent: number;
/**
* The distance from the the glyph baseline to the bottom of the bounding rectangle of all fonts
* The distance from the glyph baseline to the bottom of the bounding rectangle of all fonts
* used to render the text.
*
* @see {@link TextMetrics.fontBoundingBoxDescent}
Expand Down
2 changes: 1 addition & 1 deletion src/vs/editor/browser/view/viewLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class VisibleLinesCollection<T extends IVisibleLine> {

public onFlushed(e: viewEvents.ViewFlushedEvent, flushDom?: boolean): boolean {
// No need to clear the dom node because a full .innerHTML will occur in
// ViewLayerRenderer._render, however the the fallbakc mechanism in the
// ViewLayerRenderer._render, however the fallback mechanism in the
// GPU renderer may cause this to be necessary as the .innerHTML call
// may not happen depending on the new state, leaving stale DOM nodes
// around.
Expand Down
2 changes: 1 addition & 1 deletion src/vs/editor/common/textModelGuides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface IGuidesTextModelPart {
getLinesIndentGuides(startLineNumber: number, endLineNumber: number): number[];

/**
* Requests the the indent guides for the given range of lines.
* Requests the indent guides for the given range of lines.
* `result[i]` will contain the indent guides of the `startLineNumber + i`th line.
* @internal
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ abstract class AbstractExtensionGalleryService implements IExtensionGalleryServi
{ count: number },
{
owner: 'sandy081';
comment: 'Report the query to the the Marketplace for fetching extensions by name';
comment: 'Report the query to the Marketplace for fetching extensions by name';
readonly count: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'Number of extensions to fetch' };
}>('galleryService:additionalQueryByName', {
count: extensionInfosByName.length
Expand Down Expand Up @@ -1296,7 +1296,7 @@ abstract class AbstractExtensionGalleryService implements IExtensionGalleryServi
finally {
type GalleryServiceGetLatestEventClassification = {
owner: 'sandy081';
comment: 'Report the query to the the Marketplace for fetching latest version of an extension';
comment: 'Report the query to the Marketplace for fetching latest version of an extension';
extension: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The identifier of the extension' };
duration: { classification: 'SystemMetaData'; purpose: 'PerformanceAndHealth'; isMeasurement: true; comment: 'Duration in ms for the query' };
errorCode?: { classification: 'SystemMetaData'; purpose: 'PerformanceAndHealth'; comment: 'The error code in case of error' };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class CommandDetectionCapability extends Disposable implements ICommandDe
this._logService.debug('CommandDetectionCapability#handleCommandFinished', this._terminal.buffer.active.cursorX, options?.marker?.line, this._currentCommand.command, this._currentCommand);

// HACK: Handle a special case on some versions of bash where identical commands get merged
// in the output of `history`, this detects that case and sets the exit code to the the last
// in the output of `history`, this detects that case and sets the exit code to the last
// command's exit code. This covered the majority of cases but will fail if the same command
// runs with a different exit code, that will need a more robust fix where we send the
// command ID and exit code over to the capability to adjust there.
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/browser/parts/views/treeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
}
this._isInitialized = true;

// Remember when adding to this method that it isn't called until the the view is visible, meaning that
// Remember when adding to this method that it isn't called until the view is visible, meaning that
// properties could be set and events could be fired before we're initialized and that this needs to be handled.

this.contextKeyService.bufferChangeEvents(() => {
Expand Down Expand Up @@ -534,7 +534,7 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {

private initializeShowCollapseAllAction(startingValue: boolean = false) {
if (!this.collapseAllContext) {
this.collapseAllContextKey = new RawContextKey<boolean>(`treeView.${this.id}.enableCollapseAll`, startingValue, localize('treeView.enableCollapseAll', "Whether the the tree view with id {0} enables collapse all.", this.id));
this.collapseAllContextKey = new RawContextKey<boolean>(`treeView.${this.id}.enableCollapseAll`, startingValue, localize('treeView.enableCollapseAll', "Whether the tree view with id {0} enables collapse all.", this.id));
this.collapseAllContext = this.collapseAllContextKey.bindTo(this.contextKeyService);
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/chat/browser/media/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ have to be updated for changes to the rules above, or to support more deeply nes
}
/*
* This overly-specific CSS selector is needed to beat priority of some
* styles applied on the the `.chat-attached-context-attachment` element.
* styles applied on the `.chat-attached-context-attachment` element.
*/
.chat-attached-context .chat-prompt-instructions-attachments .chat-prompt-instructions-attachment.error.implicit,
.chat-attached-context .chat-prompt-instructions-attachments .chat-prompt-instructions-attachment.warning.implicit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export class CommentService extends Disposable implements ICommentService {
}

/**
* The active comment thread is the the thread that is currently being edited.
* The active comment thread is the thread that is currently being edited.
* @param commentThread
*/
setActiveEditingCommentThread(commentThread: CommentThread | null) {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/comments/browser/commentsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class CommentsModel extends Disposable implements ICommentsModel {
public hasCommentThreads(): boolean {
// There's a resource with at least one thread
return !!this._resourceCommentThreads.length && this._resourceCommentThreads.some(resource => {
// At least one of the threads in the the resource has comments
// At least one of the threads in the resource has comments
return (resource.commentThreads.length > 0) && resource.commentThreads.some(thread => {
// At least one of the comments in the thread is not empty
return threadHasMeaningfulComments(thread.thread);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface IExternalUriOpenerService {
registerExternalOpenerProvider(provider: IExternalOpenerProvider): IDisposable;

/**
* Get the configured IExternalUriOpener for the the uri.
* Get the configured IExternalUriOpener for the uri.
* If there is no opener configured, then returns the first opener that can handle the uri.
*/
getOpener(uri: URI, ctx: { sourceUri: URI; preferredOpenerId?: string }, token: CancellationToken): Promise<IExternalUriOpener | undefined>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export class SimpleSettingRenderer {
if (uri.scheme === Schemas.codeSetting) {
type ReleaseNotesSettingUsedClassification = {
owner: 'alexr00';
comment: 'Used to understand if the the action to update settings from the release notes is used.';
comment: 'Used to understand if the action to update settings from the release notes is used.';
settingId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The id of the setting that was clicked on in the release notes' };
};
type ReleaseNotesSettingUsed = {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/terminal/browser/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ export interface ITerminalInstance extends IBaseTerminalInstance {

/**
* Sets the terminal instance's dimensions to the values provided via the onDidOverrideDimensions event,
* which allows overriding the the regular dimensions (fit to the size of the panel).
* which allows overriding the regular dimensions (fit to the size of the panel).
*/
setOverrideDimensions(dimensions: ITerminalDimensions): void;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export function registerContextualInstanceAction(
activeInstanceType?: 'view' | 'editor';
run: (instance: ITerminalInstance, c: ITerminalServicesCollection, accessor: ServicesAccessor, args?: unknown) => void | Promise<unknown>;
/**
* A callback to run after the the `run` callbacks have completed.
* A callback to run after the `run` callbacks have completed.
* @param instances The selected instance(s) that the command was run on.
*/
runAfter?: (instances: ITerminalInstance[], c: ITerminalServicesCollection, accessor: ServicesAccessor, args?: unknown) => void | Promise<unknown>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
}

/**
* Opens the the terminal instance inside the parent DOM element previously set with
* Opens the terminal instance inside the parent DOM element previously set with
* `attachToElement`, you must ensure the parent DOM element is explicitly visible before
* invoking this function as it performs some DOM calculations internally
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ export class WorkspaceTrustEditor extends EditorPane {

const textElement = append(parent, $('.workspace-trust-untrusted-description'));
if (!this.workspaceTrustManagementService.isWorkspaceTrustForced()) {
textElement.innerText = this.workspaceService.getWorkbenchState() === WorkbenchState.WORKSPACE ? localize('untrustedWorkspaceReason', "This workspace is trusted via the bolded entries in the trusted folders below.") : localize('untrustedFolderReason', "This folder is trusted via the bolded entries in the the trusted folders below.");
textElement.innerText = this.workspaceService.getWorkbenchState() === WorkbenchState.WORKSPACE ? localize('untrustedWorkspaceReason', "This workspace is trusted via the bolded entries in the trusted folders below.") : localize('untrustedFolderReason', "This folder is trusted via the bolded entries in the trusted folders below.");
} else {
textElement.innerText = localize('trustedForcedReason', "This window is trusted by nature of the workspace that is opened.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/vscode-dts/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11906,7 +11906,7 @@ declare module 'vscode' {
* A map containing a mapping of the mime type of the corresponding transferred data.
*
* Drag and drop controllers that implement {@link TreeDragAndDropController.handleDrag `handleDrag`} can add additional mime types to the
* data transfer. These additional mime types will only be included in the `handleDrop` when the the drag was initiated from
* data transfer. These additional mime types will only be included in the `handleDrop` when the drag was initiated from
* an element in the same drag and drop controller.
*/
export class DataTransfer implements Iterable<[mimeType: string, item: DataTransferItem]> {
Expand Down
2 changes: 1 addition & 1 deletion src/vscode-dts/vscode.proposed.resolvers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ declare module 'vscode' {
tunnelFeatures?: {
elevation: boolean;
/**
* One of the the options must have the ID "private".
* One of the options must have the ID "private".
*/
privacyOptions: TunnelPrivacy[];
/**
Expand Down
2 changes: 1 addition & 1 deletion src/vscode-dts/vscode.proposed.tunnelFactory.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ declare module 'vscode' {
tunnelFeatures?: {
elevation: boolean;
/**
* One of the the options must have the ID "private".
* One of the options must have the ID "private".
*/
privacyOptions: TunnelPrivacy[];
/**
Expand Down
2 changes: 1 addition & 1 deletion test/automation/src/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class Terminal {
name: title.textContent.replace(/^[]\s*/, ''),
description: description?.textContent
};
// It's a new group if the the tab does not start with ├ or └
// It's a new group if the tab does not start with ├ or └
if (title.textContent.match(/^[]/)) {
groups[groups.length - 1].push(label);
} else {
Expand Down

0 comments on commit 1195e2c

Please sign in to comment.