Typing lang="ts" every time when start writing a new SFC is very annoying. This PR adds completion for that.
Before
After
Improvements
Removed !DOCTYPE and Custom Blocks
Add script lang="ts" and script setup lang="ts"
Notes
The description of script lang="ts" is the same as script, and the description of script setup lang="ts" is the same as script setup. I am not sure how to update this.
Exact matching is used in this PR. I don't know if a looser matching method should be used.
Should the order of the completion items be changed?
Typing
lang="ts"
every time when start writing a new SFC is very annoying. This PR adds completion for that.Improvements
!DOCTYPE
andCustom Blocks
script lang="ts"
andscript setup lang="ts"
Notes
script lang="ts"
is the same asscript
, and the description ofscript setup lang="ts"
is the same asscript setup
. I am not sure how to update this.