Skip to content

Commit

Permalink
Playground: fix codelens provider example
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp authored Dec 29, 2019
1 parent 2b259d7 commit 207f8be
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var commandId = editor.addCommand(0, function() {

monaco.languages.registerCodeLensProvider('json', {
provideCodeLenses: function(model, token) {
return [
return {lenses: [
{
range: {
startLineNumber: 1,
Expand All @@ -25,9 +25,9 @@ monaco.languages.registerCodeLensProvider('json', {
title: "First Line"
}
}
];
]};
},
resolveCodeLens: function(model, codeLens, token) {
return codeLens;
}
});
});

0 comments on commit 207f8be

Please sign in to comment.