mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 02:02:35 -05:00
Change configure Jupyter server steps from async to sync (#13937)
* change config steps to sync * fix tests * use pathexistsSync * remove pathExistsSync call * address PR comments
This commit is contained in:
@@ -22,13 +22,13 @@ export function getLivyUrl(serverName: string, port: string): string {
|
||||
return this.getKnoxUrl(serverName, port) + '/default/livy/v1/';
|
||||
}
|
||||
|
||||
export async function mkDir(dirPath: string, outputChannel?: vscode.OutputChannel): Promise<void> {
|
||||
if (!await fs.pathExists(dirPath)) {
|
||||
if (outputChannel) {
|
||||
outputChannel.appendLine(localize('mkdirOutputMsg', "... Creating {0}", dirPath));
|
||||
}
|
||||
await fs.ensureDir(dirPath);
|
||||
}
|
||||
export async function ensureDir(dirPath: string, outputChannel?: vscode.OutputChannel): Promise<void> {
|
||||
outputChannel?.appendLine(localize('ensureDirOutputMsg', "... Ensuring {0} exists", dirPath));
|
||||
await fs.ensureDir(dirPath);
|
||||
}
|
||||
export function ensureDirSync(dirPath: string, outputChannel?: vscode.OutputChannel): void {
|
||||
outputChannel?.appendLine(localize('ensureDirOutputMsg', "... Ensuring {0} exists", dirPath));
|
||||
fs.ensureDirSync(dirPath);
|
||||
}
|
||||
|
||||
export function getErrorMessage(error: Error | string): string {
|
||||
|
||||
Reference in New Issue
Block a user