File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export class DocumentChangeHandler {
35
35
let updateEndPos = new vscode . Position ( endTagPos . line , adjustedStartTagPos + activeChange . rangeLength ) ;
36
36
let updateRange = new vscode . Range ( updateStartPos , updateEndPos ) ;
37
37
this . lastChangePerformed = { range : updateRange , text : activeChange . text } ;
38
- await this . performRename ( e . document , this . lastChangePerformed ) ;
38
+ await this . performRename ( e . document , Object . assign ( this . lastChangePerformed ) ) ;
39
39
} else {
40
40
this . lastChangePerformed = null ;
41
41
}
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ export class XslLexerRenameTag extends XslLexer {
30
30
31
31
32
32
public isStartTagChange ( document : vscode . TextDocument , change : vscode . TextDocumentContentChangeEvent ) {
33
+ if ( ! change ) {
34
+ return - 1 ;
35
+ }
33
36
let renameRange = change . range ;
34
37
let renameChar = renameRange . start . character ;
35
38
let text = change . text ;
You can’t perform that action at this time.
0 commit comments