Lyu, Wei-Da

Results 291 comments of Lyu, Wei-Da

Prettier will load config files outside your workspace and files that aren't at the root level, You may need to check the directory tree. If there isn't, we'll need a...

If your file is at `c:/some/repo/path/to/file.svelte` and your repo is at `c:/some/repo`.`c:/some/repo/path/to/.prettierrc` and `c:/some/.prettierrc` are both valid config file paths.

Yes. We also take editorconfig into account, and it also takes priority over vscode config. The way it takes priority isn't per setting. If there is a config file, all...

If this can stop it, it probably is because it'll only take priority if there is any config in editorconfig that can be translated to prettier. It's handled by Prettier....

The generic function isn't the same. The component type is more complex than a simple function. Because of the extra complexity, the completion probably got wrong. Anyway, this will have...

The reason for this is because of this monster package.json exports: https://github.com/shinokada/svelte-google-materialdesign-icons/blob/8f434623c724c1d57d4ee0e2edd0be6d70e81b88/package.json#L85 It's over 8000 lines. TypeScript spends a ton of time comparing the path of the dts files to...

I am closing this since there is not much we can do. This needs to be fixed in TypeScript. Or the libraries should remove the thousands of lines of export...

I will explain the general problem to you, and you can ask about the details of the part you don't understand. Then, we can discuss what part of the documentation...

I think this is a bug. The problem is here https://github.com/sveltejs/language-tools/blob/3dc6ede879be9f36eda2f023c3c53c55df631e3a/packages/svelte2tsx/src/emitDts.ts#L97 https://github.com/sveltejs/language-tools/blob/3dc6ede879be9f36eda2f023c3c53c55df631e3a/packages/svelte2tsx/src/emitDts.ts#L131 When the tsconfig.json isn't at `process.cwd()`, the path is joined with the directory path of the `tsconfig.json`. We...

Some updates. I am making this the mega thread for project reference support since we didn't support it at all. Leaving some notes here as an update on the progress...