build(editor): rebuild the bundled compiler and language server
The checked-in bundles predated the typecheck fix that resolves @wrnexus/ui imports as component contracts, so VS Code reported "has no exported member" for components such as Grid while the CLI typechecker passed. The package exports nothing by design — components resolve by directory scan — so the stale bundle was the whole defect. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
// Generated by scripts/build-editor-compiler.mjs. Do not edit directly.
|
||||
// WRN editor compiler source hash: 55b8301cff11aaee86a6692d86801e583eae0764af059dc10fdd83c047f4891b
|
||||
// WRN editor compiler source hash: c0e3e8c72c68cb3c182e2de84c13ef0b8921579d9b081550002b8cdbe4af3397
|
||||
// WRN editor compiler generator hash: c71e7fe4258c97b73b384ff14b321f0cf0b30cc2ed0322f5f84b04e757159b18
|
||||
// Generated with TypeScript: 5.9.3
|
||||
const __nodeRequire = require;
|
||||
@@ -4363,6 +4363,17 @@ function astDiagnostics(ast, options) {
|
||||
interactive = true;
|
||||
const tag = node.tag.toLowerCase();
|
||||
for (const attribute of node.attrs) {
|
||||
if (attribute.event && (attribute.name === "for" || attribute.name === "key")) {
|
||||
diagnostics.push({
|
||||
code: "WRN-TEMPLATE-LOOP-DIRECTIVE",
|
||||
severity: "error",
|
||||
message: `@${attribute.name} is an event binding, not a loop directive.`,
|
||||
hint: attribute.name === "for"
|
||||
? 'Use data-for="item in items".'
|
||||
: 'Use data-key="item.id" alongside data-for.',
|
||||
file: options.file,
|
||||
});
|
||||
}
|
||||
if (attribute.event || attribute.boolean || !urlAttributes.has(attribute.name.toLowerCase()))
|
||||
continue;
|
||||
if (attribute.value.includes("{"))
|
||||
@@ -7017,7 +7028,9 @@ function validateTypedInitializer(name, annotation, expression) {
|
||||
* Server output retains the original typed source.
|
||||
*/
|
||||
function eraseFunctionTypes(source) {
|
||||
return source.replace(/(\b(?:async\s+)?function\s+[A-Za-z_$][\w$]*\s*\()([^)]*)(\)\s*)(?::\s*([^{}=>]+)\s*)?(\{)/g, (_whole, open, params, close, _returnType, brace) => {
|
||||
return source
|
||||
.replace(/\bcatch\s*\(\s*([A-Za-z_$][\w$]*)\s*:\s*(?:any|unknown)\s*\)/g, "catch ($1)")
|
||||
.replace(/(\b(?:async\s+)?function\s+[A-Za-z_$][\w$]*\s*\()([^)]*)(\)\s*)(?::\s*([^{}=>]+)\s*)?(\{)/g, (_whole, open, params, close, _returnType, brace) => {
|
||||
const plainParams = params
|
||||
.split(",")
|
||||
.map((param) => param.replace(/([A-Za-z_$][\w$]*)(\?)?\s*:\s*([^=]+?)(?=\s*=|$)/, "$1").trim())
|
||||
|
||||
Reference in New Issue
Block a user