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
Upgrade @volar/vue-typescript
to v1.0.3
#78
Comments
We currently have these tests, do you think they are sufficient? (there isn't any test for pug templates yet) prettier-plugin-organize-imports/test.js Lines 105 to 168 in 8823ca2
|
Here is an example of one of my Components: Example<script setup lang="ts">
import DButtonFlatIcon from '@/components/buttons/DButtonFlatIcon.vue';
import DButtonCancel from '@/components/buttons/specific/DButtonCancel.vue';
import DDeleteButton from '@/components/buttons/specific/DButtonDelete.vue';
import { useDialogPluginComponent } from 'quasar';
const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } =
useDialogPluginComponent();
const props = withDefaults(
defineProps<{
title: string;
text: string;
context?: any;
}>(),
{
context: null,
},
);
defineEmits(useDialogPluginComponent.emits);
function onConfirm(): void {
onDialogOK(props.context);
}
function onCancel(): void {
onDialogCancel();
}
</script>
<template lang="pug">
QDialog(ref="dialogRef", @hide="onDialogHide")
QCard
QToolbar.bg-negative.text-white
QIcon(name="mdi-cctv", size="md")
QToolbarTitle {{ title }}
DButtonFlatIcon(dense, icon="mdi-close", @click="onCancel")
QCardSection
.text-body2 {{ text }}
QCardActions.justify-between
DButtonCancel(@click="onCancel")
DDeleteButton(@click="onConfirm")
</template> When formatting with the newest version currently the first three lines importing my own components (starting with a capital |
The current peer dependencies config allows you to just upgrade to |
@Shinigami92 did you have use @volar/vue-language-plugin-pug? Which required for pug template instead of |
😱 I totally missed that I need to try the migration @johnsoncodehk You definitely need to write this to something that is discoverable like a readme or docu page But sadly I'm currently not at work and so cannot try it out, will message back in around 2 days when I tried it |
Okay, now checked with the changes made described by https://github.com/johnsoncodehk/volar/blob/master/CHANGELOG.md#100-alpha0-2022916 Still not working 😕 So yes, that's definitely a bug or some docu is still missing |
@Shinigami92 I'm not sure what to do here... I've added a test case for pug templates and they weren't working before, then I added the extra dependencies Since I can't make out the specific issue with prettier-plugin-organize-imports, I'll close this now. If there's still something you think should be solved here and not on Volar's side, you can open another more specific issue, please (: |
Okay, I will forward this to @johnsoncodehk / Volar |
Oh my god, you basically already said whats the bug 😆 prettier-plugin-organize-imports/lib/service-host.js Lines 16 to 26 in da2792a
You are fetching the |
Ah yup I see what you mean... will try to fix it now. |
Hm I just tried but somehow it doesn't fix it :/ I hard-coded the Vue compiler options to include the pug plugin (see PR), however the test is still failing (removing the import as unused). |
Okay lets wait on @johnsoncodehk, hopefully he has an idea |
I note that v1 required Is it possible to support respect project tsconfig setting? |
Yeah I'll do that in the PR just wanted to get it working first. prettier-plugin-organize-imports/lib/service-host.js Lines 14 to 16 in a521e09
|
If I can help further please let me know @johnsoncodehk until then, I now even downgraded Volar VSCode extension as it's unusable for me with
|
@Shinigami92 I have nothing can do 😅, @simonhaenisch please let me know if you get blocked from Volar side somehow. |
@simonhaenisch It's frustrating that I need to pin volar and organize-imports for around a month now and don't getting all volar's new and enhanced stuff |
Sorry, I just haven't had the time yet :/ I understand it's frustrating but I also need to do this in my spare time (I make like $2/month from Github Sponsors 😅). Will try to get it done in the next couple days. |
🙀 I did not sponsor you already monthly? 🙀 |
Thanks a lot ❤️ Also good news, I've actually finished the PR. I just need to review it again tmrw because it's too late now, so I don't trust myself right now 😅 |
@Shinigami92 can you try with |
@volar/vue-typescript
is now onv1.0.3
Please upgrade and test especially Component imports used in Vue setup lang=ts + template lang=pug
https://www.npmjs.com/package/@volar/vue-typescript
/cc @johnsoncodehk
The text was updated successfully, but these errors were encountered: