mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
use undefined instead of home directory (#12763)
* use undefined instead of home directory * fix error
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
import * as azdata from 'azdata';
|
||||
import { azureResource } from 'azureResource';
|
||||
import * as fs from 'fs';
|
||||
import { EOL, homedir as os_homedir } from 'os';
|
||||
import { EOL } from 'os';
|
||||
import * as path from 'path';
|
||||
import * as vscode from 'vscode';
|
||||
import * as nls from 'vscode-nls';
|
||||
@@ -724,7 +724,7 @@ function processFilePickerField(context: FieldContext): FilePickerInputs {
|
||||
canSelectFiles: true,
|
||||
canSelectFolders: false,
|
||||
canSelectMany: false,
|
||||
defaultUri: vscode.Uri.file(path.dirname(input.value || os_homedir())),
|
||||
defaultUri: input.value ? vscode.Uri.file(path.dirname(input.value)) : undefined,
|
||||
openLabel: loc.select,
|
||||
filters: filter
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user