Skip to content

Commit

Permalink
Merge pull request #1738 from larshp/patch-2
Browse files Browse the repository at this point in the history
Playground: fix codelens provider example
  • Loading branch information
alexdima committed Jan 6, 2020
2 parents 592f026 + 207f8be commit ea43fa2
Showing 1 changed file with 3 additions and 3 deletions.
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 ea43fa2

Please sign in to comment.