You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried restarting VS Code or running Vetur: Restart VLS
Info
Platform: Win
Vetur version: 0.31.1
VS Code version: 1.15.1
Problem
<scriptlang="ts">importVuefrom"vue"declareconst $vvvvv:anydeclareconst vvvvv: { $ppp:any }type$ttttt=any// here auto completing will change this to `$$vvvvv`$vv// here auto completing will change this to `vvvvv.$$ppp`// but when you type through `vvvvv.$` and trigger auto complete, it will change to `vvvvv.$ppp`vvvvv.$// here it will change to `$$ttttt`const aa:$ttexportdefaultVue.extend({ data() {return { $vvvvv } }})</script>
<template>
<div>{{ $vv }}</div> <!-- same with here -->
</template>
Changing the line below to (entry.replacementSpan && convertRange(scriptDoc, entry.replacementSpan)) ?? (completions.optionalReplacementSpan && convertRange(scriptDoc, completions.optionalReplacementSpan)) fixed this.
But it will change the behavior when it's like $tt|aa (| is the cursor). (it changes the result from $tttttaa to $ttttt)
Another way I found is to add a wordPattern language configuration. This would let vscode determine what is a word. I tried it on my fork jasonlyu123@38de5b1. It's related to the maybe related link you provide.
Vetur: Restart VLS
Info
Problem
It works correctly inside a normal
.ts
file.Reproducible Case
Just copy the script above to https://github.com/octref/veturpack.
The text was updated successfully, but these errors were encountered: