@theia/api-tests 1.65.0-next.19 → 1.65.0-next.28
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,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/api-tests",
|
|
3
|
-
"version": "1.65.0-next.
|
|
3
|
+
"version": "1.65.0-next.28+7c6aec352",
|
|
4
4
|
"description": "Theia API tests",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.65.0-next.
|
|
6
|
+
"@theia/core": "1.65.0-next.28+7c6aec352"
|
|
7
7
|
},
|
|
8
8
|
"license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
|
|
9
9
|
"repository": {
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "7c6aec3525bb27b346e55cd46899d6b82145f6bd"
|
|
24
24
|
}
|
|
@@ -30,12 +30,13 @@ describe('Launch Preferences', function () {
|
|
|
30
30
|
|
|
31
31
|
const { assert } = chai;
|
|
32
32
|
|
|
33
|
-
const { PreferenceProvider } = require('@theia/core/lib/
|
|
34
|
-
const { PreferenceService
|
|
33
|
+
const { PreferenceProvider } = require('@theia/core/lib/common');
|
|
34
|
+
const { PreferenceService } = require('@theia/core/lib/common/preferences/preference-service');
|
|
35
|
+
const { PreferenceScope } = require('@theia/core/lib/common/preferences/preference-scope');
|
|
35
36
|
const { WorkspaceService } = require('@theia/workspace/lib/browser/workspace-service');
|
|
36
37
|
const { FileService } = require('@theia/filesystem/lib/browser/file-service');
|
|
37
38
|
const { FileResourceResolver } = require('@theia/filesystem/lib/browser/file-resource');
|
|
38
|
-
const { AbstractResourcePreferenceProvider } = require('@theia/preferences/lib/
|
|
39
|
+
const { AbstractResourcePreferenceProvider } = require('@theia/preferences/lib/common/abstract-resource-preference-provider');
|
|
39
40
|
const { waitForEvent } = require('@theia/core/lib/common/promise-util');
|
|
40
41
|
|
|
41
42
|
const container = window.theia.container;
|
package/src/preferences.spec.js
CHANGED
|
@@ -19,27 +19,29 @@
|
|
|
19
19
|
describe('Preferences', function () {
|
|
20
20
|
this.timeout(5_000);
|
|
21
21
|
const { assert } = chai;
|
|
22
|
-
const { PreferenceProvider } = require('@theia/core/lib/
|
|
23
|
-
const { PreferenceService, PreferenceScope } = require('@theia/core/lib/
|
|
22
|
+
const { PreferenceProvider } = require('@theia/core/lib/common/preferences/preference-provider');
|
|
23
|
+
const { PreferenceService, PreferenceScope } = require('@theia/core/lib/common/preferences');
|
|
24
24
|
const { FileService } = require('@theia/filesystem/lib/browser/file-service');
|
|
25
|
-
const { PreferenceLanguageOverrideService } = require('@theia/core/lib/
|
|
25
|
+
const { PreferenceLanguageOverrideService } = require('@theia/core/lib/common/preferences/preference-language-override-service');
|
|
26
26
|
const { MonacoTextModelService } = require('@theia/monaco/lib/browser/monaco-text-model-service');
|
|
27
|
-
const {
|
|
27
|
+
const { PreferenceSchemaService } = require('@theia/core/lib/common/preferences')
|
|
28
28
|
const { container } = window.theia;
|
|
29
|
-
/** @type {import ('@theia/core/lib/
|
|
29
|
+
/** @type {import ('@theia/core/lib/common/preferences/preference-service').PreferenceService} */
|
|
30
30
|
const preferenceService = container.get(PreferenceService);
|
|
31
|
-
/** @type {import ('@theia/core/lib/
|
|
31
|
+
/** @type {import ('@theia/core/lib/common/preferences/preference-language-override-service').PreferenceLanguageOverrideService} */
|
|
32
32
|
const overrideService = container.get(PreferenceLanguageOverrideService);
|
|
33
33
|
const fileService = container.get(FileService);
|
|
34
34
|
/** @type {import ('@theia/core/lib/common/uri').default} */
|
|
35
35
|
const uri = preferenceService.getConfigUri(PreferenceScope.Workspace);
|
|
36
36
|
/** @type {import('@theia/preferences/lib/browser/folders-preferences-provider').FoldersPreferencesProvider} */
|
|
37
37
|
const folderPreferences = container.getNamed(PreferenceProvider, PreferenceScope.Folder);
|
|
38
|
-
/** @type
|
|
39
|
-
const
|
|
38
|
+
/** @type PreferenceSchemaService */
|
|
39
|
+
const schemaService = container.get(PreferenceSchemaService);
|
|
40
40
|
const modelService = container.get(MonacoTextModelService);
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
const overrideIdentifier = 'bargle-noddle-zaus'; // Probably not in our preference files...
|
|
44
|
+
schemaService.registerOverrideIdentifier(overrideIdentifier);
|
|
43
45
|
const tabSize = 'editor.tabSize';
|
|
44
46
|
const fontSize = 'editor.fontSize';
|
|
45
47
|
const override = overrideService.markLanguageOverride(overrideIdentifier);
|
|
@@ -91,7 +93,7 @@ describe('Preferences', function () {
|
|
|
91
93
|
assert.isDefined(uri, 'The workspace config URI should be defined!');
|
|
92
94
|
fileExistsBeforehand = await fileService.exists(uri);
|
|
93
95
|
contentBeforehand = await fileService.read(uri).then(({ value }) => value).catch(() => '');
|
|
94
|
-
|
|
96
|
+
schemaService.registerOverrideIdentifier(overrideIdentifier);
|
|
95
97
|
await deleteAllValues();
|
|
96
98
|
});
|
|
97
99
|
|
package/src/saveable.spec.js
CHANGED
|
@@ -22,7 +22,7 @@ describe('Saveable', function () {
|
|
|
22
22
|
|
|
23
23
|
const { EditorManager } = require('@theia/editor/lib/browser/editor-manager');
|
|
24
24
|
const { EditorWidget } = require('@theia/editor/lib/browser/editor-widget');
|
|
25
|
-
const { PreferenceService } = require('@theia/core/lib/
|
|
25
|
+
const { PreferenceService } = require('@theia/core/lib/common/preferences/preference-service');
|
|
26
26
|
const { Saveable, SaveableWidget } = require('@theia/core/lib/browser/saveable');
|
|
27
27
|
const { WorkspaceService } = require('@theia/workspace/lib/browser/workspace-service');
|
|
28
28
|
const { FileService } = require('@theia/filesystem/lib/browser/file-service');
|
|
@@ -38,7 +38,7 @@ describe('Saveable', function () {
|
|
|
38
38
|
const editorManager = container.get(EditorManager);
|
|
39
39
|
const workspaceService = container.get(WorkspaceService);
|
|
40
40
|
const fileService = container.get(FileService);
|
|
41
|
-
/** @type {import('@theia/core/lib/
|
|
41
|
+
/** @type {import('@theia/core/lib/common/preferences/preference-service').PreferenceService} */
|
|
42
42
|
const preferences = container.get(PreferenceService);
|
|
43
43
|
|
|
44
44
|
/** @type {EditorWidget & SaveableWidget} */
|