Skip to content

Add $lua problem matcher for VS Code tasks - #196

Open
hippi345 wants to merge 1 commit into
LuaLS:masterfrom
hippi345:cursor/add-lua-problem-matcher-bb47
Open

hippi345 wants to merge 1 commit into
LuaLS:masterfrom
hippi345:cursor/add-lua-problem-matcher-bb47

Conversation

@hippi345

Copy link
Copy Markdown

Summary

Adds a contributed $lua problem matcher so shell tasks can parse Lua/LuaJIT stderr and surface errors in the Problems view (e.g. with "problemMatcher": ["$lua"] in tasks.json).

Changes

  • Register contributes.problemMatchers named lua in package.json.
  • Match common runtime error shapes: file:line: message, with an optional …/lua:, lua.exe: or luajit prefix, and fileLocation auto-detection.

Testing

  • Built the client (npm ci, npm run build) after initializing submodules.
  • Built the Addon Manager WebVue (client/webvue).
  • Packaged with vsce package -t linux-x64.
  • Spot-checked the regex against sample error lines. I haven't tried it end to end in VS Code yet.

Closes #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a problemMatcher

1 participant