@theia/userstorage 1.77.0-next.99 → 1.78.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/lib/browser/index.d.ts +2 -2
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +2 -5
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/user-storage-contribution.js +19 -23
- package/lib/browser/user-storage-contribution.js.map +1 -1
- package/lib/browser/user-storage-frontend-module.js +6 -8
- package/lib/browser/user-storage-frontend-module.js.map +1 -1
- package/lib/browser/user-storage-uri.js +2 -6
- package/lib/browser/user-storage-uri.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -1
- package/lib/package.spec.js.map +1 -1
- package/package.json +14 -5
- package/src/browser/index.ts +2 -2
- package/src/browser/user-storage-contribution.ts +1 -1
- package/src/browser/user-storage-frontend-module.ts +1 -1
package/lib/browser/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './user-storage-uri';
|
|
2
|
-
export * from './user-storage-frontend-module';
|
|
1
|
+
export * from './user-storage-uri.js';
|
|
2
|
+
export * from './user-storage-frontend-module.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAgBA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAgBA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC"}
|
package/lib/browser/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2017 Ericsson and others.
|
|
4
3
|
//
|
|
@@ -14,8 +13,6 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
tslib_1.__exportStar(require("./user-storage-uri"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./user-storage-frontend-module"), exports);
|
|
16
|
+
export * from './user-storage-uri.js';
|
|
17
|
+
export * from './user-storage-frontend-module.js';
|
|
21
18
|
//# sourceMappingURL=index.js.map
|
package/lib/browser/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2020 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,22 +13,20 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const delegating_file_system_provider_1 = require("@theia/filesystem/lib/common/delegating-file-system-provider");
|
|
25
|
-
const user_storage_uri_1 = require("./user-storage-uri");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import URI from '@theia/core/lib/common/uri';
|
|
19
|
+
import { DisposableCollection } from '@theia/core/lib/common/disposable';
|
|
20
|
+
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
21
|
+
import { DelegatingFileSystemProvider } from '@theia/filesystem/lib/common/delegating-file-system-provider';
|
|
22
|
+
import { UserStorageUri } from './user-storage-uri.js';
|
|
26
23
|
let UserStorageContribution = class UserStorageContribution {
|
|
27
24
|
registerFileSystemProviders(service) {
|
|
28
25
|
service.onWillActivateFileSystemProvider(event => {
|
|
29
|
-
if (event.scheme ===
|
|
26
|
+
if (event.scheme === UserStorageUri.scheme) {
|
|
30
27
|
event.waitUntil((async () => {
|
|
31
28
|
const provider = await this.createProvider(service);
|
|
32
|
-
service.registerProvider(
|
|
29
|
+
service.registerProvider(UserStorageUri.scheme, provider);
|
|
33
30
|
})());
|
|
34
31
|
}
|
|
35
32
|
});
|
|
@@ -38,15 +35,15 @@ let UserStorageContribution = class UserStorageContribution {
|
|
|
38
35
|
return service.activateProvider('file');
|
|
39
36
|
}
|
|
40
37
|
async getCongigDirUri() {
|
|
41
|
-
return new
|
|
38
|
+
return new URI(await this.environments.getConfigDirUri());
|
|
42
39
|
}
|
|
43
40
|
async createProvider(service) {
|
|
44
41
|
const delegate = await this.getDelegate(service);
|
|
45
42
|
const configDirUri = await this.getCongigDirUri();
|
|
46
|
-
return new
|
|
43
|
+
return new DelegatingFileSystemProvider(delegate, {
|
|
47
44
|
uriConverter: {
|
|
48
45
|
to: resource => {
|
|
49
|
-
const relativePath =
|
|
46
|
+
const relativePath = UserStorageUri.relative(resource);
|
|
50
47
|
if (relativePath) {
|
|
51
48
|
return configDirUri.resolve(relativePath).normalizePath();
|
|
52
49
|
}
|
|
@@ -55,20 +52,19 @@ let UserStorageContribution = class UserStorageContribution {
|
|
|
55
52
|
from: resource => {
|
|
56
53
|
const relativePath = configDirUri.relative(resource);
|
|
57
54
|
if (relativePath) {
|
|
58
|
-
return
|
|
55
|
+
return UserStorageUri.resolve(relativePath);
|
|
59
56
|
}
|
|
60
57
|
return undefined;
|
|
61
58
|
}
|
|
62
59
|
}
|
|
63
|
-
}, new
|
|
60
|
+
}, new DisposableCollection(delegate.watch(configDirUri, { excludes: [], recursive: true })));
|
|
64
61
|
}
|
|
65
62
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
(0, inversify_1.inject)(env_variables_1.EnvVariablesServer),
|
|
69
|
-
tslib_1.__metadata("design:type", Object)
|
|
63
|
+
__decorate([
|
|
64
|
+
inject(EnvVariablesServer)
|
|
70
65
|
], UserStorageContribution.prototype, "environments", void 0);
|
|
71
|
-
|
|
72
|
-
|
|
66
|
+
UserStorageContribution = __decorate([
|
|
67
|
+
injectable()
|
|
73
68
|
], UserStorageContribution);
|
|
69
|
+
export { UserStorageContribution };
|
|
74
70
|
//# sourceMappingURL=user-storage-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-storage-contribution.js","sourceRoot":"","sources":["../../src/browser/user-storage-contribution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-storage-contribution.js","sourceRoot":"","sources":["../../src/browser/user-storage-contribution.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,OAAO,E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;oBAC9D,CAAC;oBACD,OAAO,SAAS,CAAC;gBACrB,CAAC;gBACD,IAAI,EAAE,QAAQ,CAAC,EAAE;oBACb,MAAM,YAAY,GAAG,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;oBACrD,IAAI,YAAY,EAAE,CAAC;wBACf,OAAO,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;oBAChD,CAAC;oBACD,OAAO,SAAS,CAAC;gBACrB,CAAC;aACJ;SACJ,EAAE,IAAI,oBAAoB,CACvB,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAClE,CAAC,CAAC;IACP,CAAC;CAEJ,CAAA;AA9CsB;IADlB,MAAM,CAAC,kBAAkB,CAAC;6DACyB;AAH3C,uBAAuB;IADnC,UAAU,EAAE;GACA,uBAAuB,CAiDnC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2017 Ericsson and others.
|
|
4
3
|
//
|
|
@@ -14,12 +13,11 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
bind(
|
|
23
|
-
bind(file_service_1.FileServiceContribution).toService(user_storage_contribution_1.UserStorageContribution);
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { FileServiceContribution } from '@theia/filesystem/lib/browser/file-service';
|
|
18
|
+
import { UserStorageContribution } from './user-storage-contribution.js';
|
|
19
|
+
export default new ContainerModule(bind => {
|
|
20
|
+
bind(UserStorageContribution).toSelf().inSingletonScope();
|
|
21
|
+
bind(FileServiceContribution).toService(UserStorageContribution);
|
|
24
22
|
});
|
|
25
23
|
//# sourceMappingURL=user-storage-frontend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-storage-frontend-module.js","sourceRoot":"","sources":["../../src/browser/user-storage-frontend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-storage-frontend-module.js","sourceRoot":"","sources":["../../src/browser/user-storage-frontend-module.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,uBAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,uBAAuB,CAAC,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;AACrE,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2017 Ericsson and others.
|
|
4
3
|
//
|
|
@@ -14,9 +13,6 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const uri_1 = tslib_1.__importDefault(require("@theia/core/lib/common/uri"));
|
|
21
|
-
exports.UserStorageUri = new uri_1.default('user-storage:/user');
|
|
16
|
+
import URI from '@theia/core/lib/common/uri';
|
|
17
|
+
export const UserStorageUri = new URI('user-storage:/user');
|
|
22
18
|
//# sourceMappingURL=user-storage-uri.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-storage-uri.js","sourceRoot":"","sources":["../../src/browser/user-storage-uri.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-storage-uri.js","sourceRoot":"","sources":["../../src/browser/user-storage-uri.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,oBAAoB,CAAC,CAAC"}
|
package/lib/package.spec.d.ts
CHANGED
package/lib/package.spec.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2020 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -24,4 +23,5 @@
|
|
|
24
23
|
describe('userstorage package', () => {
|
|
25
24
|
it('support code coverage statistics', () => true);
|
|
26
25
|
});
|
|
26
|
+
export {};
|
|
27
27
|
//# sourceMappingURL=package.spec.js.map
|
package/lib/package.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF;;;;;;qBAMqB;AAErB,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IAEjC,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEvD,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/userstorage",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.0-next.0+b0e3080cb",
|
|
4
4
|
"description": "Theia - User Storage Extension",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.
|
|
7
|
-
"@theia/filesystem": "1.
|
|
7
|
+
"@theia/core": "1.78.0-next.0+b0e3080cb",
|
|
8
|
+
"@theia/filesystem": "1.78.0-next.0+b0e3080cb",
|
|
8
9
|
"tslib": "^2.8.1"
|
|
9
10
|
},
|
|
10
11
|
"publishConfig": {
|
|
@@ -40,10 +41,18 @@
|
|
|
40
41
|
"watch": "theiaext watch"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@theia/ext-scripts": "1.
|
|
44
|
+
"@theia/ext-scripts": "1.77.0"
|
|
44
45
|
},
|
|
45
46
|
"nyc": {
|
|
46
47
|
"extends": "../../configs/nyc.json"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b0e3080cb1b1fff5616555f1bf679834129da171",
|
|
50
|
+
"exports": {
|
|
51
|
+
"./package.json": "./package.json",
|
|
52
|
+
"./lib/browser": "./lib/browser/index.js",
|
|
53
|
+
"./lib/*.json": "./lib/*.json",
|
|
54
|
+
"./lib/*.js": "./lib/*.js",
|
|
55
|
+
"./lib/*": "./lib/*.js",
|
|
56
|
+
"./*": "./*"
|
|
57
|
+
}
|
|
49
58
|
}
|
package/src/browser/index.ts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './user-storage-uri';
|
|
18
|
-
export * from './user-storage-frontend-module';
|
|
17
|
+
export * from './user-storage-uri.js';
|
|
18
|
+
export * from './user-storage-frontend-module.js';
|
|
@@ -21,7 +21,7 @@ import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
|
21
21
|
import { FileSystemProvider } from '@theia/filesystem/lib/common/files';
|
|
22
22
|
import { FileService, FileServiceContribution } from '@theia/filesystem/lib/browser/file-service';
|
|
23
23
|
import { DelegatingFileSystemProvider } from '@theia/filesystem/lib/common/delegating-file-system-provider';
|
|
24
|
-
import { UserStorageUri } from './user-storage-uri';
|
|
24
|
+
import { UserStorageUri } from './user-storage-uri.js';
|
|
25
25
|
import { MaybePromise } from '@theia/core';
|
|
26
26
|
|
|
27
27
|
@injectable()
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
18
|
import { FileServiceContribution } from '@theia/filesystem/lib/browser/file-service';
|
|
19
|
-
import { UserStorageContribution } from './user-storage-contribution';
|
|
19
|
+
import { UserStorageContribution } from './user-storage-contribution.js';
|
|
20
20
|
|
|
21
21
|
export default new ContainerModule(bind => {
|
|
22
22
|
bind(UserStorageContribution).toSelf().inSingletonScope();
|