File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -166,15 +166,15 @@ class RenameSymbolProvider {
166166 if ( codeData . isClassDef && codeData . classInfo && codeData . classInfo . declaration ) {
167167 const lineNumber = codeData . classInfo . declaration . start . line
168168 const declaration = getTextOnLine ( textDocument , lineNumber )
169- if ( declaration . split ( / \s + / ) . includes ( expression . fullExpression ) ) {
169+ if ( declaration . split ( / \s + / ) . includes ( expression . unqualifiedTarget ) ) {
170170 const range : Range = {
171171 start : {
172172 line : lineNumber ,
173173 character : 9
174174 } ,
175175 end : {
176176 line : lineNumber ,
177- character : declaration . length - 1
177+ character : 9 + expression . unqualifiedTarget . length
178178 }
179179 }
180180 const newEdit : TextEdit = {
@@ -199,8 +199,7 @@ class RenameSymbolProvider {
199199 }
200200 }
201201
202- const edit : WorkspaceEdit = workspaceEdit
203- return edit
202+ return workspaceEdit
204203 }
205204}
206205
You can’t perform that action at this time.
0 commit comments