Skip to content

Commit 7166282

Browse files
authored
dialogs - rename setting to files.dialog.defaultPath (microsoft#186156)
1 parent 9ee3bb7 commit 7166282

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/vs/workbench/contrib/files/browser/files.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ configurationRegistry.registerConfiguration({
323323
'default': 'askUser',
324324
'scope': ConfigurationScope.LANGUAGE_OVERRIDABLE
325325
},
326-
'files.dialog.homePath': {
326+
'files.dialog.defaultPath': {
327327
'type': 'string',
328-
'description': nls.localize('fileDialogHomePath', "Default path for file dialogs, overriding user's home path. Only used in the absence of a context-specific path, such as most recently opened file or folder."),
328+
'description': nls.localize('fileDialogDefaultPath', "Default path for file dialogs, overriding user's home path. Only used in the absence of a context-specific path, such as most recently opened file or folder."),
329329
'scope': ConfigurationScope.MACHINE
330330
},
331331
'files.simpleDialog.enable': {

src/vs/workbench/services/dialogs/browser/abstractFileDialogService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ export abstract class AbstractFileDialogService implements IFileDialogService {
9393
}
9494

9595
async preferredHome(schemeFilter = this.getSchemeFilterForWindow()): Promise<URI> {
96+
9697
// Seek a user-local or user-remote machine-scoped override path string depending on whether caller wants a local or a remote home
97-
const inspectedValue = this.configurationService.inspect<string>('files.dialog.homePath');
98+
const inspectedValue = this.configurationService.inspect<string>('files.dialog.defaultPath');
9899
const dialogHomePath = schemeFilter === Schemas.file ? inspectedValue.userLocalValue : inspectedValue.userRemoteValue;
99100
const userHomePromise = this.pathService.userHome({ preferLocal: schemeFilter === Schemas.file });
100101
if (!dialogHomePath) {

0 commit comments

Comments
 (0)