@@ -195,7 +195,7 @@ function addNetSuiteDependencyToActiveFile(editor) {
195
195
} ) ;
196
196
}
197
197
198
- function addDependency ( editor , pathText , paramText ) {
198
+ async function addDependency ( editor , pathText , paramText ) {
199
199
let docContent = editor . document . getText ( ) ;
200
200
let coords = codeChangeHelper . getCoords ( docContent ) ;
201
201
let oldParamsString = docContent . substring ( coords . depParam . range [ 0 ] , coords . depParam . range [ 1 ] ) ;
@@ -205,13 +205,13 @@ function addDependency(editor, pathText, paramText) {
205
205
coords . depPath ? docContent . substring ( coords . depPath . range [ 0 ] , coords . depPath . range [ 1 ] ) : null ) ;
206
206
207
207
if ( coords . depPath ) {
208
- codeChangeHelper . updateDocument ( editor , coords . depParam . start . row - 1 , coords . depParam . start . col ,
208
+ await codeChangeHelper . updateDocument ( editor , coords . depParam . start . row - 1 , coords . depParam . start . col ,
209
209
coords . depParam . end . row - 1 , coords . depParam . end . col , newParamsString ) ;
210
210
211
- codeChangeHelper . updateDocument ( editor , coords . depPath . start . row - 1 , coords . depPath . start . col ,
211
+ await codeChangeHelper . updateDocument ( editor , coords . depPath . start . row - 1 , coords . depPath . start . col ,
212
212
coords . depPath . end . row - 1 , coords . depPath . end . col , newPathArrayString ) ;
213
213
} else { // Path array not defined
214
- codeChangeHelper . updateDocument ( editor , coords . depParam . start . row - 1 , coords . depParam . start . col ,
214
+ await codeChangeHelper . updateDocument ( editor , coords . depParam . start . row - 1 , coords . depParam . start . col ,
215
215
coords . depParam . end . row - 1 , coords . depParam . end . col , newPathArrayString + ', ' + newParamsString ) ;
216
216
}
217
217
}
@@ -229,4 +229,4 @@ exports.uploadFileToNetSuite = uploadFileToNetSuite;
229
229
exports . deleteFileInNetSuite = deleteFileInNetSuite ;
230
230
exports . addCustomDependencyToActiveFile = addCustomDependencyToActiveFile ;
231
231
exports . addNetSuiteDependencyToActiveFile = addNetSuiteDependencyToActiveFile ;
232
- exports . getRestletVersion = getRestletVersion ;
232
+ exports . getRestletVersion = getRestletVersion ;
0 commit comments