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
jQuery and AngularJS file reference for intellisense #39
Comments
@jonathanhotono Here is an example: https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-javascript-defaults You can of course fetch the jquery.d.ts through an xhr and then set the contents, etc. fyi @jrieken |
I do understand correctly, that adding code to the language Services on the Monaco object will make 'things' from the referenced file available in all instances of the Editor? If yes, is it possbile to reference differnent code for different editor instances? Thanks for any suggestions |
No the languages are not scoped per editor instance |
Thanks for the confirmation. And there is also no other possibility to reference external code per editor instance? |
Thanks @alexandrudima & @jrieken |
You pass anything the TypeScript compiler given its current options accepts. So, with |
@jrieken Should we improve the sample at https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-javascript-defaults with a better description and/or showing how to bring in something more realistic like jquery.d.ts instead of the |
@windischb You declaration is incorrect - you must enclose the module name in quotes like |
I think i found my Problem! It works now, thanks! |
Hi team,
How do I add file map reference for jQuery or angularJS file reference for typescript/javascript?
Also is it possible to include another JS/TS file link reference so VS can learn the variables/objects within the other files and provide it on the intellisense?
Thanks
Jonathan
The text was updated successfully, but these errors were encountered: