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,5 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
// WRN editor language server source hash: 13b4b0b80a52f1e883211f1b5193ad6ab28c582f526f0a28747ebf71307bbc0d
|
||||
// WRN editor language server source hash: 41ff6d71dda68160ce6236e7a1a07ee8164c1c6173ba71e392aef4c3bf455390
|
||||
// WRN editor language server generator hash: f593a44aaf05495b789ce7a3086bee1eebb951b884d41c0e017bbcfe5f547e72
|
||||
// @bun @bun-cjs
|
||||
(function(exports, require, module, __filename, __dirname) {var __create = Object.create;
|
||||
@@ -171456,6 +171456,15 @@ 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("{"))
|
||||
@@ -171849,6 +171858,8 @@ function retainedImports(ast) {
|
||||
return ast.structuredImports.filter((entry) => {
|
||||
if (entry.source.endsWith(".wrn"))
|
||||
return false;
|
||||
if (!entry.typeOnly && entry.source === "@wrnexus/ui")
|
||||
return false;
|
||||
if (entry.typeOnly)
|
||||
return true;
|
||||
return !entry.source.startsWith("@/components/") && !entry.source.startsWith("@/layouts/") && !entry.source.startsWith("@/stores/");
|
||||
|
||||
Reference in New Issue
Block a user