Skip to content

Commit fbf2766

Browse files
authored
Require all configuration to be done correctly or error out (#204)
1 parent 959cabc commit fbf2766

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/src/test/suite/helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ export let documentEol: string;
1212
export let platformEol: string;
1313

1414
/**
15-
* Activates the vscode.lsp-sample extension
15+
* Activates the kddejong.vscode-cfn-lint extension
1616
*/
1717
export async function activate(docUri: vscode.Uri) {
18-
// The extensionId is `publisher.name` from package.json
1918
const ext = vscode.extensions.getExtension('kddejong.vscode-cfn-lint')!;
2019
await ext.activate();
20+
await vscode.workspace.getConfiguration().update('yaml.validate', false, vscode.ConfigurationTarget.Global);
2121
try {
2222
doc = await vscode.workspace.openTextDocument(docUri);
2323
editor = await vscode.window.showTextDocument(doc);
24-
vscode.workspace.getConfiguration().update('yaml.validate', false, vscode.ConfigurationTarget.Global);
2524
await sleep(4000); // Wait for server activation
2625
} catch (e) {
2726
console.error(e);
27+
throw(e);
2828
}
2929
}
3030

0 commit comments

Comments
 (0)