Interface DocumentContext

Information about the of the document that is being processed. It may reference the current embedded language section, otherwise it refers to the entire document.

GuardClauseProvider

interface DocumentContext {
    document: TextDocument;
    embeddedRange?: Range;
    languageId: string;
    originalLanguageId?: string;
}

Hierarchy (View Summary)

Properties

document: TextDocument

The document that is being processed.

embeddedRange?: Range

If set, the context refers to an embedded language section. This is the range of the embedded section in the document.

languageId: string

The language identifier of the document or the embedded language section.

originalLanguageId?: string

If set, the context refers to an embedded language section. This is the language identifier of the embedded section. Will only be set if embeddedRange is set.