From 16c37a4bca2934b27873fe536464d24593887d63 Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Wed, 24 Mar 2021 10:32:27 +0100 Subject: [PATCH] Exposed `_preview` editor from references widget. With the new internal API, one can have better typing when customizing the peek editor from `monaco`. Signed-off-by: Akos Kitta --- packages/monaco/src/typings/monaco/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/monaco/src/typings/monaco/index.d.ts b/packages/monaco/src/typings/monaco/index.d.ts index 7428bcaae32ad..9754aad438bc2 100644 --- a/packages/monaco/src/typings/monaco/index.d.ts +++ b/packages/monaco/src/typings/monaco/index.d.ts @@ -987,7 +987,8 @@ declare module monaco.referenceSearch { focusOnReferenceTree(): void; focusOnPreviewEditor(): void; isPreviewEditorFocused(): boolean; - _tree: ReferenceTree + _tree: ReferenceTree; + _preview: ICodeEditor; } // it's used as return value for referenceWidget._tree