We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d201546 commit 7d16574Copy full SHA for 7d16574
packages/language-server/src/plugins/typescript/features/RenameProvider.ts
@@ -110,6 +110,11 @@ export class RenameProviderImpl implements RenameProvider {
110
fullDisplayName: string;
111
triggerSpan: { start: number; length: number };
112
} | null {
113
+ // Don't allow renames in error-state, because then there is no generated svelte2tsx-code
114
+ // and rename cannot work
115
+ if (!!tsDoc.parserError) {
116
+ return null;
117
+ }
118
const renameInfo: any = lang.getRenameInfo(tsDoc.filePath, offset, {
119
allowRenameOfImportPath: false,
120
});
0 commit comments