monaco-languageclient
monaco-languageclient copied to clipboard
app playground: typescript multifile imports and node_modules support
Hi,
When using monaco-editor typescript worker, if you have packages put in the node_modules folder, the typescript worker is capable of resolving imports and showing related completion (https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAKjgQwM5wO4jgMyhbAIg2ADsATEYAG2oFoBja4AU1JkIChOsA6IA, this is how it works underneath, it automatically pull the packages in node_modules and then monaco worker do the rest). I cannot seem to reproduce the same behavior when using the app playground worker: https://typefox.github.io/monaco-languageclient/ghp_appPlayground.html (you have to copy paste folders in node_modules).
Other thing, not sure if it's a regression or not but I seem to remember that if you had two files: a.ts:
export function foo() { return 42 }
If in b.ts you wrote
foo()
you could hover and it would suggest to create the import to a.ts automatically but I can't reproduce anymore in: https://typefox.github.io/monaco-languageclient/ghp_appPlayground.html