mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
added on end function to end of pipe (#16144)
This commit is contained in:
@@ -363,9 +363,10 @@ function renameVscodeLangpacks() {
|
|||||||
console.log('vscode pack is not in ADS yet: ' + langId);
|
console.log('vscode pack is not in ADS yet: ' + langId);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gulp.src(`i18n/ads-language-pack-${langId}/*.md`)
|
gulp.src(path.join(locADSFolder, '*.md'))
|
||||||
.pipe(vfs.dest(locVSCODEFolder, { overwrite: true }))
|
.pipe(rename(filepath => filepath.dirname = ''))
|
||||||
.end(function () {
|
.pipe(gulp.dest(locVSCODEFolder))
|
||||||
|
.on('end', () => {
|
||||||
rimraf.sync(locADSFolder);
|
rimraf.sync(locADSFolder);
|
||||||
fs.renameSync(locVSCODEFolder, locADSFolder);
|
fs.renameSync(locVSCODEFolder, locADSFolder);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -387,9 +387,10 @@ export function renameVscodeLangpacks(): Promise<void> {
|
|||||||
console.log('vscode pack is not in ADS yet: ' + langId);
|
console.log('vscode pack is not in ADS yet: ' + langId);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gulp.src(`i18n/ads-language-pack-${langId}/*.md`)
|
gulp.src(path.join(locADSFolder, '*.md'))
|
||||||
.pipe(vfs.dest(locVSCODEFolder, {overwrite: true}))
|
.pipe(rename(filepath => filepath.dirname = ''))
|
||||||
.end(function () {
|
.pipe(gulp.dest(locVSCODEFolder))
|
||||||
|
.on('end', () => {
|
||||||
rimraf.sync(locADSFolder);
|
rimraf.sync(locADSFolder);
|
||||||
fs.renameSync(locVSCODEFolder, locADSFolder);
|
fs.renameSync(locVSCODEFolder, locADSFolder);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user