@codingame/monaco-vscode-dialogs-service-override 13.1.3 → 13.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +5 -5
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeDialog.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeDialog/browser/welcomeWidget.js +1 -1
- package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +15 -15
- package/vscode/src/vs/workbench/services/dialogs/browser/fileDialogService.js +8 -8
- package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +19 -19
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { DialogService } from './vscode/src/vs/workbench/services/dialogs/common/dialogService.js';
|
|
3
|
-
import {
|
|
3
|
+
import { IFileDialogService, IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
4
4
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
5
5
|
import { FileDialogService } from './vscode/src/vs/workbench/services/dialogs/browser/fileDialogService.js';
|
|
6
6
|
import '@codingame/monaco-vscode-api/vscode/vs/nls';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-dialogs-service-override",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - dialogs service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.
|
|
19
|
-
"@codingame/monaco-vscode-44b92f80-48ea-5562-a8d0-18a015f8d845-common": "13.1.
|
|
20
|
-
"@codingame/monaco-vscode-api": "13.1.
|
|
21
|
-
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.
|
|
18
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.5",
|
|
19
|
+
"@codingame/monaco-vscode-44b92f80-48ea-5562-a8d0-18a015f8d845-common": "13.1.5",
|
|
20
|
+
"@codingame/monaco-vscode-api": "13.1.5",
|
|
21
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.5"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
|
@@ -14,7 +14,7 @@ import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
14
14
|
import { fromNow } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
|
|
15
15
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
16
|
import { MarkdownRenderer } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer';
|
|
17
|
-
import {
|
|
17
|
+
import { defaultDialogStyles, defaultInputBoxStyles, defaultCheckboxStyles, defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
18
18
|
import { ResultKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingResolver';
|
|
19
19
|
|
|
20
20
|
var BrowserDialogHandler_1;
|
|
@@ -90,7 +90,7 @@ configurationRegistry.registerConfiguration({
|
|
|
90
90
|
type: 'boolean',
|
|
91
91
|
default: false,
|
|
92
92
|
tags: ['experimental'],
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(10733, "When enabled, a welcome widget is shown in the editor"))
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
});
|
|
@@ -72,7 +72,7 @@ class WelcomeWidget extends Disposable {
|
|
|
72
72
|
}
|
|
73
73
|
async buildWidgetContent(title, message, buttonText, buttonAction) {
|
|
74
74
|
const actionBar = this._register(( new ActionBar(this.element, {})));
|
|
75
|
-
const action = this._register(( new Action('dialog.close', ( localize(
|
|
75
|
+
const action = this._register(( new Action('dialog.close', ( localize(10734, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
|
|
76
76
|
this._hide();
|
|
77
77
|
})));
|
|
78
78
|
actionBar.push(action, { icon: true, label: false });
|
|
@@ -121,17 +121,17 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
121
121
|
return ConfirmResult.DONT_SAVE;
|
|
122
122
|
}
|
|
123
123
|
let message;
|
|
124
|
-
let detail = ( localize(
|
|
124
|
+
let detail = ( localize(11359, "Your changes will be lost if you don't save them."));
|
|
125
125
|
if (fileNamesOrResources.length === 1) {
|
|
126
126
|
message = ( localize(
|
|
127
|
-
|
|
127
|
+
11360,
|
|
128
128
|
"Do you want to save the changes you made to {0}?",
|
|
129
129
|
typeof fileNamesOrResources[0] === 'string' ? fileNamesOrResources[0] : basename(fileNamesOrResources[0])
|
|
130
130
|
));
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
133
133
|
message = ( localize(
|
|
134
|
-
|
|
134
|
+
11361,
|
|
135
135
|
"Do you want to save the changes to the following {0} files?",
|
|
136
136
|
fileNamesOrResources.length
|
|
137
137
|
));
|
|
@@ -144,12 +144,12 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
144
144
|
buttons: [
|
|
145
145
|
{
|
|
146
146
|
label: fileNamesOrResources.length > 1 ?
|
|
147
|
-
( localize(
|
|
148
|
-
( localize(
|
|
147
|
+
( localize(11362, "&&Save All")) :
|
|
148
|
+
( localize(11363, "&&Save")),
|
|
149
149
|
run: () => ConfirmResult.SAVE
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
label: ( localize(
|
|
152
|
+
label: ( localize(11364, "Do&&n't Save")),
|
|
153
153
|
run: () => ConfirmResult.DONT_SAVE
|
|
154
154
|
}
|
|
155
155
|
],
|
|
@@ -163,7 +163,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
163
163
|
return schema === Schemas.untitled ? [Schemas.file] : (schema !== Schemas.file ? [schema, Schemas.file] : [schema]);
|
|
164
164
|
}
|
|
165
165
|
async pickFileFolderAndOpenSimplified(schema, options, preferNewWindow) {
|
|
166
|
-
const title = ( localize(
|
|
166
|
+
const title = ( localize(11365, 'Open File or Folder'));
|
|
167
167
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
168
168
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: true, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
169
169
|
if (uri) {
|
|
@@ -181,7 +181,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
async pickFileAndOpenSimplified(schema, options, preferNewWindow) {
|
|
184
|
-
const title = ( localize(
|
|
184
|
+
const title = ( localize(11366, 'Open File'));
|
|
185
185
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
186
186
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: false, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
187
187
|
if (uri) {
|
|
@@ -198,7 +198,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
198
198
|
this.workspacesService.addRecentlyOpened([{ fileUri: uri, label: this.labelService.getUriLabel(uri) }]);
|
|
199
199
|
}
|
|
200
200
|
async pickFolderAndOpenSimplified(schema, options) {
|
|
201
|
-
const title = ( localize(
|
|
201
|
+
const title = ( localize(11367, 'Open Folder'));
|
|
202
202
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
|
|
203
203
|
const uri = await this.pickResource({ canSelectFiles: false, canSelectFolders: true, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
204
204
|
if (uri) {
|
|
@@ -206,8 +206,8 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
async pickWorkspaceAndOpenSimplified(schema, options) {
|
|
209
|
-
const title = ( localize(
|
|
210
|
-
const filters = [{ name: ( localize(
|
|
209
|
+
const title = ( localize(11368, 'Open Workspace from File'));
|
|
210
|
+
const filters = [{ name: ( localize(11369, 'Workspace')), extensions: [WORKSPACE_EXTENSION] }];
|
|
211
211
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
|
|
212
212
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: false, canSelectMany: false, defaultUri: options.defaultUri, title, filters, availableFileSystems });
|
|
213
213
|
if (uri) {
|
|
@@ -218,7 +218,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
218
218
|
if (!options.availableFileSystems) {
|
|
219
219
|
options.availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
220
220
|
}
|
|
221
|
-
options.title = ( localize(
|
|
221
|
+
options.title = ( localize(11370, 'Save As'));
|
|
222
222
|
const uri = await this.saveRemoteResource(options);
|
|
223
223
|
if (uri) {
|
|
224
224
|
this.addFileToRecentlyOpened(uri);
|
|
@@ -269,7 +269,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
269
269
|
getPickFileToSaveDialogOptions(defaultUri, availableFileSystems) {
|
|
270
270
|
const options = {
|
|
271
271
|
defaultUri,
|
|
272
|
-
title: ( localize(
|
|
272
|
+
title: ( localize(11371, "Save As")),
|
|
273
273
|
availableFileSystems
|
|
274
274
|
};
|
|
275
275
|
const ext = defaultUri ? extname(defaultUri) : undefined;
|
|
@@ -296,10 +296,10 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
296
296
|
matchingFilter = { name: trim(ext, '.').toUpperCase(), extensions: [trim(ext, '.')] };
|
|
297
297
|
}
|
|
298
298
|
options.filters = coalesce([
|
|
299
|
-
{ name: ( localize(
|
|
299
|
+
{ name: ( localize(11372, "All Files")), extensions: ['*'] },
|
|
300
300
|
matchingFilter,
|
|
301
301
|
...registeredLanguageFilters,
|
|
302
|
-
{ name: ( localize(
|
|
302
|
+
{ name: ( localize(11373, "No Extension")), extensions: [''] }
|
|
303
303
|
]);
|
|
304
304
|
return options;
|
|
305
305
|
}
|
|
@@ -28,7 +28,7 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
28
28
|
if (this.shouldUseSimplified(schema)) {
|
|
29
29
|
return super.pickFileFolderAndOpenSimplified(schema, options, false);
|
|
30
30
|
}
|
|
31
|
-
throw ( new Error(( localize(
|
|
31
|
+
throw ( new Error(( localize(11374, "Can't open folders, try adding a folder to the workspace instead."))));
|
|
32
32
|
}
|
|
33
33
|
addFileSchemaIfNeeded(schema, isFolder) {
|
|
34
34
|
return (schema === Schemas.untitled) ? [Schemas.file]
|
|
@@ -68,7 +68,7 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
68
68
|
if (this.shouldUseSimplified(schema)) {
|
|
69
69
|
return super.pickFolderAndOpenSimplified(schema, options);
|
|
70
70
|
}
|
|
71
|
-
throw ( new Error(( localize(
|
|
71
|
+
throw ( new Error(( localize(11374, "Can't open folders, try adding a folder to the workspace instead."))));
|
|
72
72
|
}
|
|
73
73
|
async pickWorkspaceAndOpen(options) {
|
|
74
74
|
options.availableFileSystems = this.getWorkspaceAvailableFileSystems(options);
|
|
@@ -80,7 +80,7 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
80
80
|
return super.pickWorkspaceAndOpenSimplified(schema, options);
|
|
81
81
|
}
|
|
82
82
|
throw ( new Error(( localize(
|
|
83
|
-
|
|
83
|
+
11375,
|
|
84
84
|
"Can't open workspaces, try adding a folder to the workspace instead."
|
|
85
85
|
))));
|
|
86
86
|
}
|
|
@@ -182,17 +182,17 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
182
182
|
}
|
|
183
183
|
const buttons = [
|
|
184
184
|
{
|
|
185
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(11376, "&&Open Remote...")),
|
|
186
186
|
run: async () => { await this.commandService.executeCommand('workbench.action.remote.showMenu'); }
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
|
-
label: ( localize(
|
|
189
|
+
label: ( localize(11377, "&&Learn More")),
|
|
190
190
|
run: async () => { await this.openerService.open('https://aka.ms/VSCodeWebLocalFileSystemAccess'); }
|
|
191
191
|
}
|
|
192
192
|
];
|
|
193
193
|
if (context === 'open') {
|
|
194
194
|
buttons.push({
|
|
195
|
-
label: ( localize(
|
|
195
|
+
label: ( localize(11378, "Open &&Files...")),
|
|
196
196
|
run: async () => {
|
|
197
197
|
const files = await triggerUpload();
|
|
198
198
|
if (files) {
|
|
@@ -212,9 +212,9 @@ class FileDialogService extends AbstractFileDialogService {
|
|
|
212
212
|
}
|
|
213
213
|
await this.dialogService.prompt({
|
|
214
214
|
type: Severity.Warning,
|
|
215
|
-
message: ( localize(
|
|
215
|
+
message: ( localize(11379, "Opening Local Folders is Unsupported")),
|
|
216
216
|
detail: ( localize(
|
|
217
|
-
|
|
217
|
+
11380,
|
|
218
218
|
"Your browser doesn't support opening local folders.\nYou can either open single files or open a remote repository."
|
|
219
219
|
)),
|
|
220
220
|
buttons
|
|
@@ -37,7 +37,7 @@ import { getActiveDocument } from '@codingame/monaco-vscode-api/vscode/vs/base/b
|
|
|
37
37
|
var OpenLocalFileCommand;
|
|
38
38
|
(function (OpenLocalFileCommand) {
|
|
39
39
|
OpenLocalFileCommand.ID = 'workbench.action.files.openLocalFile';
|
|
40
|
-
OpenLocalFileCommand.LABEL = ( localize(
|
|
40
|
+
OpenLocalFileCommand.LABEL = ( localize(11381, "Open Local File..."));
|
|
41
41
|
function handler() {
|
|
42
42
|
return accessor => {
|
|
43
43
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -49,7 +49,7 @@ var OpenLocalFileCommand;
|
|
|
49
49
|
var SaveLocalFileCommand;
|
|
50
50
|
(function (SaveLocalFileCommand) {
|
|
51
51
|
SaveLocalFileCommand.ID = 'workbench.action.files.saveLocalFile';
|
|
52
|
-
SaveLocalFileCommand.LABEL = ( localize(
|
|
52
|
+
SaveLocalFileCommand.LABEL = ( localize(11382, "Save Local File..."));
|
|
53
53
|
function handler() {
|
|
54
54
|
return accessor => {
|
|
55
55
|
const editorService = accessor.get(IEditorService);
|
|
@@ -65,7 +65,7 @@ var SaveLocalFileCommand;
|
|
|
65
65
|
var OpenLocalFolderCommand;
|
|
66
66
|
(function (OpenLocalFolderCommand) {
|
|
67
67
|
OpenLocalFolderCommand.ID = 'workbench.action.files.openLocalFolder';
|
|
68
|
-
OpenLocalFolderCommand.LABEL = ( localize(
|
|
68
|
+
OpenLocalFolderCommand.LABEL = ( localize(11383, "Open Local Folder..."));
|
|
69
69
|
function handler() {
|
|
70
70
|
return accessor => {
|
|
71
71
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -77,7 +77,7 @@ var OpenLocalFolderCommand;
|
|
|
77
77
|
var OpenLocalFileFolderCommand;
|
|
78
78
|
(function (OpenLocalFileFolderCommand) {
|
|
79
79
|
OpenLocalFileFolderCommand.ID = 'workbench.action.files.openLocalFileFolder';
|
|
80
|
-
OpenLocalFileFolderCommand.LABEL = ( localize(
|
|
80
|
+
OpenLocalFileFolderCommand.LABEL = ( localize(11384, "Open Local..."));
|
|
81
81
|
function handler() {
|
|
82
82
|
return accessor => {
|
|
83
83
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -177,7 +177,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
177
177
|
}
|
|
178
178
|
if ((this.scheme !== Schemas.file) && !this.fileService.hasProvider(defaultUri)) {
|
|
179
179
|
this.notificationService.info(( localize(
|
|
180
|
-
|
|
180
|
+
11385,
|
|
181
181
|
'File system provider for {0} is not available.',
|
|
182
182
|
(defaultUri.toString())
|
|
183
183
|
)));
|
|
@@ -250,7 +250,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
250
250
|
this.filePickBox.ok = true;
|
|
251
251
|
if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
|
|
252
252
|
this.filePickBox.customButton = true;
|
|
253
|
-
this.filePickBox.customLabel = ( localize(
|
|
253
|
+
this.filePickBox.customLabel = ( localize(11386, 'Show Local'));
|
|
254
254
|
let action;
|
|
255
255
|
if (isSave) {
|
|
256
256
|
action = SaveLocalFileCommand;
|
|
@@ -545,7 +545,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
545
545
|
return (await this.updateItems(valueUri)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
|
|
546
546
|
}
|
|
547
547
|
else if (this.endsWithSlash(value)) {
|
|
548
|
-
this.filePickBox.validationMessage = ( localize(
|
|
548
|
+
this.filePickBox.validationMessage = ( localize(11387, 'The path does not exist.'));
|
|
549
549
|
this.badPath = value;
|
|
550
550
|
return UpdateResult.InvalidPath;
|
|
551
551
|
}
|
|
@@ -703,7 +703,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
703
703
|
prompt.ignoreFocusOut = true;
|
|
704
704
|
prompt.ok = true;
|
|
705
705
|
prompt.customButton = true;
|
|
706
|
-
prompt.customLabel = ( localize(
|
|
706
|
+
prompt.customLabel = ( localize(11388, 'Cancel'));
|
|
707
707
|
prompt.value = this.pathFromUri(uri);
|
|
708
708
|
let isResolving = false;
|
|
709
709
|
return ( new Promise(resolve => {
|
|
@@ -731,7 +731,7 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
731
731
|
}
|
|
732
732
|
async validate(uri) {
|
|
733
733
|
if (uri === undefined) {
|
|
734
|
-
this.filePickBox.validationMessage = ( localize(
|
|
734
|
+
this.filePickBox.validationMessage = ( localize(11389, 'Please enter a valid path.'));
|
|
735
735
|
return Promise.resolve(false);
|
|
736
736
|
}
|
|
737
737
|
let stat;
|
|
@@ -744,36 +744,36 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
744
744
|
}
|
|
745
745
|
if (this.requiresTrailing) {
|
|
746
746
|
if (stat && stat.isDirectory) {
|
|
747
|
-
this.filePickBox.validationMessage = ( localize(
|
|
747
|
+
this.filePickBox.validationMessage = ( localize(11390, 'The folder already exists. Please use a new file name.'));
|
|
748
748
|
return Promise.resolve(false);
|
|
749
749
|
}
|
|
750
750
|
else if (stat) {
|
|
751
751
|
const message = ( localize(
|
|
752
|
-
|
|
752
|
+
11391,
|
|
753
753
|
'{0} already exists. Are you sure you want to overwrite it?',
|
|
754
754
|
basename(uri)
|
|
755
755
|
));
|
|
756
756
|
return this.yesNoPrompt(uri, message);
|
|
757
757
|
}
|
|
758
758
|
else if (!(isValidBasename(basename(uri), this.isWindows))) {
|
|
759
|
-
this.filePickBox.validationMessage = ( localize(
|
|
759
|
+
this.filePickBox.validationMessage = ( localize(11392, 'Please enter a valid file name.'));
|
|
760
760
|
return Promise.resolve(false);
|
|
761
761
|
}
|
|
762
762
|
else if (!statDirname) {
|
|
763
763
|
const message = ( localize(
|
|
764
|
-
|
|
764
|
+
11393,
|
|
765
765
|
'The folder {0} does not exist. Would you like to create it?',
|
|
766
766
|
basename(dirname(uri))
|
|
767
767
|
));
|
|
768
768
|
return this.yesNoPrompt(uri, message);
|
|
769
769
|
}
|
|
770
770
|
else if (!statDirname.isDirectory) {
|
|
771
|
-
this.filePickBox.validationMessage = ( localize(
|
|
771
|
+
this.filePickBox.validationMessage = ( localize(11394, 'Please enter a path that exists.'));
|
|
772
772
|
return Promise.resolve(false);
|
|
773
773
|
}
|
|
774
774
|
else if (statDirname.readonly) {
|
|
775
775
|
this.filePickBox.validationMessage = ( localize(
|
|
776
|
-
|
|
776
|
+
11395,
|
|
777
777
|
'This folder cannot be used as a save destination. Please choose another folder'
|
|
778
778
|
));
|
|
779
779
|
return Promise.resolve(false);
|
|
@@ -781,19 +781,19 @@ let SimpleFileDialog = class SimpleFileDialog extends Disposable {
|
|
|
781
781
|
}
|
|
782
782
|
else {
|
|
783
783
|
if (!stat) {
|
|
784
|
-
this.filePickBox.validationMessage = ( localize(
|
|
784
|
+
this.filePickBox.validationMessage = ( localize(11394, 'Please enter a path that exists.'));
|
|
785
785
|
return Promise.resolve(false);
|
|
786
786
|
}
|
|
787
787
|
else if (uri.path === '/' && this.isWindows) {
|
|
788
|
-
this.filePickBox.validationMessage = ( localize(
|
|
788
|
+
this.filePickBox.validationMessage = ( localize(11396, 'Please start the path with a drive letter.'));
|
|
789
789
|
return Promise.resolve(false);
|
|
790
790
|
}
|
|
791
791
|
else if (stat.isDirectory && !this.allowFolderSelection) {
|
|
792
|
-
this.filePickBox.validationMessage = ( localize(
|
|
792
|
+
this.filePickBox.validationMessage = ( localize(11397, 'Please select a file.'));
|
|
793
793
|
return Promise.resolve(false);
|
|
794
794
|
}
|
|
795
795
|
else if (!stat.isDirectory && !this.allowFileSelection) {
|
|
796
|
-
this.filePickBox.validationMessage = ( localize(
|
|
796
|
+
this.filePickBox.validationMessage = ( localize(11398, 'Please select a folder.'));
|
|
797
797
|
return Promise.resolve(false);
|
|
798
798
|
}
|
|
799
799
|
}
|