xmake-io / xmake-vscode

🍩 A XMake integration in Visual Studio Code
https://xmake.io
Apache License 2.0
228 stars 55 forks source link

Add diagnostic for xmake.lua using `xmake check` #176

Closed LelouchHe closed 1 year ago

LelouchHe commented 1 year ago

This is to add diagnostic info for xmake.lua, when:

  1. file is opened
  2. file is changed, with 10s cool down, like intellisense

It runs xmake check -F $file and parse the output to diagnostic for this file

issue #172

waruqi commented 1 year ago

没看到任何结果显示么

image image
LelouchHe commented 1 year ago

貌似是 line break 的问题. 之前我使用 "\r\n",这个是在 windows 下的, 但应该使用 os.EOL,这样所有系统都可以

已经更新 pr..你再帮忙看下?

另, 我在 verbose 模式下会按行输出 xmake check 的结果,这个可以保留?还是需要删除?

waruqi commented 1 year ago

有了

image
waruqi commented 1 year ago

另, 我在 verbose 模式下会按行输出 xmake check 的结果,这个可以保留?还是需要删除?

如果只是 verbose 下输出,可以保留着 方便调试