@codingame/monaco-vscode-dialogs-service-override 1.82.5 → 1.83.0-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.
|
|
3
|
+
"version": "1.83.0-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.
|
|
22
|
-
"monaco-editor": "0.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.0-next.0",
|
|
22
|
+
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -768,6 +768,13 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
768
768
|
));
|
|
769
769
|
return Promise.resolve(false);
|
|
770
770
|
}
|
|
771
|
+
else if (statDirname.readonly || statDirname.locked) {
|
|
772
|
+
this.filePickBox.validationMessage = ( nls.localize(
|
|
773
|
+
'remoteFileDialog.validateReadonlyFolder',
|
|
774
|
+
'This folder cannot be used as a save destination. Please choose another folder'
|
|
775
|
+
));
|
|
776
|
+
return Promise.resolve(false);
|
|
777
|
+
}
|
|
771
778
|
}
|
|
772
779
|
else {
|
|
773
780
|
if (!stat) {
|
|
@@ -927,26 +934,12 @@ let SimpleFileDialog = class SimpleFileDialog {
|
|
|
927
934
|
}
|
|
928
935
|
return sorted;
|
|
929
936
|
}
|
|
930
|
-
extname(file) {
|
|
931
|
-
const ext = resources.extname(file);
|
|
932
|
-
if (ext.length === 0) {
|
|
933
|
-
const basename = resources.basename(file);
|
|
934
|
-
if (basename.startsWith('.')) {
|
|
935
|
-
return basename;
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
else {
|
|
939
|
-
return ext;
|
|
940
|
-
}
|
|
941
|
-
return '';
|
|
942
|
-
}
|
|
943
937
|
filterFile(file) {
|
|
944
938
|
if (this.options.filters) {
|
|
945
|
-
const ext = this.extname(file);
|
|
946
939
|
for (let i = 0; i < this.options.filters.length; i++) {
|
|
947
940
|
for (let j = 0; j < this.options.filters[i].extensions.length; j++) {
|
|
948
941
|
const testExt = this.options.filters[i].extensions[j];
|
|
949
|
-
if ((testExt === '*') || (
|
|
942
|
+
if ((testExt === '*') || (file.path.endsWith('.' + testExt))) {
|
|
950
943
|
return true;
|
|
951
944
|
}
|
|
952
945
|
}
|