From b8475d1dc68bfee70c3fbe3e7fc39f6e0003803b Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 30 Apr 2018 18:33:19 +0200 Subject: [PATCH] Improve registerFoldingRangeProvider doc (for #48526) --- src/vs/vscode.d.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index cee7ee04bb245..81bd8ccfcb974 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -6898,9 +6898,13 @@ declare module 'vscode' { /** * Register a folding range provider. * - * Multiple folding can be registered for a language. In that case providers are sorted - * by their [score](#languages.match) and the best-matching provider is used. Failure - * of the selected provider will cause a failure of the whole operation. + * Multiple providers can be registered for a language. In that case providers are asked in + * parallel and the results are merged. + * If multiple folding ranges start at the same position, only the range of the first registered provider is used. + * If a folding range overlaps with an other range that has a smaller position, it is also ignored. + * + * A failing provider (rejected promise or exception) will + * not cause a failure of the whole operation. * * @param selector A selector that defines the documents this provider is applicable to. * @param provider A folding range provider.