Skip to content

Commit

Permalink
Refer to TextDocumentFilter for glob format on pattern field (#1269)
Browse files Browse the repository at this point in the history
* Refer to TextDocumentFilter for glob fomrat on pattern field

* nbsp

* rm
  • Loading branch information
connorjclark authored Jul 17, 2023
1 parent 2041784 commit a1c888b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions protocol/src/common/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ import { InlineCompletionClientCapabilities, InlineCompletionOptions, InlineComp
// @ts-ignore: to avoid inlining LocationLink as dynamic import
let __noDynamicImport: LocationLink | undefined;


/**
* A document filter denotes a document by different properties like
* the {@link TextDocument.languageId language}, the {@link Uri.scheme scheme} of
Expand All @@ -150,21 +149,21 @@ export type TextDocumentFilter = {
language: string;
/** A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. */
scheme?: string;
/** A glob pattern, like `*.{ts,js}`. */
/** A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`. */
pattern?: string;
} | {
/** A language id, like `typescript`. */
language?: string;
/** A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. */
scheme: string;
/** A glob pattern, like `*.{ts,js}`. */
/** A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`. */
pattern?: string;
} | {
/** A language id, like `typescript`. */
language?: string;
/** A Uri {@link Uri.scheme scheme}, like `file` or `untitled`. */
scheme?: string;
/** A glob pattern, like `*.{ts,js}`. */
/** A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`. */
pattern: string;
};

Expand Down

0 comments on commit a1c888b

Please sign in to comment.