diff --git a/packages/language-service/lib/plugins/vue-document-drop.ts b/packages/language-service/lib/plugins/vue-document-drop.ts index 79fbb2d67b..9233e91859 100644 --- a/packages/language-service/lib/plugins/vue-document-drop.ts +++ b/packages/language-service/lib/plugins/vue-document-drop.ts @@ -111,7 +111,7 @@ export function create( }); if (sfc.script) { - const edit = createAddComponentToOptionEdit(ts, sfc.script.ast, newName); + const edit = createAddComponentToOptionEdit(ts, sfc, sfc.script.ast, newName); if (edit) { additionalEdit.changes[embeddedDocumentUriStr].push({ range: {