mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Merge pull request #1738 from larshp/patch-2
Playground: fix codelens provider example
This commit is contained in:
commit
ea43fa272c
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue