Skip to content

Commit 1f940ad

Browse files
committed
refactor(typescript-plugin): remove outdated self referential definition
1 parent 145ee73 commit 1f940ad

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

packages/typescript-plugin/lib/common.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -273,26 +273,6 @@ export function postprocessLanguageService<T>(
273273
}
274274

275275
if (!result?.definitions?.length) {
276-
const { template } = root.sfc;
277-
if (template) {
278-
const textSpan = {
279-
start: template.start + 1,
280-
length: 'template'.length,
281-
};
282-
if (position >= textSpan.start && position <= textSpan.start + textSpan.length) {
283-
return {
284-
textSpan,
285-
definitions: [{
286-
fileName,
287-
textSpan,
288-
kind: ts.ScriptElementKind.scriptElement,
289-
name: fileName,
290-
containerKind: ts.ScriptElementKind.unknown,
291-
containerName: '',
292-
}],
293-
};
294-
}
295-
}
296276
return;
297277
}
298278

0 commit comments

Comments
 (0)