File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
packages/cursorless-vscode-e2e/src/suite Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
<div>hello</div>
2
2
---
3
3
4
- [#1 .1 Content] =
5
- [#1 .1 Removal] = 0:0-0:5
4
+ [#.1 Content] =
5
+ [#.1 Removal] = 0:0-0:5
6
6
0| <div>hello</div>
7
7
>-----<
8
8
9
- [#1 .1 Insertion delimiter] = " "
9
+ [#.1 Insertion delimiter] = " "
10
10
11
- [#1 .2 Content] =
12
- [#1 .2 Removal] = 0:10-0:16
11
+ [#.2 Content] =
12
+ [#.2 Removal] = 0:10-0:16
13
13
0| <div>hello</div>
14
14
>------<
15
15
16
- [#1 .2 Insertion delimiter] = " "
16
+ [#.2 Insertion delimiter] = " "
17
17
18
18
[Domain] = 0:0-0:16
19
19
0| <div>hello</div>
Original file line number Diff line number Diff line change @@ -33,11 +33,14 @@ export function serializeHeader({
33
33
} : SerializeHeaderArg ) : string {
34
34
const parts : string [ ] = [ ] ;
35
35
if ( scopeNumber != null || targetNumber != null ) {
36
+ const numberParts : string [ ] = [ "#" ] ;
37
+ if ( scopeNumber != null ) {
38
+ numberParts . push ( scopeNumber . toString ( ) ) ;
39
+ }
36
40
if ( targetNumber != null ) {
37
- parts . push ( `#${ scopeNumber ?? 1 } .${ targetNumber } ` ) ;
38
- } else {
39
- parts . push ( `#${ scopeNumber } ` ) ;
41
+ numberParts . push ( `.${ targetNumber } ` ) ;
40
42
}
43
+ parts . push ( numberParts . join ( "" ) ) ;
41
44
}
42
45
43
46
if ( prefix != null ) {
You can’t perform that action at this time.
0 commit comments