Skip to content

Commit ad3cd6d

Browse files
committed
lint
1 parent 61b3353 commit ad3cd6d

File tree

2 files changed

+21
-26
lines changed

2 files changed

+21
-26
lines changed

vscode-debugger-extension/README.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,30 @@ By default, the extension will look for the file that calls the TypeScript repla
5353
Your entrypoint file should import the replayer adapter and your workflow:
5454

5555
```typescript
56-
import { exampleWorkflow } from './workflow';
57-
import { ReplayMode, replay } from '@phuongdnguyen/replayer-adapter-nodejs';
56+
import { exampleWorkflow } from "./workflow"
57+
import { ReplayMode, replay } from "@phuongdnguyen/replayer-adapter-nodejs"
5858

5959
async function main() {
60-
const opts = {
61-
mode: ReplayMode.IDE,
62-
workerReplayOptions: {
63-
workflowsPath: require.resolve('./workflow.ts'),
64-
bundlerOptions: {
65-
ignoreModules: [
66-
'fs/promises',
67-
'@temporalio/worker',
68-
'path',
69-
'child_process'
70-
]
71-
},
72-
debugMode: true,
73-
},
74-
debuggerAddr: 'http://127.0.0.1:54578'
75-
};
76-
77-
await replay(opts, exampleWorkflow);
60+
const opts = {
61+
mode: ReplayMode.IDE,
62+
workerReplayOptions: {
63+
workflowsPath: require.resolve("./workflow.ts"),
64+
bundlerOptions: {
65+
ignoreModules: ["fs/promises", "@temporalio/worker", "path", "child_process"],
66+
},
67+
debugMode: true,
68+
},
69+
debuggerAddr: "http://127.0.0.1:54578",
70+
}
71+
72+
await replay(opts, exampleWorkflow)
7873
}
7974

8075
if (require.main === module) {
81-
main().catch((error) => {
82-
console.error('Error:', error);
83-
process.exit(1);
84-
});
76+
main().catch((error) => {
77+
console.error("Error:", error)
78+
process.exit(1)
79+
})
8580
}
8681
```
8782

@@ -140,7 +135,7 @@ async def main():
140135
try:
141136
# Set up ide mode
142137
set_replay_mode(ReplayMode.IDE)
143-
138+
144139
# Create replay options
145140
opts = ReplayOptions(
146141
worker_replay_options={},

vscode-debugger-extension/extension/src/panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class HistoryDebuggerPanel {
246246
console.log(`debuggerDepCheck timed out after ${timeoutMs}ms; killing process`)
247247
try {
248248
childProcess.kill("SIGKILL")
249-
} catch { }
249+
} catch {}
250250
return false
251251
}
252252

0 commit comments

Comments
 (0)