Skip to content
New issue

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

Files in config.lua dont work #1284

Closed
mkster opened this issue Jul 5, 2022 · 3 comments
Closed

Files in config.lua dont work #1284

mkster opened this issue Jul 5, 2022 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@mkster
Copy link

mkster commented Jul 5, 2022

Describe the bug
Setting some files to be matched in config.lua dont work

To Reproduce
Steps to reproduce the behavior:
try my extension: https://marketplace.visualstudio.com/items?itemName=AtomontageInc.vscode-atomontage-lua

Environment (please complete the following information):

  • OS: Windows
  • Client: VSCode
@mkster
Copy link
Author

mkster commented Jul 5, 2022

Also seems like words only match after pressing doing one file change and only if editing a file containing the word, not if the word is in any other file in the workspace

@mkster mkster closed this as completed Jul 5, 2022
@mkster mkster reopened this Jul 5, 2022
@sumneko
Copy link
Collaborator

sumneko commented Jul 6, 2022

I can't understand what you mean, please tell more details.

@sumneko sumneko added the Info Needed More information is required label Jul 6, 2022
@mkster
Copy link
Author

mkster commented Jul 6, 2022

I have created a config.lua like this:

-- if not set, the folder name will be used
name    = 'Atomontage'
-- list of matched words
--words   = { "self%:Attach", "self%:Start" }
-- list or matched file names. `.lua`, `.dll` and `.so` only
files   = {'Sky%.lua', "Camera Controller%.lua", "Brush%.lua", "Voxel Inspector%.lua"} --those dont work?
-- lsit of settings to be changed
configs = {
    {
        key    = 'Lua.runtime.version',
        action = 'set',
        value  = 'Lua 5.3',
    },
    {
        key    = 'Lua.runtime.builtin',
        action = 'prop',
        prop   = 'io',
        value  = 'disable',
    },
    {
        key    = 'Lua.runtime.builtin',
        action = 'prop',
        prop   = 'os',
        value  = 'disable',
    },
}

and my project contains some of the file names at root i.e. Sky.lua
image

however the dialogue to enable my third party library doesn't show up

@sumneko sumneko added bug Something isn't working and removed Info Needed More information is required labels Jul 6, 2022
@sumneko sumneko added this to the 3.5.0 milestone Jul 6, 2022
@sumneko sumneko closed this as completed in 3b3c7ad Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants