Skip to content

Commit 16ffb37

Browse files
committed
Fix format errors
1 parent 8e2fac3 commit 16ffb37

File tree

4 files changed

+26
-27
lines changed

4 files changed

+26
-27
lines changed

test/integration-tests/SwiftSnippet.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ suite("SwiftSnippet Test Suite", () => {
4242
this.skip();
4343
}
4444
await waitForNoRunningTasks();
45-
45+
4646
// File needs to be open for command to be enabled
4747
const doc = await vscode.workspace.openTextDocument(uri.fsPath);
4848
await vscode.window.showTextDocument(doc);
49-
49+
5050
// Set a breakpoint
5151
vscode.debug.addBreakpoints(breakpoints);
5252
},

test/integration-tests/commands/build.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ suite("Build Commands", function () {
9999
// but "stackTrace" is the deterministic sync point we will use to make sure we can execute continue
100100
const bpPromise = waitForDebugAdapterCommand(
101101
"Debug PackageExe (defaultPackage)",
102-
"stackTrace",
102+
"stackTrace"
103103
);
104104

105105
const result = vscode.commands.executeCommand(Commands.DEBUG);

test/integration-tests/tasks/SwiftPluginTaskProvider.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ import { WorkspaceContext } from "../../../src/WorkspaceContext";
1919
import { SwiftPluginTaskProvider } from "../../../src/tasks/SwiftPluginTaskProvider";
2020
import { FolderContext } from "../../../src/FolderContext";
2121
import { activateExtensionForSuite, folderInRootWorkspace } from "../utilities/testutilities";
22-
import { cleanOutput, executeTaskAndWaitForResult, waitForEndTaskProcess } from "../../utilities/tasks";
22+
import {
23+
cleanOutput,
24+
executeTaskAndWaitForResult,
25+
waitForEndTaskProcess,
26+
} from "../../utilities/tasks";
2327
import { mutable } from "../../utilities/types";
2428

2529
suite("SwiftPluginTaskProvider Test Suite", () => {

test/utilities/debug.ts

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
//===----------------------------------------------------------------------===//
1414
import * as vscode from "vscode";
1515
import { Workbench } from "../../src/utilities/commands";
16-
import { DebugAdapter } from "../../src/debugger/debugAdapter";
17-
import { WorkspaceContext } from "../../src/WorkspaceContext";
1816

1917
export async function continueSession(): Promise<void> {
2018
await vscode.commands.executeCommand(Workbench.ACTION_DEBUG_CONTINUE);
@@ -30,29 +28,26 @@ export async function continueSession(): Promise<void> {
3028
*/
3129
export async function waitForDebugAdapterMessage(
3230
name: string,
33-
matches: (message: any) => boolean,
31+
matches: (message: any) => boolean
3432
): Promise<any> {
3533
return await new Promise<any>(res => {
36-
const disposable = vscode.debug.registerDebugAdapterTrackerFactory(
37-
"swift-lldb",
38-
{
39-
createDebugAdapterTracker: function (
40-
session: vscode.DebugSession
41-
): vscode.ProviderResult<vscode.DebugAdapterTracker> {
42-
if (session.name !== name) {
43-
return;
44-
}
45-
return {
46-
onDidSendMessage(message) {
47-
if (matches(message)) {
48-
disposable.dispose();
49-
res(message);
50-
}
51-
},
52-
};
53-
},
54-
}
55-
);
34+
const disposable = vscode.debug.registerDebugAdapterTrackerFactory("swift-lldb", {
35+
createDebugAdapterTracker: function (
36+
session: vscode.DebugSession
37+
): vscode.ProviderResult<vscode.DebugAdapterTracker> {
38+
if (session.name !== name) {
39+
return;
40+
}
41+
return {
42+
onDidSendMessage(message) {
43+
if (matches(message)) {
44+
disposable.dispose();
45+
res(message);
46+
}
47+
},
48+
};
49+
},
50+
});
5651
});
5752
}
5853

0 commit comments

Comments
 (0)