From 39d85c031fde602626e5a22799be395ea9ca021b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Fri, 23 Oct 2026 04:19:12 -0400 Subject: [PATCH] docs: fix typos in comments and an error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 'debugee' -> 'debuggee' in the two section-header comments of protocol-events.ts - comment referenced 'handSetBreakpointsRequest'; the method is handleSetBreakpointsRequest (breakpoints.ts) - 'can not be empty' -> 'cannot be empty' in the Command Shortcut error message (home-view-provider.ts) Identifiers such as sendDebugeeRequestAsync are left unchanged. Signed-off-by: Léon Avic Simmons --- src/breakpoints.ts | 2 +- src/panels/home-view-provider.ts | 2 +- src/protocol-events.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/breakpoints.ts b/src/breakpoints.ts index f91fd29..1100e9e 100644 --- a/src/breakpoints.ts +++ b/src/breakpoints.ts @@ -93,7 +93,7 @@ export class Breakpoints implements IBreakpointsHandler { } // create response breakpoints only for those from the primary source, providing 'verified' status to VSCode - // note that handSetBreakpointsRequest is per-source, so we can't return breakpoint status from other sources + // note that handleSetBreakpointsRequest is per-source, so we can't return breakpoint status from other sources if (generatedBreakpoints.breakpoints.length !== breakpointsStatus.breakpoints.length) { throw new Error('Breakpoint count mismatch between generated and received breakpoints'); } diff --git a/src/panels/home-view-provider.ts b/src/panels/home-view-provider.ts index 137f334..55ee401 100644 --- a/src/panels/home-view-provider.ts +++ b/src/panels/home-view-provider.ts @@ -73,7 +73,7 @@ export class HomeViewProvider implements vscode.WebviewViewProvider { } case 'run-minecraft-command': { if (!message.command || message.command.trim() === '') { - vscode.window.showErrorMessage('Minecraft Command Shortcut can not be empty.'); + vscode.window.showErrorMessage('Minecraft Command Shortcut cannot be empty.'); return; } this._eventEmitter.emit('run-minecraft-command', message.command); diff --git a/src/protocol-events.ts b/src/protocol-events.ts index 00b9f8a..126d5bb 100644 --- a/src/protocol-events.ts +++ b/src/protocol-events.ts @@ -36,7 +36,7 @@ export enum ProtocolVersion { export const DEBUGGER_PROTOCOL_VERSION = ProtocolVersion.SupportDiagnosticsSetActive; // ------------------------------------------------------------------------- -// Interfaces for event message payloads (received from the debugee) +// Interfaces for event message payloads (received from the debuggee) // ------------------------------------------------------------------------- export enum IncomingEventType { Stopped = 'StoppedEvent', @@ -122,7 +122,7 @@ export type IncomingDebuggeeMessage = // ------------------------------------------------------------------------- -// Interfaces for outbound message payloads (sent to the debugee) +// Interfaces for outbound message payloads (sent to the debuggee) // ------------------------------------------------------------------------- export enum OutgoingEventType { Protocol = 'protocol',