Add HTML rename for #47069

This commit is contained in:
Pine Wu
2019-11-19 11:14:56 -08:00
parent d630afbbb0
commit 07574365c9
5 changed files with 26 additions and 6 deletions

View File

@@ -74,6 +74,10 @@ export function getHTMLMode(htmlLanguageService: HTMLLanguageService, workspace:
}
return null;
},
doRename(document: TextDocument, position: Position, newName: string) {
const htmlDocument = htmlDocuments.get(document);
return htmlLanguageService.doRename(document, position, newName, htmlDocument);
},
onDocumentRemoved(document: TextDocument) {
htmlDocuments.onDocumentRemoved(document);
},