@bgforge/mls-server 3.0.1 → 3.1.3
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/README.md +4 -4
- package/out/completion.fallout-ssl.json +2 -2
- package/out/completion.weidu-tp2.json +66 -66
- package/out/hover.fallout-ssl.json +2 -2
- package/out/hover.weidu-tp2.json +66 -66
- package/out/server.js +454 -457
- package/out/td-plugin.js +1 -1
- package/out/tree-sitter-weidu_d.wasm +0 -0
- package/package.json +4 -2
package/out/td-plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var x=Object.create;var C=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var O=(t,r,e,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of D(r))!v.call(t,o)&&o!==e&&C(t,o,{get:()=>r[o],enumerable:!(a=b(r,o))||a.enumerable});return t};var g=(t,r,e)=>(e=t!=null?x(N(t)):{},O(r||!t||!t.__esModule?C(e,"default",{value:t,enumerable:!0}):e,t));var E=new Set(["keyword","property","method","getter","setter","constructor","call","index","construct","local var","local function","local class","parameter","label","string"]),L=new Set(["Array","ArrayBuffer","ArrayBufferConstructor","ArrayBufferLike","ArrayBufferTypes","ArrayBufferView","ArrayConstructor","ArrayIterator","ArrayLike","AsyncGenerator","AsyncGeneratorFunction","AsyncGeneratorFunctionConstructor","AsyncIterable","AsyncIterableIterator","AsyncIterator","AsyncIteratorObject","Atomics","Awaited","BigInt","BigInt64Array","BigInt64ArrayConstructor","BigIntConstructor","BigIntToLocaleStringOptions","BigUint64Array","BigUint64ArrayConstructor","Boolean","BooleanConstructor","BuiltinIteratorReturn","CallableFunction","Capitalize","ClassAccessorDecoratorContext","ClassAccessorDecoratorResult","ClassAccessorDecoratorTarget","ClassDecorator","ClassDecoratorContext","ClassFieldDecoratorContext","ClassGetterDecoratorContext","ClassMemberDecoratorContext","ClassMethodDecoratorContext","ClassSetterDecoratorContext","Collator","CollatorConstructor","CollatorOptions","ConcatArray","ConstructorParameters","DataView","DataViewConstructor","Date","DateConstructor","DateTimeFormat","DateTimeFormatConstructor","DateTimeFormatOptions","DateTimeFormatPart","DateTimeFormatPartTypes","DateTimeFormatPartTypesRegistry","DecoratorContext","DecoratorMetadata","DecoratorMetadataObject","DisplayNames","DisplayNamesFallback","DisplayNamesLanguageDisplay","DisplayNamesOptions","DisplayNamesType","Error","ErrorConstructor","EvalError","EvalErrorConstructor","Exclude","Extract","FlatArray","Float32Array","Float32ArrayConstructor","Float64Array","Float64ArrayConstructor","Function","FunctionConstructor","Generator","GeneratorFunction","GeneratorFunctionConstructor","IArguments","ImportAssertions","ImportAttributes","ImportCallOptions","ImportMeta","Infinity","InstanceType","Int16Array","Int16ArrayConstructor","Int32Array","Int32ArrayConstructor","Int8Array","Int8ArrayConstructor","Iterable","IterableIterator","Iterator","IteratorObject","IteratorResult","IteratorReturnResult","IteratorYieldResult","JSON","LDMLPluralRule","Locale","LocaleCollationCaseFirst","LocaleHourCycleKey","LocaleOptions","LocalesArgument","Lowercase","Map","MapConstructor","MapIterator","Math","MethodDecorator","NaN","NewableFunction","NoInfer","NonNullable","Number","NumberConstructor","NumberFormat","NumberFormatConstructor","NumberFormatOptions","NumberFormatOptionsCurrencyDisplay","NumberFormatOptionsCurrencyDisplayRegistry","NumberFormatOptionsSignDisplay","NumberFormatOptionsSignDisplayRegistry","NumberFormatOptionsStyle","NumberFormatOptionsStyleRegistry","NumberFormatOptionsUseGrouping","NumberFormatOptionsUseGroupingRegistry","NumberFormatPart","NumberFormatPartTypeRegistry","NumberFormatPartTypes","Object","ObjectConstructor","Omit","OmitThisParameter","ParameterDecorator","Parameters","Partial","Pick","PluralRuleType","PluralRules","PluralRulesConstructor","PluralRulesOptions","Promise","PromiseConstructor","PromiseConstructorLike","PromiseFulfilledResult","PromiseLike","PromiseRejectedResult","PromiseSettledResult","PropertyDecorator","PropertyDescriptor","PropertyDescriptorMap","PropertyKey","Proxy","ProxyConstructor","ProxyHandler","RangeError","RangeErrorConstructor","Readonly","ReadonlyArray","ReadonlyMap","ReadonlySet","Record","ReferenceError","ReferenceErrorConstructor","RegExp","RegExpConstructor","RegExpExecArray","RegExpMatchArray","RegExpStringIterator","RelativeTimeFormat","RelativeTimeFormatLocaleMatcher","RelativeTimeFormatNumeric","RelativeTimeFormatOptions","RelativeTimeFormatPart","RelativeTimeFormatStyle","RelativeTimeFormatUnit","RelativeTimeFormatUnitSingular","Required","ResolvedCollatorOptions","ResolvedDateTimeFormatOptions","ResolvedDisplayNamesOptions","ResolvedNumberFormatOptions","ResolvedNumberFormatOptionsUseGrouping","ResolvedPluralRulesOptions","ResolvedRelativeTimeFormatOptions","ReturnType","Set","SetConstructor","SetIterator","SharedArrayBuffer","SharedArrayBufferConstructor","String","StringConstructor","StringIterator","Symbol","SymbolConstructor","SyntaxError","SyntaxErrorConstructor","TemplateStringsArray","ThisParameterType","ThisType","TypeError","TypeErrorConstructor","TypedPropertyDescriptor","URIError","URIErrorConstructor","Uint16Array","Uint16ArrayConstructor","Uint32Array","Uint32ArrayConstructor","Uint8Array","Uint8ArrayConstructor","Uint8ClampedArray","Uint8ClampedArrayConstructor","Uncapitalize","UnicodeBCP47LocaleIdentifier","Uppercase","WeakKey","WeakKeyTypes","WeakMap","WeakMapConstructor","WeakSet","WeakSetConstructor","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","unescape","apply","construct","defineProperty","deleteProperty","get","getCanonicalLocales","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]);function f(t){return t.filter(r=>E.has(r.kind)||!L.has(r.name))}function R(t,r){return t.filter(e=>!r.has(e.name))}var m=g(require("path")),i=g(require("fs"));function A(){let t=m.resolve(__dirname,"../../server/out/td-runtime.d.ts"),r=m.resolve(__dirname,"../../@bgforge/mls-server/out/td-runtime.d.ts");return i.existsSync(t)?{path:t,exists:!0}:i.existsSync(r)?{path:r,exists:!0}:{path:t,exists:!1}}function h(t){let r=new Set,e=/^[ \t]*(?:declare\s+)?(?:function|interface|type|var|const|let|class|enum)\s+(\w+)/gm,a;for(;(a=e.exec(t))!==null;){let o=a[1];o!==void 0&&r.add(o)}return r}function F(t){try{let r=i.readFileSync(t,"utf-8");return h(r)}catch{return new Set}}function c(t){return t.endsWith(".td")}function S(t,r,e){let a=t.getScriptFileNames.bind(t);t.getScriptFileNames=()=>{let n=a();return!n.some(u=>c(u))||n.includes(r)?n:[...n,r]};let o=t.getCompilationSettings.bind(t);t.getCompilationSettings=()=>{let n=o();return t.getScriptFileNames().some(l=>c(l))?{...n,target:e.ScriptTarget.ES2020,lib:["lib.es2020.d.ts"]}:n}}function U(t){let r,e=A();function a(){return r===void 0&&(r=F(e.path)),r}function o(n){return e.exists?(S(n.languageServiceHost,e.path,t.typescript),new Proxy(n.languageService,{get(l,p,T){return p==="getCompletionsAtPosition"?(y,I,P)=>{let s=l.getCompletionsAtPosition(y,I,P);if(s===void 0)return s;if(c(y))return{...s,entries:f(s.entries)};let d=a();return d.size===0?s:{...s,entries:R(s.entries,d)}}:Reflect.get(l,p,T)}})):n.languageService}return{create:o}}module.exports=U;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgforge/mls-server",
|
|
3
3
|
"description": "LSP server for Fallout SSL, WeiDU (BAF/D/TP2), and related modding languages",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.3",
|
|
5
5
|
"author": "BGforge",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
7
|
"main": "out/server.js",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/BGforgeNet/VScode-BGforge-MLS"
|
|
21
|
+
"url": "https://github.com/BGforgeNet/VScode-BGforge-MLS",
|
|
22
|
+
"directory": "server"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://github.com/BGforgeNet/VScode-BGforge-MLS",
|
|
24
25
|
"bugs": {
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
],
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@supercharge/promise-pool": "^2.4.0",
|
|
38
|
+
"dependency-graph": "^1.0.0",
|
|
37
39
|
"esbuild-wasm": "^0.24.2",
|
|
38
40
|
"fast-glob": "^3.3.3",
|
|
39
41
|
"ini": "^6.0.0",
|