Skip to content

Commit 17ad316

Browse files
authored
Merge pull request microsoft#189171 from microsoft/tyriar/187718
Remove async from suite callbacks
2 parents 67d7cbc + 286ff73 commit 17ad316

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

src/vs/editor/contrib/find/test/browser/findController.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function executeAction(instantiationService: IInstantiationService, editor: ICod
6363
});
6464
}
6565

66-
suite('FindController', async () => {
66+
suite('FindController', () => {
6767
const queryState: { [key: string]: any } = {};
6868
let clipboardState = '';
6969
const serviceCollection = new ServiceCollection();
@@ -495,7 +495,7 @@ suite('FindController', async () => {
495495
});
496496
});
497497

498-
suite('FindController query options persistence', async () => {
498+
suite('FindController query options persistence', () => {
499499
let queryState: { [key: string]: any } = {};
500500
queryState['editor.isRegex'] = false;
501501
queryState['editor.matchCase'] = false;

src/vs/workbench/contrib/search/test/common/extractRange.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ suite('extractRangeFromFilter', () => {
4343
assert.strictEqual(res?.range.startColumn, 20);
4444
});
4545

46-
suite('unless', async function () {
46+
suite('unless', function () {
4747
const testSpecs = [
4848
// alpha-only symbol after unless
4949
{ filter: '/some/path/file.txt@alphasymbol', unless: ['@'], result: undefined },

src/vs/workbench/contrib/terminal/test/browser/xterm/decorationAddon.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ suite('DecorationAddon', () => {
7171
instantiationService.dispose();
7272
});
7373

74-
suite('registerDecoration', async () => {
74+
suite('registerDecoration', () => {
7575
test('should throw when command has no marker', async () => {
7676
throws(() => decorationAddon.registerCommandDecoration({ command: 'cd src', timestamp: Date.now(), hasOutput: () => false } as ITerminalCommand));
7777
});

src/vs/workbench/contrib/terminal/test/browser/xterm/shellIntegrationAddon.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ suite('ShellIntegrationAddon', () => {
3939
capabilities = shellIntegrationAddon.capabilities;
4040
});
4141

42-
suite('cwd detection', async () => {
42+
suite('cwd detection', () => {
4343
test('should activate capability on the cwd sequence (OSC 633 ; P ; Cwd=<cwd> ST)', async () => {
4444
strictEqual(capabilities.has(TerminalCapability.CwdDetection), false);
4545
await writeP(xterm, 'foo');
@@ -70,7 +70,7 @@ suite('ShellIntegrationAddon', () => {
7070
}
7171
});
7272

73-
suite('detect `SetCwd` sequence: `OSC 7; scheme://cwd ST`', async () => {
73+
suite('detect `SetCwd` sequence: `OSC 7; scheme://cwd ST`', () => {
7474
test('should accept well-formatted URLs', async () => {
7575
type TestCase = [title: string, input: string, expected: string];
7676
const cases: TestCase[] = [
@@ -133,7 +133,7 @@ suite('ShellIntegrationAddon', () => {
133133
});
134134
});
135135

136-
suite('command tracking', async () => {
136+
suite('command tracking', () => {
137137
test('should activate capability on the prompt start sequence (OSC 633 ; A ST)', async () => {
138138
strictEqual(capabilities.has(TerminalCapability.CommandDetection), false);
139139
await writeP(xterm, 'foo');
@@ -212,7 +212,7 @@ suite('ShellIntegrationAddon', () => {
212212
mock.verify();
213213
});
214214
});
215-
suite('BufferMarkCapability', async () => {
215+
suite('BufferMarkCapability', () => {
216216
test('SetMark', async () => {
217217
strictEqual(capabilities.has(TerminalCapability.BufferMarkDetection), false);
218218
await writeP(xterm, 'foo');

src/vs/workbench/contrib/terminal/test/common/history.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ suite('Terminal history', () => {
160160
});
161161

162162
if (!isWindows) {
163-
suite('local', async () => {
163+
suite('local', () => {
164164
let originalEnvValues: { HOME: string | undefined };
165165
setup(() => {
166166
originalEnvValues = { HOME: env['HOME'] };
@@ -344,7 +344,7 @@ suite('Terminal history', () => {
344344
instantiationService.dispose();
345345
});
346346

347-
suite('local', async () => {
347+
suite('local', () => {
348348
let originalEnvValues: { HOME: string | undefined; APPDATA: string | undefined };
349349
setup(() => {
350350
originalEnvValues = { HOME: env['HOME'], APPDATA: env['APPDATA'] };

src/vs/workbench/contrib/terminal/test/node/terminalProfiles.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ suite('Workbench - TerminalProfiles', () => {
9292
const expected = [{ profileName: 'Git Bash', path: 'C:\\Program Files\\Git\\bin\\bash.exe', args: [], isAutoDetected: undefined, overrideName: undefined, isDefault: true }];
9393
profilesEqual(profiles, expected);
9494
});
95-
suite('pwsh source detection/fallback', async () => {
95+
suite('pwsh source detection/fallback', () => {
9696
const pwshSourceConfig = ({
9797
profiles: {
9898
windows: {

src/vs/workbench/contrib/terminalContrib/quickFix/test/browser/quickFixAddon.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ suite('QuickFixAddon', () => {
7373
instantiationService.dispose();
7474
});
7575
suite('registerCommandFinishedListener & getMatchActions', () => {
76-
suite('gitSimilarCommand', async () => {
76+
suite('gitSimilarCommand', () => {
7777
const expectedMap = new Map();
7878
const command = `git sttatus`;
7979
let output = `git: 'sttatus' is not a git command. See 'git --help'.
@@ -149,7 +149,7 @@ suite('QuickFixAddon', () => {
149149
});
150150
});
151151
});
152-
suite('gitTwoDashes', async () => {
152+
suite('gitTwoDashes', () => {
153153
const expectedMap = new Map();
154154
const command = `git add . -all`;
155155
const output = 'error: did you mean `--all` (with two dashes)?';

0 commit comments

Comments
 (0)