-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Provide possibility to configure the top displayed label in outline view for Language Servers #62839
Comments
I would like to work on this please. |
@apupier can you give another example of a language that has two outline providers? |
@YisraelV sorry, I don't know any others |
@YisraelV get this extension https://marketplace.visualstudio.com/items?itemName=roblourens.unittest-navigate and open TypeScript test files. That will show this. |
Most of the required code is already there but the default label is the extension name. That happens here: We need some new API that allows to provide a name when calling
|
@jrieken thank you very much for the guidance! You've saved me a few hours. I thought the OP had in mind a way for the user to set the name displayed with no change in the extension code. But what you say - making this part of the api for extensions - makes more sense and is much easier to implement. |
custom name when there are multiple outline providers - feature request #62839
@jrieken thank you very much for the tips and for taking the time to review and merge it. |
Can you explain how to use this new configuration? With my Language Server Extension I'm not calling explicitly the registerDocumentOutline https://github.com/Microsoft/vscode/pull/63150/files#diff-6ed04bc0a0e32b52bb98d493792f857eR976 How should specify the specific name? |
this needs LSP support first, cc @dbaeumer |
Created microsoft/language-server-protocol#617. A PR to add this to LSP and the node libraries is highly appreciated. |
@jrieken @dbaeumer I would like to help but could you please explain to me:
|
@YisraelV you are correct. This doesn't need any changes in the LSP protocol but only in the |
verify by opening the outline and/or breadcrumbs for launch.json, one provider should be called 'Launch Targets' |
@jrieken because this issue is closed I assume the work was finished by someone else? I did not quite understand what happened. |
When there are several language servers contributing an outline for a file. They are both displayed. They are grouped in separate trees. The top level display name seems to use the extension name used.
It would be nice to allow customizing this naming.
for instance, when installing "XML" and "Language Support for Apache Camel", the "Language Support of Apache Camel" naming is used and it is truncated:
![image](https://user-images.githubusercontent.com/1105127/48255144-181b8f80-e40c-11e8-9970-67eec22e4528.png)
for information i tried to ask if it is already possible but got no answer so I guess it is not https://stackoverflow.com/questions/52816836/specify-oultine-title-when-several-language-servers-are-present
The text was updated successfully, but these errors were encountered: