Playground: fix codelens provider example

pull/1738/head
Lars Hvam 5 years ago committed by GitHub
parent 2b259d70e0
commit 207f8be3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,7 +25,7 @@ monaco.languages.registerCodeLensProvider('json', {
title: "First Line"
}
}
];
]};
},
resolveCodeLens: function(model, codeLens, token) {
return codeLens;

Loading…
Cancel
Save