mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
feat: add rename symbol within <script> tags
This commit is contained in:
@@ -501,9 +501,10 @@ export function startServer(connection: Connection, runtime: RuntimeEnvironment)
|
||||
const position: Position = params.position;
|
||||
|
||||
if (document) {
|
||||
const htmlMode = languageModes.getMode('html');
|
||||
if (htmlMode && htmlMode.doRename) {
|
||||
return htmlMode.doRename(document, position, params.newName);
|
||||
const mode = languageModes.getModeAtPosition(document, params.position);
|
||||
|
||||
if (mode && mode.doRename) {
|
||||
return mode.doRename(document, position, params.newName);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user