Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[regression] CodeLensProvider without the resolver function does not work #576

Closed
akosyakov opened this issue Sep 3, 2017 · 0 comments
Closed
Labels
bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@akosyakov
Copy link

monaco.languages.registerCodeLensProvider("json", {
    provideCodeLenses: function(model, token) {
        return [
            {
                range: {
                    startLineNumber: 1,
                    startColumn: 0,
                    endLineNumber: 1,
                    endColumn: 10
                },
                command: {
                    id: "command.id",
                    title: "command title"
                }
            }
        ]
    }
});

monaco.editor.create(document.getElementById("container"), {
	value: "{ \"key\": \"value\" }",
	language: "json",
    glyphMargin: true
});
@alexdima alexdima added this to the On Deck milestone Nov 13, 2017
@alexdima alexdima modified the milestones: On Deck, February 2018 Feb 28, 2018
@alexdima alexdima added the bug Issue identified by VS Code Team member as probable bug label Mar 13, 2018
@alexdima alexdima modified the milestones: February 2018, On Deck Mar 13, 2018
rebornix added a commit to microsoft/vscode that referenced this issue May 3, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants