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

How can i add the config for each project in my workspace #14

Open
frydo opened this issue Jul 11, 2018 · 7 comments
Open

How can i add the config for each project in my workspace #14

frydo opened this issue Jul 11, 2018 · 7 comments

Comments

@frydo
Copy link

frydo commented Jul 11, 2018

Hello,

i have a workspace with some projects(folders) in it.

Is it possible to add a config for every project instead of the whole workspace?

When i try to add the config to the folder settings tab, i get the message that it isnt allowed in the workspace view.

When i add the config to workspace settings it wont start, when i press save.

@haugerbr
Copy link

@frydo I'm not the developer. But I assume the first is because the extension isn't using the multi-root api or it isn't allowed. The second works for me properly when setting it in the workspaces settings. If you can post your settings code I can try to help you troubleshoot.

@frydo
Copy link
Author

frydo commented Jul 15, 2018

Hello haugerbr.

ok now it works under workspace settings, i can press save an it will execute my command.

but the problem ist....

i have a sh script, which is syncing the project from local to local.

Every project in my workspace have on of these sh-files. But when i press save i can see, that the extension is using the sh-file from the last project in the list.

@wk-j
Copy link
Owner

wk-j commented Jul 18, 2018

Just test multi root workspace, vs code did not load appsettings.json in folder but it used workspace / user settings instead.

@haugerbr any idea?

@haugerbr
Copy link

haugerbr commented Jul 19, 2018

@wk-j According to this it looks like you have to define the setting as having resource scope looks like you also have to use the newer configuration api as quoted below. I believe example 3 here is similar to what you need to do.

Note: When a setting is defined as a resource scoped setting, then you have to use the new configuration API that fetches the setting that applies to a resource (see the Settings API section below).

@haugerbr
Copy link

haugerbr commented Jul 19, 2018

@wk-j Thanks for keeping the extension updated. :) I was worried it was abandoned like the one it was forked from.

@frydo
Copy link
Author

frydo commented Jul 19, 2018

Thank you guys for your help.

I have noticed, that i need sync also when files/folders are copied, deleted and so on.

So i will use "inotifywait" with sync, and start it with vs code.

@robmarzialetti
Copy link

I have the same problem of @haugerbr

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

No branches or pull requests

4 participants