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

Semantic tokens provider example #2103

Merged
merged 3 commits into from
Sep 19, 2020

Conversation

KapitanOczywisty
Copy link
Contributor

This is simplified version of VSCode Semantic tokens sample adapted for monaco editor.

});

// currently there isn't builtin token handling
editor._themeService._knownThemes.forEach(function (theme) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if the samples should be suggesting to people to use internals. In any case, this code should at least reference #1833 in a comment so that it gets more publicity and hopefully gets fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is a bit ify, but if there is not other way... People are searching for this and there isn't complete example to try and play with.

Link could be useful, but probably comment with detailed explanation would be better.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link could be useful, but probably comment with detailed explanation would be better.

Well, a link is better than no link.

@KapitanOczywisty
Copy link
Contributor Author

@alexdima since IE11 is no longer supported, can we use ES6 in playground examples?

@alexdima alexdima added this to the August 2020 milestone Sep 17, 2020
@alexdima
Copy link
Member

Thank you!

@alexdima alexdima merged commit a5f5052 into microsoft:master Sep 19, 2020
@KapitanOczywisty
Copy link
Contributor Author

microsoft/vscode@6f59481 There is nothing more permanent than a temporary solution ;)

@rcjsuen
Copy link
Contributor

rcjsuen commented Sep 19, 2020

@alexdima When will that change go live? The example on the website doesn't show me any colours. I'm using Firefox on Windows 10.

@KapitanOczywisty
Copy link
Contributor Author

@rcjsuen From what I can see he pushed gh-pages, but forgot to actually build website. @alexdima ? 🤔

@rcjsuen
Copy link
Contributor

rcjsuen commented Sep 20, 2020

I will note that having a working example on the website is meaningless without an updated library pushed to npm. 🤔

@alexdima
Copy link
Member

Yes, the plan was to publish a new editor version which would have made the sample to work correctly. But I found #2140 right before publishing so I decided to postpone releasing until that is fixed.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants