@bgforge/mls-server 3.16.2 → 3.17.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/README.md +3 -2
- package/out/compile-worker.js +10 -8
- package/out/completion.weidu-baf.json +4 -4
- package/out/server.js +224 -223
- package/out/td-plugin.js +1 -1
- package/out/tree-sitter-weidu_tp2.wasm +0 -0
- package/out/ts-morph-worker.js +165 -165
- package/package.json +8 -4
- package/out/fallout-ssl-engine-proc-docs.json +0 -29
- package/out/fallout-ssl-engine-procedures.json +0 -29
package/out/td-plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var D=Object.create;var
|
|
1
|
+
"use strict";var D=Object.create;var f=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var v=(r,t,e,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of b(t))!h.call(r,o)&&o!==e&&f(r,o,{get:()=>t[o],enumerable:!(a=P(t,o))||a.enumerable});return r};var g=(r,t,e)=>(e=r!=null?D(F(r)):{},v(t||!r||!r.__esModule?f(e,"default",{value:r,enumerable:!0}):e,r));var L=new Set(["keyword","property","method","getter","setter","constructor","call","index","construct","local var","local function","local class","parameter","label","string"]),N=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","ConcatArray","ConstructorParameters","DataView","DataViewConstructor","Date","DateConstructor","DecoratorContext","DecoratorMetadata","DecoratorMetadataObject","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","Intl","Iterable","IterableIterator","Iterator","IteratorObject","IteratorResult","IteratorReturnResult","IteratorYieldResult","JSON","Lowercase","Map","MapConstructor","MapIterator","Math","MethodDecorator","NaN","NewableFunction","NoInfer","NonNullable","Number","NumberConstructor","Object","ObjectConstructor","Omit","OmitThisParameter","ParameterDecorator","Parameters","Partial","Pick","Promise","PromiseConstructor","PromiseConstructorLike","PromiseFulfilledResult","PromiseLike","PromiseRejectedResult","PromiseSettledResult","PropertyDecorator","PropertyDescriptor","PropertyDescriptorMap","PropertyKey","Proxy","ProxyConstructor","ProxyHandler","RangeError","RangeErrorConstructor","Readonly","ReadonlyArray","ReadonlyMap","ReadonlySet","Record","ReferenceError","ReferenceErrorConstructor","Reflect","RegExp","RegExpConstructor","RegExpExecArray","RegExpMatchArray","RegExpStringIterator","Required","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","Uppercase","WeakKey","WeakKeyTypes","WeakMap","WeakMapConstructor","WeakSet","WeakSetConstructor","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","unescape"]);function C(r){return r.filter(t=>L.has(t.kind)||!N.has(t.name))}function A(r,t){return r.filter(e=>!t.has(e.name))}var p=g(require("path")),l=g(require("fs"));function S(r=__dirname){let t=p.resolve(r,"../../server/out/td-runtime.d.ts"),e=p.resolve(r,"td-runtime.d.ts");return l.existsSync(t)?{path:t,exists:!0}:l.existsSync(e)?{path:e,exists:!0}:{path:t,exists:!1}}function B(r,t){let e=t.createSourceFile("td-runtime.d.ts",r,t.ScriptTarget.ES2020,!1,t.ScriptKind.TS),a=new Set;for(let o of e.statements)if(t.isFunctionDeclaration(o)||t.isInterfaceDeclaration(o)||t.isTypeAliasDeclaration(o)||t.isClassDeclaration(o)||t.isEnumDeclaration(o))o.name&&a.add(o.name.text);else if(t.isVariableStatement(o))for(let n of o.declarationList.declarations)t.isIdentifier(n.name)&&a.add(n.name.text);return a}function I(r,t){return B(l.readFileSync(r,"utf-8"),t)}function u(r){return r.endsWith(".td")}function R(r,t,e){let a=r.getScriptFileNames.bind(r);r.getScriptFileNames=()=>{let n=a();return!n.some(i=>u(i))||n.includes(t)?n:[...n,t]};let o=r.getCompilationSettings.bind(r);r.getCompilationSettings=()=>{let n=o();return r.getScriptFileNames().some(c=>u(c))?{...n,target:e.ScriptTarget.ES2020,lib:["lib.es2020.d.ts"]}:n}}function U(r){let t,e=S();function a(n){if(t===void 0)try{t=I(e.path,r.typescript)}catch(i){let c=i instanceof Error?i.message:String(i);n?.info(`[td-plugin] cannot read TD runtime names from ${e.path}: ${c}; TD API names will show in non-.td completions.`),t=new Set}return t}function o(n){return e.exists?(R(n.languageServiceHost,e.path,r.typescript),new Proxy(n.languageService,{get(c,y,x){return y==="getCompletionsAtPosition"?(m,T,E)=>{let s=c.getCompletionsAtPosition(m,T,E);if(s===void 0)return s;if(u(m))return{...s,entries:C(s.entries)};let d=a(n.project?.projectService?.logger);return d.size===0?s:{...s,entries:A(s.entries,d)}}:Reflect.get(c,y,x)}})):(n.project?.projectService?.logger?.info(`[td-plugin] TD runtime not found at ${e.path}; .td completions will not include the TD API.`),n.languageService)}return{create:o}}module.exports=U;
|
|
Binary file
|