From 207f8be3f09157f34c9bd0bddeb064160a328109 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Sun, 29 Dec 2019 11:56:45 +0100 Subject: [PATCH] Playground: fix codelens provider example --- .../codelens-provider-example/sample.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/playground/new-samples/extending-language-services/codelens-provider-example/sample.js b/website/playground/new-samples/extending-language-services/codelens-provider-example/sample.js index 48170818..5c176a77 100644 --- a/website/playground/new-samples/extending-language-services/codelens-provider-example/sample.js +++ b/website/playground/new-samples/extending-language-services/codelens-provider-example/sample.js @@ -11,7 +11,7 @@ var commandId = editor.addCommand(0, function() { monaco.languages.registerCodeLensProvider('json', { provideCodeLenses: function(model, token) { - return [ + return {lenses: [ { range: { startLineNumber: 1, @@ -25,9 +25,9 @@ monaco.languages.registerCodeLensProvider('json', { title: "First Line" } } - ]; + ]}; }, resolveCodeLens: function(model, codeLens, token) { return codeLens; } -}); \ No newline at end of file +});