Lyu, Wei-Da
Lyu, Wei-Da
The auto-indent in an inline event handler is also an upstream VSCode issue. The strategy is to check previous lines to see if the indentation rule applies. But it won't...
If you are interested in understanding how it works. You can read this [docs on indentation config](https://code.visualstudio.com/api/language-extensions/language-configuration-guide#indentation-rules). And you can find the implementation here: https://github.com/microsoft/vscode/blob/main/src/vs/editor/contrib/indentation/browser/indentation.ts and https://github.com/microsoft/vscode/blob/main/src/vs/editor/common/languages/autoIndent.ts I am not...
This is primarily a duplicate of https://github.com/sveltejs/language-tools/issues/339 although that one is specific about template preprocess, the limitation we have still applied. The type check step doesn't use the preprocess config....
The main problem is the preprocess will transpile typescript to javascript so that we can no longer type check. It somehow need a way to only preprocess the markup.
This won't happen in the new transformation, which would be default soon. Given it's an edge case and it doesn't affect type-check I am hesitant to fix it now. See...
The problem is not the docs missing when exporting with `context=module`. It's because the Svelte language server doesn't support resolving svelte modules without extension. So the '$lib' won't be resolved...
The "cannot resolve '.svelte'" error can be solved when you have a `/// ` on the top of your js file. Or a `types: [ "svelte" ]` in your tsconfig....
Can you follow this [doc](https://github.com/microsoft/TypeScript/wiki/Getting-logs-from-TS-Server-in-VS-Code) to get more verbose logging for the typescript server? Didn't see many useful messages in the log you provided and I can't reproduce it.
Looks like it's the Imba extension that is conflicting with our typescript plugin. I will look into if there's anything we can do on our side.
Their typescript plugin use class to patch the `projectService.host` of tsserver. But the original object is functional. Adding a [Function.prototype.bind](https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) here can fix it. https://github.com/sveltejs/language-tools/blob/b87ea2e41c3b7b3fd83be006da588c8992db5a38/packages/typescript-plugin/src/svelte-snapshots.ts#L281 But I am not sure...