-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[debug]"add debug configuration" gives wrong suggestion in the first time #5804
Comments
in the example app? or you install some vscode extensions? |
I start theia in example app |
It looks like that json language server had not been ready when the command |
@kpge Do you want to investigate? |
It should be started whenever a workspace has json file: https://github.com/theia-ide/theia/blob/2befdf4cbebbbddb9719e0b88a578fba13f61808/packages/json/src/browser/json-client-contribution.ts#L82-L87 Maybe it just takes time or there is a bug and globs are never match. |
It won't be called until a json file is opened, I think there's a bug here. |
It should be fine, some language servers are started only when file is opened. I've noticed that you don't have syntax coloring. It means that is not an issues with a language server, but a language itself. An editor is opened before the language is registered and auto detects a language as plain text. We fixed something like that for the plugin system: #5754 I think we need to generalize it for textmate grammar contributions. |
@kpge I've tried recently and it works correctly for me, can you confirm? |
@vince-fugnitto No, it still gives the wrong suggestion. Are you cloesed all the json file and refresh the page? |
Sorry for the late reply, I must have missed the notification. |
@vince-fugnitto sorry for the late reply too |
Great, and no worries! 😃 |
Description
the first time click 'Add Configuration' gives the wrong suggestion regardless the
launch.json
file is existed.Reproduction Steps
launch.json
fileAdd Configuration
in the debug widgetOS and Theia version:
theia:5c298024b5f5d705e6a53eaeb4660083350be91b
Diagnostics:
The text was updated successfully, but these errors were encountered: