@codingame/monaco-vscode-files-service-override 17.1.3 → 17.2.1
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 +6 -5
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -526,7 +526,7 @@ class OverlayFileSystemProvider {
|
|
|
526
526
|
}
|
|
527
527
|
throw firstError;
|
|
528
528
|
}
|
|
529
|
-
async writeToDelegates(caller) {
|
|
529
|
+
async writeToDelegates(resource, caller) {
|
|
530
530
|
if (this.delegates.length === 0) {
|
|
531
531
|
throw createFileSystemProviderError('No delegate', FileSystemProviderErrorCode.Unavailable);
|
|
532
532
|
}
|
|
@@ -535,6 +535,7 @@ class OverlayFileSystemProvider {
|
|
|
535
535
|
continue;
|
|
536
536
|
}
|
|
537
537
|
try {
|
|
538
|
+
await mkdirp(extUri, provider, extUri.dirname(resource));
|
|
538
539
|
return await caller(provider);
|
|
539
540
|
}
|
|
540
541
|
catch (err) {
|
|
@@ -621,7 +622,7 @@ class OverlayFileSystemProvider {
|
|
|
621
622
|
return store;
|
|
622
623
|
}
|
|
623
624
|
async writeFile(resource, content, opts) {
|
|
624
|
-
await this.writeToDelegates(async (delegate) => {
|
|
625
|
+
await this.writeToDelegates(resource, async (delegate) => {
|
|
625
626
|
let stats;
|
|
626
627
|
try {
|
|
627
628
|
stats = await delegate.stat(resource);
|
|
@@ -635,13 +636,13 @@ class OverlayFileSystemProvider {
|
|
|
635
636
|
});
|
|
636
637
|
}
|
|
637
638
|
async mkdir(resource) {
|
|
638
|
-
await this.writeToDelegates((delegate) => delegate.mkdir(resource));
|
|
639
|
+
await this.writeToDelegates(resource, (delegate) => delegate.mkdir(resource));
|
|
639
640
|
}
|
|
640
641
|
async delete(resource, opts) {
|
|
641
|
-
await this.writeToDelegates((delegate) => delegate.delete(resource, opts));
|
|
642
|
+
await this.writeToDelegates(resource, (delegate) => delegate.delete(resource, opts));
|
|
642
643
|
}
|
|
643
644
|
async rename(from, to, opts) {
|
|
644
|
-
await this.writeToDelegates((delegate) => delegate.rename(from, to, opts));
|
|
645
|
+
await this.writeToDelegates(to, (delegate) => delegate.rename(from, to, opts));
|
|
645
646
|
}
|
|
646
647
|
}
|
|
647
648
|
class MkdirpOnWriteInMemoryFileSystemProvider extends InMemoryFileSystemProvider {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-files-service-override",
|
|
3
|
-
"version": "17.1
|
|
3
|
+
"version": "17.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - files service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "17.1
|
|
19
|
-
"@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common": "17.1
|
|
20
|
-
"@codingame/monaco-vscode-25a9b730-95ad-54d3-8807-71421ad9b891-common": "17.1
|
|
21
|
-
"@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common": "17.1
|
|
22
|
-
"@codingame/monaco-vscode-51fed910-d648-5620-9b80-9232cd79d116-common": "17.1
|
|
23
|
-
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "17.1
|
|
24
|
-
"@codingame/monaco-vscode-api": "17.1
|
|
25
|
-
"@codingame/monaco-vscode-cea4d01f-6526-5c2f-8b09-b168fead499f-common": "17.1
|
|
18
|
+
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "17.2.1",
|
|
19
|
+
"@codingame/monaco-vscode-15626ec7-b165-51e1-8caf-7bcc2ae9b95a-common": "17.2.1",
|
|
20
|
+
"@codingame/monaco-vscode-25a9b730-95ad-54d3-8807-71421ad9b891-common": "17.2.1",
|
|
21
|
+
"@codingame/monaco-vscode-2f06fe84-148e-5e6b-a7ca-c7989c5f128a-common": "17.2.1",
|
|
22
|
+
"@codingame/monaco-vscode-51fed910-d648-5620-9b80-9232cd79d116-common": "17.2.1",
|
|
23
|
+
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "17.2.1",
|
|
24
|
+
"@codingame/monaco-vscode-api": "17.2.1",
|
|
25
|
+
"@codingame/monaco-vscode-cea4d01f-6526-5c2f-8b09-b168fead499f-common": "17.2.1"
|
|
26
26
|
},
|
|
27
27
|
"main": "index.js",
|
|
28
28
|
"module": "index.js",
|