Skip to content

Commit

Permalink
Await config updates
Browse files Browse the repository at this point in the history
Co-authored-by: Joey Robichaud <joseph.robichaud@microsoft.com>
  • Loading branch information
333fred and JoeRobich authored Mar 29, 2022
1 parent 7295a33 commit 891c3e2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/integrationTests/inlayHints.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ suite(`Inlay Hints ${testAssetWorkspace.description}`, function () {
}

const editorConfig = vscode.workspace.getConfiguration('editor');
editorConfig.update('inlayHints.enabled', true);
await editorConfig.update('inlayHints.enabled', true);

const csharpConfig = vscode.workspace.getConfiguration('csharp');
csharpConfig.update('inlayHints.parameters.enabled', true);
csharpConfig.update('inlayHints.parameters.forLiteralParameters', true);
csharpConfig.update('inlayHints.parameters.forObjectCreationParameters', true);
csharpConfig.update('inlayHints.parameters.forIndexerParameters', true);
csharpConfig.update('inlayHints.parameters.forOtherParameters', true);
csharpConfig.update('inlayHints.parameters.suppressForParametersThatDifferOnlyBySuffix', true);
csharpConfig.update('inlayHints.parameters.suppressForParametersThatMatchMethodIntent', true);
csharpConfig.update('inlayHints.parameters.suppressForParametersThatMatchArgumentName', true);
csharpConfig.update('inlayHints.types.enabled', true);
csharpConfig.update('inlayHints.types.forImplicitVariableTypes', true);
csharpConfig.update('inlayHints.types.forLambdaParameterTypes', true);
csharpConfig.update('inlayHints.types.forImplicitObjectCreation', true);
await csharpConfig.update('inlayHints.parameters.enabled', true);
await csharpConfig.update('inlayHints.parameters.forLiteralParameters', true);
await csharpConfig.update('inlayHints.parameters.forObjectCreationParameters', true);
await csharpConfig.update('inlayHints.parameters.forIndexerParameters', true);
await csharpConfig.update('inlayHints.parameters.forOtherParameters', true);
await csharpConfig.update('inlayHints.parameters.suppressForParametersThatDifferOnlyBySuffix', true);
await csharpConfig.update('inlayHints.parameters.suppressForParametersThatMatchMethodIntent', true);
await csharpConfig.update('inlayHints.parameters.suppressForParametersThatMatchArgumentName', true);
await csharpConfig.update('inlayHints.types.enabled', true);
await csharpConfig.update('inlayHints.types.forImplicitVariableTypes', true);
await csharpConfig.update('inlayHints.types.forLambdaParameterTypes', true);
await csharpConfig.update('inlayHints.types.forImplicitObjectCreation', true);

await restartOmniSharpServer();
const activation = await activateCSharpExtension();
Expand Down

0 comments on commit 891c3e2

Please sign in to comment.