@codingame/monaco-vscode-dialogs-service-override 1.83.2 → 1.83.3-next.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-dialogs-service-override",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.3-next.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.83.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.3-next.0",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
4
4
|
import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
5
5
|
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
@@ -57,20 +57,13 @@ let BrowserDialogHandler = class BrowserDialogHandler extends AbstractDialogHand
|
|
|
57
57
|
}
|
|
58
58
|
async about() {
|
|
59
59
|
const detailString = (useAgo) => {
|
|
60
|
-
return (
|
|
61
|
-
'aboutDetail',
|
|
62
|
-
"Version: {0}\nCommit: {1}\nDate: {2}\nBrowser: {3}",
|
|
63
|
-
this.productService.version || 'Unknown',
|
|
64
|
-
this.productService.commit || 'Unknown',
|
|
65
|
-
this.productService.date ? `${this.productService.date}${useAgo ? ' (' + fromNow(( new Date(this.productService.date)), true) + ')' : ''}` : 'Unknown',
|
|
66
|
-
navigator.userAgent
|
|
67
|
-
));
|
|
60
|
+
return localizeWithPath('vs/workbench/browser/parts/dialogs/dialogHandler', 'aboutDetail', "Version: {0}\nCommit: {1}\nDate: {2}\nBrowser: {3}", this.productService.version || 'Unknown', this.productService.commit || 'Unknown', this.productService.date ? `${this.productService.date}${useAgo ? ' (' + fromNow(( new Date(this.productService.date)), true) + ')' : ''}` : 'Unknown', navigator.userAgent);
|
|
68
61
|
};
|
|
69
62
|
const detail = detailString(true);
|
|
70
63
|
const detailToCopy = detailString(false);
|
|
71
64
|
const { button } = await this.doShow(Severity.Info, this.productService.nameLong, [
|
|
72
|
-
(
|
|
73
|
-
(
|
|
65
|
+
localizeWithPath('vs/workbench/browser/parts/dialogs/dialogHandler', { key: 'copy', comment: ['&& denotes a mnemonic'] }, "&&Copy"),
|
|
66
|
+
localizeWithPath('vs/workbench/browser/parts/dialogs/dialogHandler', 'ok', "OK")
|
|
74
67
|
], detail, 1);
|
|
75
68
|
if (button === 0) {
|
|
76
69
|
this.clipboardService.writeText(detailToCopy);
|
|
@@ -119,20 +119,12 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
119
119
|
return 1 ;
|
|
120
120
|
}
|
|
121
121
|
let message;
|
|
122
|
-
let detail =
|
|
122
|
+
let detail = nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'saveChangesDetail', "Your changes will be lost if you don't save them.");
|
|
123
123
|
if (fileNamesOrResources.length === 1) {
|
|
124
|
-
message = (
|
|
125
|
-
'saveChangesMessage',
|
|
126
|
-
"Do you want to save the changes you made to {0}?",
|
|
127
|
-
typeof fileNamesOrResources[0] === 'string' ? fileNamesOrResources[0] : resources.basename(fileNamesOrResources[0])
|
|
128
|
-
));
|
|
124
|
+
message = nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'saveChangesMessage', "Do you want to save the changes you made to {0}?", typeof fileNamesOrResources[0] === 'string' ? fileNamesOrResources[0] : resources.basename(fileNamesOrResources[0]));
|
|
129
125
|
}
|
|
130
126
|
else {
|
|
131
|
-
message = (
|
|
132
|
-
'saveChangesMessages',
|
|
133
|
-
"Do you want to save the changes to the following {0} files?",
|
|
134
|
-
fileNamesOrResources.length
|
|
135
|
-
));
|
|
127
|
+
message = nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'saveChangesMessages', "Do you want to save the changes to the following {0} files?", fileNamesOrResources.length);
|
|
136
128
|
detail = getFileNamesMessage(fileNamesOrResources) + '\n' + detail;
|
|
137
129
|
}
|
|
138
130
|
const { result } = await this.dialogService.prompt({
|
|
@@ -142,12 +134,12 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
142
134
|
buttons: [
|
|
143
135
|
{
|
|
144
136
|
label: fileNamesOrResources.length > 1 ?
|
|
145
|
-
|
|
146
|
-
|
|
137
|
+
nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', { key: 'saveAll', comment: ['&& denotes a mnemonic'] }, "&&Save All") :
|
|
138
|
+
nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', { key: 'save', comment: ['&& denotes a mnemonic'] }, "&&Save"),
|
|
147
139
|
run: () => 0
|
|
148
140
|
},
|
|
149
141
|
{
|
|
150
|
-
label:
|
|
142
|
+
label: nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', { key: 'dontSave', comment: ['&& denotes a mnemonic'] }, "Do&&n't Save"),
|
|
151
143
|
run: () => 1
|
|
152
144
|
}
|
|
153
145
|
],
|
|
@@ -161,7 +153,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
161
153
|
return schema === Schemas.untitled ? [Schemas.file] : (schema !== Schemas.file ? [schema, Schemas.file] : [schema]);
|
|
162
154
|
}
|
|
163
155
|
async pickFileFolderAndOpenSimplified(schema, options, preferNewWindow) {
|
|
164
|
-
const title =
|
|
156
|
+
const title = nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'openFileOrFolder.title', 'Open File or Folder');
|
|
165
157
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
166
158
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: true, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
167
159
|
if (uri) {
|
|
@@ -179,7 +171,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
179
171
|
}
|
|
180
172
|
}
|
|
181
173
|
async pickFileAndOpenSimplified(schema, options, preferNewWindow) {
|
|
182
|
-
const title =
|
|
174
|
+
const title = nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'openFile.title', 'Open File');
|
|
183
175
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
184
176
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: false, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
185
177
|
if (uri) {
|
|
@@ -196,7 +188,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
196
188
|
this.workspacesService.addRecentlyOpened([{ fileUri: uri, label: this.labelService.getUriLabel(uri) }]);
|
|
197
189
|
}
|
|
198
190
|
async pickFolderAndOpenSimplified(schema, options) {
|
|
199
|
-
const title =
|
|
191
|
+
const title = nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'openFolder.title', 'Open Folder');
|
|
200
192
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
|
|
201
193
|
const uri = await this.pickResource({ canSelectFiles: false, canSelectFolders: true, canSelectMany: false, defaultUri: options.defaultUri, title, availableFileSystems });
|
|
202
194
|
if (uri) {
|
|
@@ -204,8 +196,8 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
204
196
|
}
|
|
205
197
|
}
|
|
206
198
|
async pickWorkspaceAndOpenSimplified(schema, options) {
|
|
207
|
-
const title =
|
|
208
|
-
const filters = [{ name:
|
|
199
|
+
const title = nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'openWorkspace.title', 'Open Workspace from File');
|
|
200
|
+
const filters = [{ name: nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'filterName.workspace', 'Workspace'), extensions: [WORKSPACE_EXTENSION] }];
|
|
209
201
|
const availableFileSystems = this.addFileSchemaIfNeeded(schema, true);
|
|
210
202
|
const uri = await this.pickResource({ canSelectFiles: true, canSelectFolders: false, canSelectMany: false, defaultUri: options.defaultUri, title, filters, availableFileSystems });
|
|
211
203
|
if (uri) {
|
|
@@ -216,7 +208,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
216
208
|
if (!options.availableFileSystems) {
|
|
217
209
|
options.availableFileSystems = this.addFileSchemaIfNeeded(schema);
|
|
218
210
|
}
|
|
219
|
-
options.title =
|
|
211
|
+
options.title = nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'saveFileAs.title', 'Save As');
|
|
220
212
|
const uri = await this.saveRemoteResource(options);
|
|
221
213
|
if (uri) {
|
|
222
214
|
this.addFileToRecentlyOpened(uri);
|
|
@@ -264,7 +256,7 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
264
256
|
getPickFileToSaveDialogOptions(defaultUri, availableFileSystems) {
|
|
265
257
|
const options = {
|
|
266
258
|
defaultUri,
|
|
267
|
-
title:
|
|
259
|
+
title: nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'saveAsTitle', "Save As"),
|
|
268
260
|
availableFileSystems
|
|
269
261
|
};
|
|
270
262
|
const ext = defaultUri ? resources.extname(defaultUri) : undefined;
|
|
@@ -291,10 +283,10 @@ let AbstractFileDialogService = class AbstractFileDialogService {
|
|
|
291
283
|
matchingFilter = { name: trim(ext, '.').toUpperCase(), extensions: [trim(ext, '.')] };
|
|
292
284
|
}
|
|
293
285
|
options.filters = coalesce([
|
|
294
|
-
{ name:
|
|
286
|
+
{ name: nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'allFiles', "All Files"), extensions: ['*'] },
|
|
295
287
|
matchingFilter,
|
|
296
288
|
...registeredLanguageFilters,
|
|
297
|
-
{ name:
|
|
289
|
+
{ name: nls.localizeWithPath('vs/workbench/services/dialogs/browser/abstractFileDialogService', 'noExt', "No Extension"), extensions: [''] }
|
|
298
290
|
]);
|
|
299
291
|
return options;
|
|
300
292
|
}
|
|
@@ -32,7 +32,7 @@ import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dia
|
|
|
32
32
|
var OpenLocalFileCommand;
|
|
33
33
|
( (function(OpenLocalFileCommand) {
|
|
34
34
|
OpenLocalFileCommand.ID = 'workbench.action.files.openLocalFile';
|
|
35
|
-
OpenLocalFileCommand.LABEL =
|
|
35
|
+
OpenLocalFileCommand.LABEL = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'openLocalFile', "Open Local File...");
|
|
36
36
|
function handler() {
|
|
37
37
|
return accessor => {
|
|
38
38
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -44,7 +44,7 @@ var OpenLocalFileCommand;
|
|
|
44
44
|
var SaveLocalFileCommand;
|
|
45
45
|
( (function(SaveLocalFileCommand) {
|
|
46
46
|
SaveLocalFileCommand.ID = 'workbench.action.files.saveLocalFile';
|
|
47
|
-
SaveLocalFileCommand.LABEL =
|
|
47
|
+
SaveLocalFileCommand.LABEL = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'saveLocalFile', "Save Local File...");
|
|
48
48
|
function handler() {
|
|
49
49
|
return accessor => {
|
|
50
50
|
const editorService = accessor.get(IEditorService);
|
|
@@ -60,7 +60,7 @@ var SaveLocalFileCommand;
|
|
|
60
60
|
var OpenLocalFolderCommand;
|
|
61
61
|
( (function(OpenLocalFolderCommand) {
|
|
62
62
|
OpenLocalFolderCommand.ID = 'workbench.action.files.openLocalFolder';
|
|
63
|
-
OpenLocalFolderCommand.LABEL =
|
|
63
|
+
OpenLocalFolderCommand.LABEL = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'openLocalFolder', "Open Local Folder...");
|
|
64
64
|
function handler() {
|
|
65
65
|
return accessor => {
|
|
66
66
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -72,7 +72,7 @@ var OpenLocalFolderCommand;
|
|
|
72
72
|
var OpenLocalFileFolderCommand;
|
|
73
73
|
( (function(OpenLocalFileFolderCommand) {
|
|
74
74
|
OpenLocalFileFolderCommand.ID = 'workbench.action.files.openLocalFileFolder';
|
|
75
|
-
OpenLocalFileFolderCommand.LABEL =
|
|
75
|
+
OpenLocalFileFolderCommand.LABEL = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'openLocalFileFolder', "Open Local...");
|
|
76
76
|
function handler() {
|
|
77
77
|
return accessor => {
|
|
78
78
|
const dialogService = accessor.get(IFileDialogService);
|
|
@@ -173,11 +173,7 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
if ((this.scheme !== Schemas.file) && !this.fileService.hasProvider(defaultUri)) {
|
|
176
|
-
this.notificationService.info((
|
|
177
|
-
'remoteFileDialog.notConnectedToRemote',
|
|
178
|
-
'File system provider for {0} is not available.',
|
|
179
|
-
( defaultUri.toString())
|
|
180
|
-
)));
|
|
176
|
+
this.notificationService.info(nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.notConnectedToRemote', 'File system provider for {0} is not available.', ( defaultUri.toString())));
|
|
181
177
|
return undefined;
|
|
182
178
|
}
|
|
183
179
|
const newOptions = objects.deepClone(options);
|
|
@@ -248,7 +244,7 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
248
244
|
this.filePickBox.ok = true;
|
|
249
245
|
if ((this.scheme !== Schemas.file) && this.options && this.options.availableFileSystems && (this.options.availableFileSystems.length > 1) && (this.options.availableFileSystems.indexOf(Schemas.file) > -1)) {
|
|
250
246
|
this.filePickBox.customButton = true;
|
|
251
|
-
this.filePickBox.customLabel =
|
|
247
|
+
this.filePickBox.customLabel = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.local', 'Show Local');
|
|
252
248
|
let action;
|
|
253
249
|
if (isSave) {
|
|
254
250
|
action = SaveLocalFileCommand;
|
|
@@ -537,7 +533,7 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
537
533
|
return (await this.updateItems(valueUri)) ? UpdateResult.UpdatedWithTrailing : UpdateResult.Updated;
|
|
538
534
|
}
|
|
539
535
|
else if (this.endsWithSlash(value)) {
|
|
540
|
-
this.filePickBox.validationMessage =
|
|
536
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.badPath', 'The path does not exist.');
|
|
541
537
|
this.badPath = value;
|
|
542
538
|
return UpdateResult.InvalidPath;
|
|
543
539
|
}
|
|
@@ -693,7 +689,7 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
693
689
|
prompt.ignoreFocusOut = true;
|
|
694
690
|
prompt.ok = true;
|
|
695
691
|
prompt.customButton = true;
|
|
696
|
-
prompt.customLabel =
|
|
692
|
+
prompt.customLabel = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.cancel', 'Cancel');
|
|
697
693
|
prompt.value = this.pathFromUri(uri);
|
|
698
694
|
let isResolving = false;
|
|
699
695
|
return ( new Promise(resolve => {
|
|
@@ -722,7 +718,7 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
722
718
|
}
|
|
723
719
|
async validate(uri) {
|
|
724
720
|
if (uri === undefined) {
|
|
725
|
-
this.filePickBox.validationMessage =
|
|
721
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.invalidPath', 'Please enter a valid path.');
|
|
726
722
|
return Promise.resolve(false);
|
|
727
723
|
}
|
|
728
724
|
let stat;
|
|
@@ -735,68 +731,45 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
735
731
|
}
|
|
736
732
|
if (this.requiresTrailing) {
|
|
737
733
|
if (stat && stat.isDirectory) {
|
|
738
|
-
this.filePickBox.validationMessage = (
|
|
739
|
-
'remoteFileDialog.validateFolder',
|
|
740
|
-
'The folder already exists. Please use a new file name.'
|
|
741
|
-
));
|
|
734
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateFolder', 'The folder already exists. Please use a new file name.');
|
|
742
735
|
return Promise.resolve(false);
|
|
743
736
|
}
|
|
744
737
|
else if (stat) {
|
|
745
|
-
const message = (
|
|
746
|
-
'remoteFileDialog.validateExisting',
|
|
747
|
-
'{0} already exists. Are you sure you want to overwrite it?',
|
|
748
|
-
resources.basename(uri)
|
|
749
|
-
));
|
|
738
|
+
const message = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateExisting', '{0} already exists. Are you sure you want to overwrite it?', resources.basename(uri));
|
|
750
739
|
return this.yesNoPrompt(uri, message);
|
|
751
740
|
}
|
|
752
741
|
else if (!(isValidBasename(resources.basename(uri), this.isWindows))) {
|
|
753
|
-
this.filePickBox.validationMessage =
|
|
742
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateBadFilename', 'Please enter a valid file name.');
|
|
754
743
|
return Promise.resolve(false);
|
|
755
744
|
}
|
|
756
745
|
else if (!statDirname) {
|
|
757
|
-
const message = (
|
|
758
|
-
'remoteFileDialog.validateCreateDirectory',
|
|
759
|
-
'The folder {0} does not exist. Would you like to create it?',
|
|
760
|
-
resources.basename(resources.dirname(uri))
|
|
761
|
-
));
|
|
746
|
+
const message = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateCreateDirectory', 'The folder {0} does not exist. Would you like to create it?', resources.basename(resources.dirname(uri)));
|
|
762
747
|
return this.yesNoPrompt(uri, message);
|
|
763
748
|
}
|
|
764
749
|
else if (!statDirname.isDirectory) {
|
|
765
|
-
this.filePickBox.validationMessage = (
|
|
766
|
-
'remoteFileDialog.validateNonexistentDir',
|
|
767
|
-
'Please enter a path that exists.'
|
|
768
|
-
));
|
|
750
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateNonexistentDir', 'Please enter a path that exists.');
|
|
769
751
|
return Promise.resolve(false);
|
|
770
752
|
}
|
|
771
753
|
else if (statDirname.readonly || statDirname.locked) {
|
|
772
|
-
this.filePickBox.validationMessage = (
|
|
773
|
-
'remoteFileDialog.validateReadonlyFolder',
|
|
774
|
-
'This folder cannot be used as a save destination. Please choose another folder'
|
|
775
|
-
));
|
|
754
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateReadonlyFolder', 'This folder cannot be used as a save destination. Please choose another folder');
|
|
776
755
|
return Promise.resolve(false);
|
|
777
756
|
}
|
|
778
757
|
}
|
|
779
758
|
else {
|
|
780
759
|
if (!stat) {
|
|
781
|
-
this.filePickBox.validationMessage = (
|
|
782
|
-
'remoteFileDialog.validateNonexistentDir',
|
|
783
|
-
'Please enter a path that exists.'
|
|
784
|
-
));
|
|
760
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateNonexistentDir', 'Please enter a path that exists.');
|
|
785
761
|
return Promise.resolve(false);
|
|
786
762
|
}
|
|
787
763
|
else if (uri.path === '/' && this.isWindows) {
|
|
788
|
-
this.filePickBox.validationMessage = (
|
|
789
|
-
'remoteFileDialog.windowsDriveLetter',
|
|
790
|
-
'Please start the path with a drive letter.'
|
|
791
|
-
));
|
|
764
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.windowsDriveLetter', 'Please start the path with a drive letter.');
|
|
792
765
|
return Promise.resolve(false);
|
|
793
766
|
}
|
|
794
767
|
else if (stat.isDirectory && !this.allowFolderSelection) {
|
|
795
|
-
this.filePickBox.validationMessage =
|
|
768
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateFileOnly', 'Please select a file.');
|
|
796
769
|
return Promise.resolve(false);
|
|
797
770
|
}
|
|
798
771
|
else if (!stat.isDirectory && !this.allowFileSelection) {
|
|
799
|
-
this.filePickBox.validationMessage =
|
|
772
|
+
this.filePickBox.validationMessage = nls.localizeWithPath('vs/workbench/services/dialogs/browser/simpleFileDialog', 'remoteFileDialog.validateFolderOnly', 'Please select a folder.');
|
|
800
773
|
return Promise.resolve(false);
|
|
801
774
|
}
|
|
802
775
|
}
|