ExtensionContext constructor

ExtensionContext({
  1. List<IInline32>? subscriptions,
  2. Memento? workspaceState,
  3. _Intersection61? globalState,
  4. SecretStorage? secrets,
  5. Uri? extensionUri,
  6. String? extensionPath,
  7. GlobalEnvironmentVariableCollection? environmentVariableCollection,
  8. Uri? storageUri,
  9. String? storagePath,
  10. Uri? globalStorageUri,
  11. String? globalStoragePath,
  12. Uri? logUri,
  13. String? logPath,
  14. ExtensionMode? extensionMode,
  15. Extension? extension,
  16. String asAbsolutePath(
    1. String
    )?,
})

Implementation

factory ExtensionContext({
  _i2.List<_i3.IInline32>? subscriptions,
  _i3.Memento? workspaceState,
  _Intersection61? globalState,
  _i3.SecretStorage? secrets,
  _i3.Uri? extensionUri,
  _i2.String? extensionPath,
  _i3.GlobalEnvironmentVariableCollection? environmentVariableCollection,
  _i3.Uri? storageUri,
  _i2.String? storagePath,
  _i3.Uri? globalStorageUri,
  _i2.String? globalStoragePath,
  _i3.Uri? logUri,
  _i2.String? logPath,
  _i3.ExtensionMode? extensionMode,
  _i3.Extension<_i2.dynamic>? extension,
  _i2.String Function(_i2.String)? asAbsolutePath,
}) =>
    ExtensionContext._(
      subscriptions: subscriptions,
      workspaceState: workspaceState ?? _i6.undefined,
      globalState: globalState ?? _i6.undefined,
      secrets: secrets ?? _i6.undefined,
      extensionUri: extensionUri ?? _i6.undefined,
      extensionPath: extensionPath,
      environmentVariableCollection:
          environmentVariableCollection ?? _i6.undefined,
      storageUri: storageUri ?? _i6.undefined,
      storagePath: storagePath ?? _i6.undefined,
      globalStorageUri: globalStorageUri ?? _i6.undefined,
      globalStoragePath: globalStoragePath,
      logUri: logUri ?? _i6.undefined,
      logPath: logPath,
      extensionMode: extensionMode?.name,
      extension: extension ?? _i6.undefined,
      asAbsolutePath:
          asAbsolutePath == null ? null : _i5.allowInterop(asAbsolutePath),
    );