alias LSProtocol::TextDocumentFilter

Overview

A document filter denotes a document by different properties like the TextDocument#languageId, the Uri#scheme of its resource, or a glob-pattern that is applied to the TextDocument#fileName.

Glob patterns can have the following syntax:

@sample A language filter that applies to typescript files on disk: { language: 'typescript', scheme: 'file' } @sample A language filter that applies to all package.json paths: { language: 'json', pattern: '**package.json' }

@since 3.17.0

Alias Definition

LSProtocol::TextDocumentFilterLanguage | LSProtocol::TextDocumentFilterPattern | LSProtocol::TextDocumentFilterScheme

Defined in:

lsprotocol/types.cr