Lyu, Wei-Da

Results 270 comments of Lyu, Wei-Da

This is the intended behaviour according to https://github.com/microsoft/TypeScript/issues/44298. If your target is set to "ES2022" onward and didn't turn off `useDefineForClassFields`. TypeScript will transpile it into a javascript field, resulting...

Right, I forgot about https://github.com/sveltejs/language-tools/issues/1976. This is because we force ESNext. You can explicitly set `"useDefineForClassFields": false` until we fix #1976, which will probably be in the future major release....

> https://www.typescriptlang.org/play?useDefineForClassFields=true&target=9&jsx=0#code/KYDwDg9gTgLgBAE2AMwIYFcA28DGnUDOBcAYhBHAN4BQcdcYUAlgG6ozBxTCoIQB2mAJ5wYqAObEAvHAA8ACQAqAWQAyAZWCZgOGAFFtAW2D8YAPhgALJgQB0yaIdsBHdMChDN23dAAUAcgBtflRjKTFJAF1-AEoAbmpaehwBAhgodB8oX0ZWdk5uXgFhOAcoQwAuOCU1MnKDYGNTGKoAX2pWoA The code sample is transformed into class fields in this typescript playground. ```ts export default class Foo { form; tags = this.form.querySelector('[name=tags]'); constructor(form) { this.form = form; }...

Changing the tag to enhancement instead of bug because it is not a typescript language service feature, which we rely upon, but a vscode typescript extension feature. We'll have to...

Maybe it's related to https://github.com/rollup/rollup/issues/4439. Can you check if your path has a different casing between the terminal and the file system?

I am leaning toward only having `in:`, `out:`, `transition:` and even `use:` here. That would also benefit people with custom transition/animation/action. And if we want to have a complete list....

Ah. Right. If there is only the directive keyword. We can't rely on `dataProvider`. vscode-html-language-service would insert `=""` after that. We need to do it on our own instead. Like...

`Function` is not a type for a function. It's more of the base type for the object side of the function. Something like `call`, `apply` and `name`. You can assign...

Alternatively, You can create a node script that: 1. Spwan an [child process](https://nodejs.org/api/child_process.html#child_processspawncommand-args-options) with the `stdio` option set to `'inherit'` for svelte-check 2. listen to `'data'` event of `ChildProcess.stdio` 3....

The duplication seems to be because TypeScript 5.3+ fixes some issue path completion for `rootDirs`. The path completion now shows the files and directories inside `.svelte-kit/types`. But I only see...