From ebe7af5bf4632c21a1f0072427a7d51d448c0839 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sun, 31 May 2026 21:36:28 -0700 Subject: [PATCH] docs: fix typos in typings, tests, and core comments - addon-clipboard: "Note that this" instead of duplicate "this" - addon-webgl: remove stray "the" before "a" in event JSDoc - SharedRendererTests: duplicate "the" in test title - Types: "protocol" spelling in CoreMouseEncoding JSDoc - InputHandler: "a replacement char" article fix Co-authored-by: Cursor --- addons/addon-clipboard/typings/addon-clipboard.d.ts | 2 +- addons/addon-webgl/typings/addon-webgl.d.ts | 4 ++-- src/common/InputHandler.ts | 2 +- src/common/Types.ts | 2 +- test/playwright/SharedRendererTests.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/addon-clipboard/typings/addon-clipboard.d.ts b/addons/addon-clipboard/typings/addon-clipboard.d.ts index f8e024ac3..f5a892e21 100644 --- a/addons/addon-clipboard/typings/addon-clipboard.d.ts +++ b/addons/addon-clipboard/typings/addon-clipboard.d.ts @@ -82,7 +82,7 @@ declare module '@xterm/addon-clipboard' { /** * The clipboard provider interface that enables xterm.js to access the browser clipboard. * - * Note this this clipboard provider does not implement own cut buffers as xterm does, + * Note that this clipboard provider does not implement own cut buffers as xterm does, * but redirect the selection parameter always to navigator.clipboard. */ export class BrowserClipboardProvider implements IClipboardProvider{ diff --git a/addons/addon-webgl/typings/addon-webgl.d.ts b/addons/addon-webgl/typings/addon-webgl.d.ts index 37b6b8a95..37acbb8a9 100644 --- a/addons/addon-webgl/typings/addon-webgl.d.ts +++ b/addons/addon-webgl/typings/addon-webgl.d.ts @@ -23,12 +23,12 @@ declare module '@xterm/addon-webgl' { public readonly onChangeTextureAtlas: IEvent; /** - * An event that is fired when the a new page is added to the texture atlas. + * An event that is fired when a new page is added to the texture atlas. */ public readonly onAddTextureAtlasCanvas: IEvent; /** - * An event that is fired when the a page is removed from the texture atlas. + * An event that is fired when a page is removed from the texture atlas. */ public readonly onRemoveTextureAtlasCanvas: IEvent; diff --git a/src/common/InputHandler.ts b/src/common/InputHandler.ts index 9a8b84888..7ea1c2f42 100644 --- a/src/common/InputHandler.ts +++ b/src/common/InputHandler.ts @@ -550,7 +550,7 @@ export class InputHandler extends Disposable implements IInputHandler { // get charset replacement character // charset is only defined for ASCII, therefore we only - // search for an replacement char if code < 127 + // search for a replacement char if code < 127 if (code < 127 && charset) { const ch = charset[String.fromCharCode(code)]; if (ch) { diff --git a/src/common/Types.ts b/src/common/Types.ts index 9e1481fd3..971030944 100644 --- a/src/common/Types.ts +++ b/src/common/Types.ts @@ -234,7 +234,7 @@ export interface ICoreMouseProtocol { /** * CoreMouseEncoding * The tracking encoding can be registered and activated at the MouseStateService. - * If a ICoreMouseEvent passes all procotol restrictions it will be encoded + * If a ICoreMouseEvent passes all protocol restrictions it will be encoded * with the active encoding and sent out. * Note: Returning an empty string will supress sending a mouse report, * which can be used to skip creating falsey reports in limited encodings diff --git a/test/playwright/SharedRendererTests.ts b/test/playwright/SharedRendererTests.ts index db5c4c073..1983fd410 100644 --- a/test/playwright/SharedRendererTests.ts +++ b/test/playwright/SharedRendererTests.ts @@ -980,7 +980,7 @@ export function injectSharedRendererTests(ctx: ISharedRendererTestContext): void }); test.describe('selectionInactiveBackground', async () => { - test('should render the the inactive selection when not focused', async () => { + test('should render the inactive selection when not focused', async () => { const theme: ITheme = { selectionBackground: '#FF000080', selectionInactiveBackground: '#0000FF80'