Skip to content

Commit c719877

Browse files
committed
Enforcing single quotes
1 parent ded4755 commit c719877

33 files changed

+873
-870
lines changed

.githooks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ git config core.hooksPath .githooks
2323

2424
The pre-commit hook runs the following checks before each commit:
2525

26-
1. **Format Check** - Ensures code follows Prettier formatting rules
26+
1. **Format Check** - Ensures code follows formatting rules
2727
2. **Linter** - Runs ESLint to catch potential issues
2828
3. **TypeScript Compilation** - Verifies code compiles without errors
2929
4. **Tests** - Runs the full test suite

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// for the documentation about the extensions.json format
44
"recommendations": [
55
"dbaeumer.vscode-eslint",
6-
"esbenp.prettier-vscode",
76
"ms-vscode.extension-test-runner",
87
"amodio.tsl-problem-matcher",
98
"emeraldwalk.runonsave"

CHANGELOG.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
88

99
## [0.0.21] - 2025-11-21
1010

11-
# v0.0.21 Release Notes
12-
1311
**Breaking:** Removed legacy `serverReady` shape (`path`, `line`, `command`, `httpRequest`, `pattern`, `immediateOnAttach`). Introduced unified object:
1412

1513
```ts
1614
serverReady: {
17-
trigger?: { path?: string; line?: number; pattern?: string }; // omit for immediate attach
18-
action: { shellCommand: string } |
19-
{ httpRequest: { url: string; method?: string; headers?: Record<string,string>; body?: string } } |
20-
{ vscodeCommand: { command: string; args?: unknown[] } };
15+
trigger?: { path?: string; line?: number; pattern?: string }; // omit for immediate attach
16+
action: { shellCommand: string } |
17+
{ httpRequest: { url: string; method?: string; headers?: Record<string,string>; body?: string } } |
18+
{ vscodeCommand: { command: string; args?: unknown[] } };
2119
}
2220
```
2321

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ Structure (legacy union still accepted; new flat shape preferred):
136136
interface ServerReadyFlat {
137137
trigger?: { path?: string; line?: number; pattern?: string };
138138
action:
139-
| { type: "shellCommand"; shellCommand: string }
139+
| { type: 'shellCommand'; shellCommand: string }
140140
| {
141-
type: "httpRequest";
141+
type: 'httpRequest';
142142
url: string;
143143
method?: string;
144144
headers?: Record<string, string>;
145145
body?: string;
146146
}
147-
| { type: "vscodeCommand"; command: string; args?: unknown[] };
147+
| { type: 'vscodeCommand'; command: string; args?: unknown[] };
148148
}
149149
// Legacy (still supported for backward compatibility)
150150
interface ServerReadyLegacy {

agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- **Lint**: `npm run lint` - Runs ESLint on TypeScript files in `src/`
88
- **Test**: `npm run test` - Runs tests using vscode-test
99
- **Prepare for publish**: `npm run vscode:prepublish` - Runs compile before publishing
10-
- **Formatting**: Formatting is handled by ESLint autofix (`npm run lint -- --fix` or just `npm run lint` if configured). Prettier was removed to simplify the stack.
10+
- **Formatting**: Formatting is handled by ESLint autofix (`npm run lint -- --fix` or just `npm run lint` if configured).
1111

1212
## User-Facing Commands Added
1313

eslint.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Migrated to Antfu's flat ESLint config. See: https://github.com/antfu/eslint-config
22
// We preserve prior custom rules (naming-convention for imports, curly, eqeqeq)
3-
// Prettier has been removed entirely; ESLint (antfu config + --fix) now handles stylistic normalization.
43
import antfu from "@antfu/eslint-config";
54

65
// Custom rule to ban "fallback" or "fall-back" in any form
@@ -180,6 +179,11 @@ export default antfu(
180179
"ts/no-explicit-any": ["error"],
181180
"no-inner-declarations": ["error"],
182181
"local/ban-fallback": "error",
182+
quotes: [
183+
"error",
184+
"single",
185+
{ avoidEscape: true, allowTemplateLiterals: true },
186+
],
183187
},
184188
},
185189
// Global lightweight tweaks

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"bugs": {
1515
"url": "https://github.com/dkattan/Copilot-Breakpoint-Debugger/issues"
1616
},
17-
"when": "debugState == 'running'",
1817
"keywords": [
1918
"copilot",
2019
"debug",

src/BreakpointDefinition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface BreakpointDefinition {
88
path: string;
99
line: number;
1010
variableFilter?: string[]; // Optional: when action=capture and omitted we auto-capture all locals (bounded by captureMaxVariables setting)
11-
onHit?: "break" | "stopDebugging" | "captureAndContinue"; // captureAndContinue returns data then continues (non-blocking)
11+
onHit?: 'break' | 'stopDebugging' | 'captureAndContinue'; // captureAndContinue returns data then continues (non-blocking)
1212
condition?: string; // Expression evaluated at breakpoint; stop only if true
1313
hitCount?: number; // Exact numeric hit count (3 means pause on 3rd hit)
1414
logMessage?: string; // Logpoint style message with {var} interpolation

src/common.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type { Variable } from "./debugUtils";
2-
import { useEvent, useEventEmitter, useOutputChannel } from "reactive-vscode";
3-
import * as vscode from "vscode";
1+
import type { Variable } from './debugUtils';
2+
import { useEvent, useEventEmitter, useOutputChannel } from 'reactive-vscode';
3+
import * as vscode from 'vscode';
44

55
// Re-export types for convenience
66
export type { Variable };
77

88
// Create an output channel for debugging
9-
export const outputChannel = useOutputChannel("Debug Tools");
9+
export const outputChannel = useOutputChannel('Debug Tools');
1010

1111
export interface ThreadData {
1212
threadId: number;
@@ -87,6 +87,6 @@ addTerminateListener((session) => {
8787
const addChangeListener = useEvent(vscode.debug.onDidChangeActiveDebugSession);
8888
addChangeListener((session) => {
8989
outputChannel.appendLine(
90-
`Active debug session changed: ${session ? session.name : "None"}`
90+
`Active debug session changed: ${session ? session.name : 'None'}`
9191
);
9292
});

src/config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { defineConfigObject } from "reactive-vscode";
2-
import * as Meta from "./generated-meta";
1+
import { defineConfigObject } from 'reactive-vscode';
2+
import * as Meta from './generated-meta';
33

4-
type ServerReadyActionType = "httpRequest" | "shellCommand" | "vscodeCommand";
5-
type ConsoleLogLevel = "trace" | "debug" | "info" | "warn" | "error" | "off";
4+
type ServerReadyActionType = 'httpRequest' | 'shellCommand' | 'vscodeCommand';
5+
type ConsoleLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off';
66

77
const configDefaults = {
88
defaultLaunchConfiguration: (Meta.configs
9-
.copilotDebuggerDefaultLaunchConfiguration.default ?? "") as string,
9+
.copilotDebuggerDefaultLaunchConfiguration.default ?? '') as string,
1010
entryTimeoutSeconds: (Meta.configs.copilotDebuggerEntryTimeoutSeconds
1111
.default ?? 60) as number,
1212
captureMaxVariables: (Meta.configs.copilotDebuggerCaptureMaxVariables
@@ -15,13 +15,13 @@ const configDefaults = {
1515
true) as boolean,
1616
serverReadyDefaultActionType: (Meta.configs
1717
.copilotDebuggerServerReadyDefaultActionType.default ??
18-
"httpRequest") as ServerReadyActionType,
18+
'httpRequest') as ServerReadyActionType,
1919
maxBuildErrors: (Meta.configs.copilotDebuggerMaxBuildErrors.default ??
2020
5) as number,
2121
maxOutputLines: (Meta.configs.copilotDebuggerMaxOutputLines.default ??
2222
50) as number,
2323
consoleLogLevel: (Meta.configs.copilotDebuggerConsoleLogLevel.default ??
24-
"info") as ConsoleLogLevel,
24+
'info') as ConsoleLogLevel,
2525
enableTraceLogging: (Meta.configs.copilotDebuggerEnableTraceLogging.default ??
2626
false) as boolean,
2727
} satisfies {
@@ -39,6 +39,6 @@ const configDefaults = {
3939
export type CopilotDebuggerConfig = typeof configDefaults;
4040

4141
export const config = defineConfigObject<CopilotDebuggerConfig>(
42-
"copilot-debugger",
42+
'copilot-debugger',
4343
configDefaults
4444
);

0 commit comments

Comments
 (0)