Merge pull request #1738 from larshp/patch-2

Playground: fix codelens provider example
pull/1756/head
Alexandru Dima 2020-01-06 09:39:06 +01:00 committed by GitHub
commit ea43fa272c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
});
});