@codingame/monaco-vscode-api 1.78.1 → 1.78.2
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/dist/configuration.js +5 -0
- package/dist/files.js +3 -1
- package/package.json +1 -1
package/dist/configuration.js
CHANGED
|
@@ -4412,6 +4412,11 @@ let _defaultWorkspaceUri = URI.file('/workspace');
|
|
|
4412
4412
|
registerServiceInitializeParticipant(async (accessor) => {
|
|
4413
4413
|
const workspaceService = accessor.get(IWorkspaceContextService);
|
|
4414
4414
|
workspaceService.acquireInstantiationService(accessor.get(IInstantiationService));
|
|
4415
|
+
try {
|
|
4416
|
+
await accessor.get(IFileService).createFolder(_defaultWorkspaceUri);
|
|
4417
|
+
}
|
|
4418
|
+
catch (err) {
|
|
4419
|
+
}
|
|
4415
4420
|
await workspaceService.initialize({
|
|
4416
4421
|
id: generateUuid(),
|
|
4417
4422
|
uri: _defaultWorkspaceUri
|
package/dist/files.js
CHANGED
|
@@ -3086,18 +3086,20 @@ class OverlayFileSystemProvider {
|
|
|
3086
3086
|
return [this._default, ...this.others];
|
|
3087
3087
|
}
|
|
3088
3088
|
async readFromDelegates(caller) {
|
|
3089
|
+
let firstError;
|
|
3089
3090
|
for (const delegate of this.delegates) {
|
|
3090
3091
|
try {
|
|
3091
3092
|
return await caller(delegate);
|
|
3092
3093
|
}
|
|
3093
3094
|
catch (err) {
|
|
3095
|
+
firstError ?? (firstError = err);
|
|
3094
3096
|
if (err instanceof FileSystemProviderError && err.code === FileSystemProviderErrorCode.FileNotFound) {
|
|
3095
3097
|
continue;
|
|
3096
3098
|
}
|
|
3097
3099
|
throw err;
|
|
3098
3100
|
}
|
|
3099
3101
|
}
|
|
3100
|
-
throw
|
|
3102
|
+
throw firstError;
|
|
3101
3103
|
}
|
|
3102
3104
|
async writeToDelegates(caller) {
|
|
3103
3105
|
await Promise.all(( this.delegates.map(async (delegate) => {
|