Remove async from suite callbacks

Fixes #187718
This commit is contained in:
Daniel Imms
2023-07-28 07:21:48 -07:00
parent f6a5c0ca02
commit 286ff736be
7 changed files with 13 additions and 13 deletions
@@ -63,7 +63,7 @@ function executeAction(instantiationService: IInstantiationService, editor: ICod
});
}
suite('FindController', async () => {
suite('FindController', () => {
const queryState: { [key: string]: any } = {};
let clipboardState = '';
const serviceCollection = new ServiceCollection();
@@ -495,7 +495,7 @@ suite('FindController', async () => {
});
});
suite('FindController query options persistence', async () => {
suite('FindController query options persistence', () => {
let queryState: { [key: string]: any } = {};
queryState['editor.isRegex'] = false;
queryState['editor.matchCase'] = false;
@@ -43,7 +43,7 @@ suite('extractRangeFromFilter', () => {
assert.strictEqual(res?.range.startColumn, 20);
});
suite('unless', async function () {
suite('unless', function () {
const testSpecs = [
// alpha-only symbol after unless
{ filter: '/some/path/file.txt@alphasymbol', unless: ['@'], result: undefined },
@@ -71,7 +71,7 @@ suite('DecorationAddon', () => {
instantiationService.dispose();
});
suite('registerDecoration', async () => {
suite('registerDecoration', () => {
test('should throw when command has no marker', async () => {
throws(() => decorationAddon.registerCommandDecoration({ command: 'cd src', timestamp: Date.now(), hasOutput: () => false } as ITerminalCommand));
});
@@ -39,7 +39,7 @@ suite('ShellIntegrationAddon', () => {
capabilities = shellIntegrationAddon.capabilities;
});
suite('cwd detection', async () => {
suite('cwd detection', () => {
test('should activate capability on the cwd sequence (OSC 633 ; P ; Cwd=<cwd> ST)', async () => {
strictEqual(capabilities.has(TerminalCapability.CwdDetection), false);
await writeP(xterm, 'foo');
@@ -70,7 +70,7 @@ suite('ShellIntegrationAddon', () => {
}
});
suite('detect `SetCwd` sequence: `OSC 7; scheme://cwd ST`', async () => {
suite('detect `SetCwd` sequence: `OSC 7; scheme://cwd ST`', () => {
test('should accept well-formatted URLs', async () => {
type TestCase = [title: string, input: string, expected: string];
const cases: TestCase[] = [
@@ -133,7 +133,7 @@ suite('ShellIntegrationAddon', () => {
});
});
suite('command tracking', async () => {
suite('command tracking', () => {
test('should activate capability on the prompt start sequence (OSC 633 ; A ST)', async () => {
strictEqual(capabilities.has(TerminalCapability.CommandDetection), false);
await writeP(xterm, 'foo');
@@ -212,7 +212,7 @@ suite('ShellIntegrationAddon', () => {
mock.verify();
});
});
suite('BufferMarkCapability', async () => {
suite('BufferMarkCapability', () => {
test('SetMark', async () => {
strictEqual(capabilities.has(TerminalCapability.BufferMarkDetection), false);
await writeP(xterm, 'foo');
@@ -160,7 +160,7 @@ suite('Terminal history', () => {
});
if (!isWindows) {
suite('local', async () => {
suite('local', () => {
let originalEnvValues: { HOME: string | undefined };
setup(() => {
originalEnvValues = { HOME: env['HOME'] };
@@ -344,7 +344,7 @@ suite('Terminal history', () => {
instantiationService.dispose();
});
suite('local', async () => {
suite('local', () => {
let originalEnvValues: { HOME: string | undefined; APPDATA: string | undefined };
setup(() => {
originalEnvValues = { HOME: env['HOME'], APPDATA: env['APPDATA'] };
@@ -92,7 +92,7 @@ suite('Workbench - TerminalProfiles', () => {
const expected = [{ profileName: 'Git Bash', path: 'C:\\Program Files\\Git\\bin\\bash.exe', args: [], isAutoDetected: undefined, overrideName: undefined, isDefault: true }];
profilesEqual(profiles, expected);
});
suite('pwsh source detection/fallback', async () => {
suite('pwsh source detection/fallback', () => {
const pwshSourceConfig = ({
profiles: {
windows: {
@@ -73,7 +73,7 @@ suite('QuickFixAddon', () => {
instantiationService.dispose();
});
suite('registerCommandFinishedListener & getMatchActions', () => {
suite('gitSimilarCommand', async () => {
suite('gitSimilarCommand', () => {
const expectedMap = new Map();
const command = `git sttatus`;
let output = `git: 'sttatus' is not a git command. See 'git --help'.
@@ -149,7 +149,7 @@ suite('QuickFixAddon', () => {
});
});
});
suite('gitTwoDashes', async () => {
suite('gitTwoDashes', () => {
const expectedMap = new Map();
const command = `git add . -all`;
const output = 'error: did you mean `--all` (with two dashes)?';