Skip to content

MarkdownView.replaceScope method

MarkdownView › replaceScope

Unofficial

Replaces the active scope, falling back to the initial scope when null is given.

Signature:

replaceScope(scope: Scope | null): void

Parameters:

ParameterTypeDescription
scopeScope | nullThe scope to set, or null to restore the initial scope.

Returns: void