yln99517

Results comments of yln99517

Hi, NoLib options the correct one. You can see right answer here #1001

HI , You can refer this sample [glyph margin](https://microsoft.github.io/monaco-editor/playground.html#interacting-with-the-editor-rendering-glyphs-in-the-margin ) -Thanks

Hi, You can use the below snippet. That worked for me. ``` javascript var indexJSValue = `// index.js console.log(value); export function hello() { }`; var lang = 'typescript'; var model...

You can pass 'nolib' option to setcompileroption.

You need to extract required libs from default libs then pass to addExtraLib. It solves the problem.

Hi , Goto [this](https://github.com/Microsoft/TypeScript/tree/master/lib). You can see available libs or default libs. Pack required libs into one file or in a string. Pass the string to [addExtraLib](https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-javascript-defaults). Hope this helps....

@weinengjian , Seems like interface is changed. ``` javascript var snippets = [{ label: 'label' kind: monaco.languages.CompletionItemKind.Snippet, documentation: "some docu", insertText: 'your snippet value' // previously {value: "snippet value"} }]...

Any update on this feature?. or any workarounds other than adding to addExtraLib?

Hi , you need exactly this [AMD Loader](https://github.com/Microsoft/monaco-editor/blob/master/docs/integrate-amd.md)

You can use https://blog.scottlogic.com/2015/01/20/typescript-compiler-api.html reference code