setConfig static method

Future<bool> setConfig(
  1. String section,
  2. String key,
  3. dynamic value, {
  4. bool global = true,
  5. int timeoutSeconds = 60,
})

Set configuration value

Implementation

static Future<bool> setConfig(
  String section,
  String key,
  dynamic value, {
  bool global = true,
  int timeoutSeconds = 60,
}) async {
  final vscode = getVSCode();
  return await vscode.workspace.updateConfiguration(
    section,
    key,
    value,
    global: global,
    timeoutSeconds: timeoutSeconds,
  );
}