-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Priority: CriticalBlocks release - must fix immediatelyBlocks release - must fix immediatelybugSomething isn't workingSomething isn't workinglspLanguage Server Protocol relatedLanguage Server Protocol related
Milestone
Description
Problem
iec61131-definitions/ folder contains runtime definition files (TON.st, CTU.st, etc.) that MUST ship in the .vsix package for member access navigation to work. However, webpack bundling may not include these files.
Evidence
- Comment in
package.jsonline 39: "iec61131-definitions folder is required at runtime" .vscodeignorehas comment "DO NOT EXCLUDE" for this folder- Webpack config bundles only TS files, not .st definition files
- No explicit copy step for
iec61131-definitions/in build process - Member access provider navigates to these files (member-access-provider.ts)
Impact
In production (.vsix installed by users):
- Go to definition for TON.IN, TON.PT fails
- Member navigation broken for all standard FBs
- Hover tooltips may fail
- Critical feature degradation
Works in development because files exist in source tree
Fix Required
Add CopyWebpackPlugin to webpack.config.js:
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
// ... existing config
plugins: [
new CopyPlugin({
patterns: [
{ from: 'iec61131-definitions', to: 'iec61131-definitions' }
]
})
]
}Installation
npm install --save-dev copy-webpack-pluginVerification Steps
- Add CopyWebpackPlugin configuration
- Run
npm run compile - Run
vsce package - Extract .vsix (it's a ZIP file)
- Verify
extension/iec61131-definitions/exists with all .st files - Install packaged .vsix in clean VS Code
- Test "Go to Definition" on TON.IN, CTU.CU, etc.
Files Affected
webpack.config.js- Add CopyPluginpackage.json- Add copy-webpack-plugin devDependency
Acceptance Criteria
- copy-webpack-plugin installed
- webpack.config.js configured
-
vsce packageincludes iec61131-definitions/ - Member navigation works in packaged extension
- .vsix file size still reasonable (<5MB)
Priority
CRITICAL - Blocks production release, core feature broken
Related
- Member access provider depends on these files
- Part of LSP server functionality
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Priority: CriticalBlocks release - must fix immediatelyBlocks release - must fix immediatelybugSomething isn't workingSomething isn't workinglspLanguage Server Protocol relatedLanguage Server Protocol related