mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
* saving untested work * fixes for #8165 and #8167 * minor fixes * fix for #8260 * minor quoting fixes * fix for #8264 * minor fixes * minor fixes. * move tools constants to their own files * remove execution cell results from notebooks. * remove extraneous changes * move ensuring of StoragePath to platformservice * remove fix for #8264 pending pm input
This commit is contained in:
@@ -21,6 +21,7 @@ export interface IPlatformService {
|
||||
osType(): OsType;
|
||||
platform(): string;
|
||||
storagePath(): string;
|
||||
initialize(): Promise<void>;
|
||||
copyFile(source: string, target: string): Promise<void>;
|
||||
fileExists(file: string): Promise<boolean>;
|
||||
openFile(filePath: string): void;
|
||||
@@ -56,8 +57,14 @@ export interface CommandOptions {
|
||||
export class PlatformService implements IPlatformService {
|
||||
|
||||
private _outputChannel: vscode.OutputChannel = vscode.window.createOutputChannel(extensionOutputChannel);
|
||||
private _storagePathEnsurer: Promise<void>;
|
||||
|
||||
constructor(private _storagePath: string = '') {
|
||||
this._storagePathEnsurer = this.ensureDirectoryExists(_storagePath);
|
||||
}
|
||||
|
||||
async initialize(): Promise<void> {
|
||||
await this._storagePathEnsurer;
|
||||
}
|
||||
|
||||
storagePath(): string {
|
||||
|
||||
Reference in New Issue
Block a user