-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
update monaco editor to 0.12.x #1681
Changes from all commits
54cf48f
3f554e7
c13482e
27d9313
2ad6d75
b69576d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ branches: | |
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- npm install [email protected] -g | ||
- netsh advfirewall firewall add rule name="SeleniumIn" dir=in action=allow protocol=TCP localport=4444 | ||
- netsh advfirewall firewall add rule name="SeleniumOut" dir=out action=allow protocol=TCP localport=4444 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,7 +209,7 @@ export namespace EditorDecorationStyle { | |
const index = styleSheet.insertRule('.' + selector + '{}', 0); | ||
const rules = styleSheet.cssRules || styleSheet.rules; | ||
const rule = rules.item(index); | ||
if (rule.type === CSSRule.STYLE_RULE) { | ||
if (rule && rule.type === CSSRule.STYLE_RULE) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is your There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, and please, ignore me; I was curious. Thanks! |
||
const styleRule = rule as CSSStyleRule; | ||
styleProvider(styleRule.style); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to take a look at #1542 and the referenced microsoft/monaco-editor#18. Basically, this means we no longer need to copy all the monaco files separately, but bundle it into our main artefact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but it is out of the scope of this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How out of scope? This is only available on Monaco 0.11+ and we should do it upon the upgrade. I'm aware that this is not a blocker, but this is not out of scope either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do it with another PR, there are things to consider before switching from AMD to ESM, like the build speed. We had bad experience in monaco-languageclient. We want to consider it separately without blocking usage of the latest Monaco.