Skip to content

Commit cd83444

Browse files
authored
[vscode-lldb] Fix format (llvm#151829)
Generated by running the formatter: ``` royshi-mac-home ~/public_llvm/llvm-project/lldb/tools/lldb-dap % yarn format yarn run v1.22.22 warning package.json: License should be a valid SPDX license expression warning [email protected]: The engine "vscode" appears to be invalid. $ npx prettier './src-ts/' --write src-ts/debug-adapter-factory.ts 65ms src-ts/debug-configuration-provider.ts 17ms (unchanged) src-ts/debug-session-tracker.ts 11ms (unchanged) src-ts/disposable-context.ts 2ms (unchanged) src-ts/extension.ts 3ms (unchanged) src-ts/lldb-dap-server.ts 7ms src-ts/ui/error-with-notification.ts 4ms (unchanged) src-ts/ui/modules-data-provider.ts 5ms (unchanged) src-ts/ui/show-error-message.ts 6ms (unchanged) src-ts/uri-launch-handler.ts 5ms (unchanged) ✨ Done in 0.99s. ```
1 parent 3ee8d04 commit cd83444

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ export async function createDebugAdapterExecutable(
169169
workspaceFolder: vscode.WorkspaceFolder | undefined,
170170
configuration: vscode.DebugConfiguration,
171171
): Promise<vscode.DebugAdapterExecutable> {
172-
const config = vscode.workspace.workspaceFile ? vscode.workspace.getConfiguration("lldb-dap") : vscode.workspace.getConfiguration("lldb-dap", workspaceFolder);
172+
const config = vscode.workspace.workspaceFile
173+
? vscode.workspace.getConfiguration("lldb-dap")
174+
: vscode.workspace.getConfiguration("lldb-dap", workspaceFolder);
173175
const log_path = config.get<string>("log-path");
174176
let env: { [key: string]: string } = {};
175177
if (log_path) {

lldb/tools/lldb-dap/src-ts/lldb-dap-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class LLDBDapServer implements vscode.Disposable {
2626
args: string[],
2727
options?: child_process.SpawnOptionsWithoutStdio,
2828
): Promise<{ host: string; port: number } | undefined> {
29-
const dapArgs = [...args, "--connection", "listen://localhost:0" ];
29+
const dapArgs = [...args, "--connection", "listen://localhost:0"];
3030
if (!(await this.shouldContinueStartup(dapPath, dapArgs))) {
3131
return undefined;
3232
}

0 commit comments

Comments
 (0)