mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-31 09:10:30 -04:00
Merge from vscode 1fbacccbc900bb59ba8a8f26a4128d48a1c97842
This commit is contained in:
@@ -44,17 +44,16 @@ export class TerminalNativeService implements ITerminalNativeService {
|
||||
// Complete when wait marker file is deleted
|
||||
return new Promise<void>(resolve => {
|
||||
let running = false;
|
||||
const interval = setInterval(() => {
|
||||
const interval = setInterval(async () => {
|
||||
if (!running) {
|
||||
running = true;
|
||||
this._fileService.exists(path).then(exists => {
|
||||
running = false;
|
||||
const exists = await this._fileService.exists(path);
|
||||
running = false;
|
||||
|
||||
if (!exists) {
|
||||
clearInterval(interval);
|
||||
resolve(undefined);
|
||||
}
|
||||
});
|
||||
if (!exists) {
|
||||
clearInterval(interval);
|
||||
resolve(undefined);
|
||||
}
|
||||
}
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user