Oldrich Svec

Results 27 comments of Oldrich Svec

I propose to use service worker api to provide the compiler API: https://github.com/denoland/deno/issues/2676#issuecomment-514059683

I never published an npm package - so if you know how to you are welcome to do it ;)

To me it is a mistake to introduce non-standard features to esm modules. How about if I want to use the unbundled version directly in the browser together with http2?...

Personally, I load css dynamically: ``` export function injectFile(href: string) { return new Promise((resolve, reject) => { const link = document.createElement('link') link.setAttribute("rel", "stylesheet") link.setAttribute("type", "text/css") link.onload = () => resolve()...

I could not find any signs of css imports discussions which probably means they will not arrive in a near future. To me, any solution is better than extending javascript...

I actually use vscode-textmate in monaco in my project. Do you know how to make the bracket coloring work there? EDIT: I made it working by the following call: ```...

> Also, why do VSCode and Monaco use different syntax highlighters? ([TextMate](https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide)/[Monarch](https://microsoft.github.io/monaco-editor/monarch.html)). Which one is better? For historical reasons. Monarch is older, faster, less rich and less accurate. TextMate requires...

I used `monaco-tm` example as given in the FAQ of the monaco-editor documentation. There you have the `loadGrammarWithConfiguration`: https://github.com/bolinfest/monaco-tm/blob/master/src/providers.ts#L200 which has a type of `registry: VSTextmate.Registry`

You probably need to update both vscode-textmate and onigurama to the latest versions.

vscode-textmate v7.0.1 contains release/main.d.ts that contains: ``` export interface IGrammarConfiguration { embeddedLanguages?: IEmbeddedLanguagesMap; tokenTypes?: ITokenTypeMap; balancedBracketSelectors?: string[]; unbalancedBracketSelectors?: string[]; } ```