We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug in lua-language-server v2.4.8 , Lua.workspace.ignoreDir setting not work sometimes.
Lua.workspace.ignoreDir
for example: mydir:
root/ file.lua sub/ file.lua
root/sub/file.lua will not be preload by setting like this:
root/sub/file.lua
"Lua.workspace.ignoreDir": [ "*.lua", "!sub/*.lua" ]
but will be preload if config in .gitignore:
*.lua !sub/*.lua
Environment (please complete the following information):
Log
use Lua.workspace.ignoreDir setting
[11:05:53.803][info] [#0:script\workspace\workspace.lua:330]: Preload start. [11:05:53.803][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/CVS [11:05:53.803][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/Thumbs.db [11:05:53.803][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/.git [11:05:53.803][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/.svn [11:05:53.803][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/.DS_Store [11:05:53.803][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/.hg [11:05:53.803][info] [#0:script\workspace\workspace.lua:134]: Ignore directory: !sub/*.lua [11:05:53.803][info] [#0:script\workspace\workspace.lua:134]: Ignore directory: *.lua
use .gitignore
[11:16:38.100][info] [#0:script\workspace\workspace.lua:330]: Preload start. [11:16:38.100][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/CVS [11:16:38.100][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/Thumbs.db [11:16:38.100][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/.git [11:16:38.100][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/.svn [11:16:38.100][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/.DS_Store [11:16:38.100][info] [#0:script\workspace\workspace.lua:89]: Ignore by exclude: **/.hg [11:16:38.116][info] [#0:script\workspace\workspace.lua:99]: Ignore by .gitignore: *.lua [11:16:38.116][info] [#0:script\workspace\workspace.lua:99]: Ignore by .gitignore: !sub/*.lua
The text was updated successfully, but these errors were encountered:
compare the log, I realize that maybe it is the config order result in bug.
this worked for me.
"Lua.workspace.ignoreDir": [ "!sub/*.lua", "*.lua" ]
Sorry, something went wrong.
01270bd
No branches or pull requests
Describe the bug
in lua-language-server v2.4.8 ,
Lua.workspace.ignoreDir
setting not work sometimes.for example:
mydir:
root/sub/file.lua
will not be preload by setting like this:but will be preload if config in .gitignore:
Environment (please complete the following information):
Log
use
Lua.workspace.ignoreDir
settinguse .gitignore
The text was updated successfully, but these errors were encountered: