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