File tree Expand file tree Collapse file tree 3 files changed +26
-18
lines changed Expand file tree Collapse file tree 3 files changed +26
-18
lines changed Original file line number Diff line number Diff line change @@ -485,11 +485,11 @@ describe('findDeclarationsMatchingWord', () => {
485
485
"location": Object {
486
486
"range": Object {
487
487
"end": Object {
488
- "character": 19 ,
488
+ "character": 25 ,
489
489
"line": 6,
490
490
},
491
491
"start": Object {
492
- "character": 0 ,
492
+ "character": 6 ,
493
493
"line": 6,
494
494
},
495
495
},
@@ -514,11 +514,11 @@ describe('findDeclarationsMatchingWord', () => {
514
514
"location": Object {
515
515
"range": Object {
516
516
"end": Object {
517
- "character": 19 ,
517
+ "character": 25 ,
518
518
"line": 6,
519
519
},
520
520
"start": Object {
521
- "character": 0 ,
521
+ "character": 6 ,
522
522
"line": 6,
523
523
},
524
524
},
@@ -566,11 +566,11 @@ describe('findDeclarationsMatchingWord', () => {
566
566
"location": Object {
567
567
"range": Object {
568
568
"end": Object {
569
- "character": 19 ,
569
+ "character": 25 ,
570
570
"line": 6,
571
571
},
572
572
"start": Object {
573
- "character": 0 ,
573
+ "character": 6 ,
574
574
"line": 6,
575
575
},
576
576
},
@@ -927,11 +927,11 @@ describe('getAllVariables', () => {
927
927
"location": Object {
928
928
"range": Object {
929
929
"end": Object {
930
- "character": 19 ,
930
+ "character": 25 ,
931
931
"line": 6,
932
932
},
933
933
"start": Object {
934
- "character": 0 ,
934
+ "character": 6 ,
935
935
"line": 6,
936
936
},
937
937
},
@@ -944,11 +944,11 @@ describe('getAllVariables', () => {
944
944
"location": Object {
945
945
"range": Object {
946
946
"end": Object {
947
- "character": 16 ,
947
+ "character": 23 ,
948
948
"line": 7,
949
949
},
950
950
"start": Object {
951
- "character": 0 ,
951
+ "character": 7 ,
952
952
"line": 7,
953
953
},
954
954
},
@@ -961,12 +961,12 @@ describe('getAllVariables', () => {
961
961
"location": Object {
962
962
"range": Object {
963
963
"end": Object {
964
- "character": 17 ,
965
- "line": 8 ,
964
+ "character": 19 ,
965
+ "line": 10 ,
966
966
},
967
967
"start": Object {
968
- "character": 0 ,
969
- "line": 8 ,
968
+ "character": 2 ,
969
+ "line": 10 ,
970
970
},
971
971
},
972
972
"uri": "file://${ FIXTURE_FOLDER } extension.inc",
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const FIXTURE_URI = {
21
21
ISSUE101 : `file://${ path . join ( FIXTURE_FOLDER , 'issue101.sh' ) } ` ,
22
22
ISSUE206 : `file://${ path . join ( FIXTURE_FOLDER , 'issue206.sh' ) } ` ,
23
23
MISSING_EXTENSION : `file://${ path . join ( FIXTURE_FOLDER , 'extension' ) } ` ,
24
+ EXTENSION_INC : `file://${ path . join ( FIXTURE_FOLDER , 'extension.inc' ) } ` ,
24
25
MISSING_NODE : `file://${ path . join ( FIXTURE_FOLDER , 'missing-node.sh' ) } ` ,
25
26
OPTIONS : `file://${ path . join ( FIXTURE_FOLDER , 'options.sh' ) } ` ,
26
27
OVERRIDE_SYMBOL : `file://${ path . join ( FIXTURE_FOLDER , 'override-executable-symbol.sh' ) } ` ,
Original file line number Diff line number Diff line change @@ -4,14 +4,21 @@ source ./issue101.sh
4
4
5
5
RED=` tput setaf 1`
6
6
GREEN=` tput setaf 2`
7
- BLUE=` tput setaf 4`
8
- BOLD=` tput bold`
9
- RESET=` tput sgr0`
7
+ local BLUE=` tput setaf 4` # local at the root is still exposed to the global scope
8
+ export BOLD=` tput bold`
9
+
10
+ { # non colors in a group
11
+ RESET=` tput sgr0`
12
+ }
10
13
11
14
extensionFunc () {
12
15
LOCAL_VARIABLE=' local'
13
16
14
17
innerExtensionFunc () {
15
18
echo $LOCAL_VARIABLE
16
19
}
17
- }
20
+ }
21
+
22
+ if [ " ${ENV} " = " prod" ]; then
23
+ RED=" " # Ignored as we do not flowtrace.
24
+ fi
You can’t perform that action at this time.
0 commit comments