.vscode vs .theia folder


The debug pane read launch.json from .vscode folder, while the tasks only read it from .theia folder.

Another issue, is the configuration API - where does it read/write to?

I believe that since many projects are using both IDEs, Theia should support the .vscode folder for read/write of all configuration files by default. It may be some configuration to change the folder.


[original thread by Ido Perez]

It’s a bug tasks.json shoud be read from .vscode as well. See https://github.com/theia-ide/theia/issues/5013

Generally Theia already honors .vscode settings, just tasks were not refactored yet. cc @elaihau

PreferenceConfigurations is responsible for providing info which folder should be used a primiary.

[Ido Perez]

Will you accept a PR that changes the PreferenceConfigurations to read the default path from the settings?

Generally it is recommended to use custom extensions and override APIs to provide a custom functionallity.


@anton-kosyakov the name of the configuration folder seems hard coded for the tasks flow



so this is the root cause for https://github.com/theia-ide/theia/issues/5013 right?

yes, we should work on 5013, similarly how it was done for launch settings


when you add debug configuration for the first time it also ignores the preference: https://github.com/theia-ide/theia/blob/af00d42b3d71b0d0b723cb970fefafb9c8500281/packages/debug/src/browser/debug-configuration-manager.ts#L255

@amiramw good catch, please file a bug!



asked there a question about how it should be implemented, so i can do the PR

It should be based on PreferenceConfigurations.getPaths somehow. So if there are already some preferences in .theia then it should be created in .theia. If there is no then .vscode should be check and so on for all paths.

this logic should be already implemented behind the preference service, maybe we can reuse it somehow