@spyglassmc/core 0.4.15 → 0.4.16
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/service/Config.d.ts
CHANGED
|
@@ -112,6 +112,12 @@ export interface EnvConfig {
|
|
|
112
112
|
}>>;
|
|
113
113
|
permissionLevel: 1 | 2 | 3 | 4;
|
|
114
114
|
plugins: string[];
|
|
115
|
+
/**
|
|
116
|
+
* Whether to enable caching of mcdoc simplified types.
|
|
117
|
+
*
|
|
118
|
+
* May become corrupt after changing game versions, so this is currently disabled by default.
|
|
119
|
+
*/
|
|
120
|
+
enableMcdocCaching: boolean;
|
|
115
121
|
/**
|
|
116
122
|
* Makes the file-watcher use polling to watch for file changes.
|
|
117
123
|
* Comes at a performance cost for very large datapacks.
|
package/lib/service/Config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import rfdc from 'rfdc';
|
|
2
2
|
import { Arrayable, bufferToString, merge, TypePredicates } from '../common/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { DataFileCategories, RegistryCategories } from '../symbol/index.js';
|
|
4
4
|
export var LinterSeverity;
|
|
5
5
|
(function (LinterSeverity) {
|
|
6
6
|
function is(value) {
|
|
@@ -139,6 +139,7 @@ export const VanillaConfig = {
|
|
|
139
139
|
permissionLevel: 2,
|
|
140
140
|
plugins: [],
|
|
141
141
|
mcmetaSummaryOverrides: {},
|
|
142
|
+
enableMcdocCaching: false,
|
|
142
143
|
useFilePolling: false,
|
|
143
144
|
},
|
|
144
145
|
format: {
|
|
@@ -193,7 +194,7 @@ export const VanillaConfig = {
|
|
|
193
194
|
{
|
|
194
195
|
if: [
|
|
195
196
|
{ category: RegistryCategories, namespace: 'minecraft' },
|
|
196
|
-
{ category: [...
|
|
197
|
+
{ category: [...DataFileCategories, 'bossbar', 'objective', 'team'] },
|
|
197
198
|
],
|
|
198
199
|
then: { report: 'warning' },
|
|
199
200
|
},
|
|
@@ -186,7 +186,7 @@ export class ArchiveUriSupporter {
|
|
|
186
186
|
getDataInArchive(archiveName, pathInArchive) {
|
|
187
187
|
const entries = this.entries.get(archiveName);
|
|
188
188
|
if (!entries) {
|
|
189
|
-
throw
|
|
189
|
+
throw this.externals.error.createKind('ENOENT', `Archive “${archiveName}” has not been loaded into the memory`);
|
|
190
190
|
}
|
|
191
191
|
const entry = entries.get(pathInArchive);
|
|
192
192
|
if (!entry) {
|
package/lib/service/Project.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"rfdc": "^1.3.0",
|
|
25
25
|
"vscode-languageserver-textdocument": "^1.0.4",
|
|
26
26
|
"whatwg-url": "^14.0.0",
|
|
27
|
-
"@spyglassmc/locales": "0.3.
|
|
27
|
+
"@spyglassmc/locales": "0.3.10"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/decompress": "^4.2.3",
|