-
-
Notifications
You must be signed in to change notification settings - Fork 465
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
A bit related to #2285 but bigger scope
At #VueAmsterdam2023 the idea came up to make it possible to deprecate all the things like a whole component, named slots, emitters and so on via Volar so it will be displayed as strikethrough in VSCode (and maybe other IDEs)
So for example things like that:
<script setup lang="ts">
import MyDeprecatedComponent from '@/components/MyDeprecatedComponent.vue'
</script>
<template lang="pug">
MyDeprecatedComponent
//- ^ ~~~~~~~~~~~~~ ^
MyDeprecatedComponent
template(#header="{ deprecatedItem, nonDeprecated }")
//- ^~~~~^ ^~~~~~~~~~~~~^
</template>
It might be that we need to add some new language features to vue/vue-macros to support this
e.g.
defineOptions({
name: 'MyDeprecatedComponent',
deprecated: 'Reason...',
})
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request