File tree Expand file tree Collapse file tree 2 files changed +37
-18
lines changed
server/src/util/__tests__ Expand file tree Collapse file tree 2 files changed +37
-18
lines changed Original file line number Diff line number Diff line change @@ -86,16 +86,30 @@ exports[`getSourcedUris returns a set of sourced files (but ignores some unhandl
86
86
},
87
87
" uri" : null ,
88
88
} ,
89
+ {
90
+ " error" : null ,
91
+ " range" : {
92
+ " end" : {
93
+ " character" : 39 ,
94
+ " line" : 15 ,
95
+ },
96
+ " start" : {
97
+ " character" : 6 ,
98
+ " line" : 15 ,
99
+ },
100
+ },
101
+ " uri" : " file:///Users/bash/issue-926.sh" ,
102
+ } ,
89
103
{
90
104
" error" : " non-constant source not supported" ,
91
105
" range" : {
92
106
" end" : {
93
107
" character" : 66 ,
94
- " line" : 16 ,
108
+ " line" : 18 ,
95
109
},
96
110
" start" : {
97
111
" character" : 49 ,
98
- " line" : 16 ,
112
+ " line" : 18 ,
99
113
},
100
114
},
101
115
" uri" : null ,
@@ -105,11 +119,11 @@ exports[`getSourcedUris returns a set of sourced files (but ignores some unhandl
105
119
" range" : {
106
120
" end" : {
107
121
" character" : 66 ,
108
- " line" : 18 ,
122
+ " line" : 20 ,
109
123
},
110
124
" start" : {
111
125
" character" : 6 ,
112
- " line" : 18 ,
126
+ " line" : 20 ,
113
127
},
114
128
},
115
129
" uri" : null ,
@@ -119,11 +133,11 @@ exports[`getSourcedUris returns a set of sourced files (but ignores some unhandl
119
133
" range" : {
120
134
" end" : {
121
135
" character" : 30 ,
122
- " line" : 25 ,
136
+ " line" : 27 ,
123
137
},
124
138
" start" : {
125
139
" character" : 8 ,
126
- " line" : 25 ,
140
+ " line" : 27 ,
127
141
},
128
142
},
129
143
" uri" : " file:///Users/bash/issue206.sh" ,
@@ -133,53 +147,53 @@ exports[`getSourcedUris returns a set of sourced files (but ignores some unhandl
133
147
" range" : {
134
148
" end" : {
135
149
" character" : 22 ,
136
- " line" : 47 ,
150
+ " line" : 49 ,
137
151
},
138
152
" start" : {
139
153
" character" : 8 ,
140
- " line" : 47 ,
154
+ " line" : 49 ,
141
155
},
142
156
},
143
157
" uri" : null ,
144
158
} ,
145
159
{
146
- " error" : " non-constant source not supported " ,
160
+ " error" : null ,
147
161
" range" : {
148
162
" end" : {
149
163
" character" : 39 ,
150
- " line" : 59 ,
164
+ " line" : 61 ,
151
165
},
152
166
" start" : {
153
167
" character" : 8 ,
154
- " line" : 59 ,
168
+ " line" : 61 ,
155
169
},
156
170
},
157
- " uri" : null ,
171
+ " uri" : " file:///Users/bash/staging.sh " ,
158
172
} ,
159
173
{
160
- " error" : " non-constant source not supported " ,
174
+ " error" : null ,
161
175
" range" : {
162
176
" end" : {
163
177
" character" : 42 ,
164
- " line" : 62 ,
178
+ " line" : 64 ,
165
179
},
166
180
" start" : {
167
181
" character" : 8 ,
168
- " line" : 62 ,
182
+ " line" : 64 ,
169
183
},
170
184
},
171
- " uri" : null ,
185
+ " uri" : " file:///Users/bash/production.sh " ,
172
186
} ,
173
187
{
174
188
" error" : " non-constant source not supported" ,
175
189
" range" : {
176
190
" end" : {
177
191
" character" : 67 ,
178
- " line" : 89 ,
192
+ " line" : 91 ,
179
193
},
180
194
" start" : {
181
195
" character" : 10 ,
182
- " line" : 89 ,
196
+ " line" : 91 ,
183
197
},
184
198
},
185
199
" uri" : null ,
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ describe('getSourcedUris', () => {
46
46
47
47
source "$LIBPATH" # dynamic imports not supported
48
48
49
+ source "$SCRIPT_DIR"/issue-926.sh # remove leading dynamic segment
50
+
49
51
# conditional is currently not supported
50
52
if [[ -z $__COMPLETION_LIB_LOADED ]]; then source "$LIBPATH" ; fi
51
53
@@ -144,7 +146,10 @@ describe('getSourcedUris', () => {
144
146
"file:///Users/bash/x",
145
147
"file:///Users/scripts/release-client.sh",
146
148
"file:///Users/bash-user/myscript",
149
+ "file:///Users/bash/issue-926.sh",
147
150
"file:///Users/bash/issue206.sh",
151
+ "file:///Users/bash/staging.sh",
152
+ "file:///Users/bash/production.sh",
148
153
}
149
154
` )
150
155
You can’t perform that action at this time.
0 commit comments