-
-
Notifications
You must be signed in to change notification settings - Fork 209
Improve Intellisense Implementation #665
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
Comments
I can't reproduce any of your issues. Errors diagnostics, rename functionality (when done inside the script of Counter.svelte<script lang="ts">
export let count = 0
</script> index.svelte<script lang="ts">
import Counter from "./Counter.svelte";
</script>
<Counter count={5}/>
<Counter count={"7"}/> |
Did you have path alias? That might explain why your language feature only works within the component. |
I see that renaming & completion are functional after checking out #110 and updating I'm still not receiving any errors on invalid assignment types though. Also, there are no errors for nonexistent attributes. (e.g. |
You said these errors occur in the context of About the optional type: Right now it's only required in strict mode, otherwise every prop is marked as optional. We may need to revisit this decision in the future. |
@dummdidumm
// does not show `undefined`
import Counter from "$components/Counter.svelte" // aliased import
export let count: number = 0 // explicit type
// does not show `undefined`
import Counter from "$components/Counter.svelte" // aliased import
export let count = 0 // inferred type
// does not show `undefined`
import Counter from "./components/Counter.svelte" // relative import
export let count: number = 0 // explicit type
// shows `undefined`
import Counter from "./components/Counter.svelte" // relative import
export let count = 0 // inferred type |
There is no official way to give feedback yet, because everything's changing so fast that one's feedback might be obsolete two days later. We will announce when we enter the beta phase where you can give feedback like this. |
Is your feature request related to a problem? Please describe.
Rename Symbol
only works within a single .svelte fileExample:
Counter.svelte
index.svelte
Describe the solution you'd like
Rename Symbol
should update all references within a projectHow important is this feature to you?
Absolutely essential. Not being able to use the code intelligence features of TypeScript + VSCode detracts greatly from the development experience and nullifies critical debugging safeguards which are one of the main reasons to use TypeScript in the first place.
The text was updated successfully, but these errors were encountered: