@@ -1741,47 +1741,43 @@ describe('server', () => {
17411741 // These may fail in the future when tree-sitter-bash's parsing gets better
17421742 // or when the rename symbol implementation is improved.
17431743 describe ( 'Edge or not covered cases' , ( ) => {
1744- it ( 'only includes variables typed as variable_name ' , async ( ) => {
1744+ it ( 'does not include some variables typed as word ' , async ( ) => {
17451745 const iRanges = await getFirstChangeRanges ( getRenameRequestResult ( 106 , 4 ) )
17461746 // This should be 6 if all instances within let, postfix, and binary
17471747 // expressions are included.
17481748 expect ( iRanges . length ) . toBe ( 3 )
1749-
1750- const lineRanges = await getFirstChangeRanges ( getRenameRequestResult ( 118 , 10 ) )
1751- // This should be 2 if the declaration of `line` is included.
1752- expect ( lineRanges . length ) . toBe ( 1 )
17531749 } )
17541750
17551751 it ( 'includes incorrect number of symbols for complex scopes and nesting' , async ( ) => {
1756- const varRanges = await getFirstChangeRanges ( getRenameRequestResult ( 124 , 8 ) )
1752+ const varRanges = await getFirstChangeRanges ( getRenameRequestResult ( 118 , 8 ) )
17571753 // This should only be 2 if `$var` from `3` is not included.
17581754 expect ( varRanges . length ) . toBe ( 3 )
17591755
1760- const localFuncRanges = await getFirstChangeRanges ( getRenameRequestResult ( 144 , 5 ) )
1756+ const localFuncRanges = await getFirstChangeRanges ( getRenameRequestResult ( 138 , 5 ) )
17611757 // This should be 2 if the instance of `localFunc` in `callerFunc` is
17621758 // also included.
17631759 expect ( localFuncRanges . length ) . toBe ( 1 )
17641760 } )
17651761
17661762 it ( 'only takes into account subshells created with ( and )' , async ( ) => {
17671763 const pipelinevarRanges = await getFirstChangeRanges (
1768- getRenameRequestResult ( 150 , 7 ) ,
1764+ getRenameRequestResult ( 144 , 7 ) ,
17691765 )
17701766 // This should only be 1 if pipeline subshell scoping is recognized.
17711767 expect ( pipelinevarRanges . length ) . toBe ( 2 )
17721768 } )
17731769
17741770 it ( 'does not take into account sourcing location and scope' , async ( ) => {
1775- const FOOUris = await getChangeUris ( getRenameRequestResult ( 154 , 8 ) )
1771+ const FOOUris = await getChangeUris ( getRenameRequestResult ( 148 , 8 ) )
17761772 // This should only be 1 if sourcing after a symbol does not affect it.
17771773 expect ( FOOUris . length ) . toBe ( 2 )
17781774
1779- const hello_worldUris = await getChangeUris ( getRenameRequestResult ( 160 , 6 ) )
1775+ const hello_worldUris = await getChangeUris ( getRenameRequestResult ( 154 , 6 ) )
17801776 // This should only be 1 if sourcing inside an uncalled function does
17811777 // not affect symbols outside of it.
17821778 expect ( hello_worldUris . length ) . toBe ( 2 )
17831779
1784- const PATH_INPUTUris = await getChangeUris ( getRenameRequestResult ( 163 , 9 ) )
1780+ const PATH_INPUTUris = await getChangeUris ( getRenameRequestResult ( 157 , 9 ) )
17851781 // This should only be 1 if sourcing inside a subshell does not affect
17861782 // symbols outside of it.
17871783 expect ( PATH_INPUTUris . length ) . toBe ( 2 )
0 commit comments