You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in the development of some extensions, for some specific xml files.
The reason is simple - the rename provider of this extension is blocking the other ... due to specifics of the realization of this feature in vscode...
That's why I am curious about the real extensions, not only documented possibility ...
I'm interested in the development of some extensions, for some specific xml files.
You want to manage custom features for some specific file?
The reason is simple - the rename provider of this extension is blocking the other ... due to specifics of the realization of this feature in vscode...
Which problem do you have?
That's why I am curious about the real extensions, not only documented possibility ...
Sorry I don't understand what you mean? vscode-xml delegate all XML features (completion, rename, etc) to the XML language server https://github.com/eclipse-lemminx/lemminx written in Java
I'm interested in the development of some extensions, for some specific xml files.
You want to manage custom features for some specific file?
Yes.
There is a game - X4 from Egosoft. It has an internal script language based on xml.
Not asking me about reasons ...
The reason is simple - the rename provider of this extension is blocking the other ... due to specifics of the realization of this feature in vscode...
Which problem do you have?
Modders are using your extension to edit these files, and in common - it is really good.
But, as it is script language, it uses variables, which are a part of attribute values of some specific xml elements.
And we made an extension, simple and very basic, which can identify such variables, and using the vscode.languages.registerRenameProvider and some other provider to achieve some basic functionality related to the any variables in most languages extensions.
Unfortunately, it's working only when this extension is disabled, due to it has, looks like, own RenameProvider.
And in vscode if "first" rename provider not identified the word is possible to be renamed - other possibilities will not be checked.
I mean - from other vscode extensions,
I refer on this vscode issue - microsoft/vscode#115354
And checked several times our case ...
That's why I am curious about the real extensions, not only documented possibility ...
Sorry I don't understand what you mean? vscode-xml delegate all XML features (completion, rename, etc) to the XML language server https://github.com/eclipse-lemminx/lemminx written in Java
I'm understand, but always better to have some real example of working functionality in addition to documentation,
And I'm not sure if I will start writing it from scratch ....
I'm interested in the development of some extensions, for some specific xml files.
You want to manage custom features for some specific file?
Yes. There is a game - X4 from Egosoft. It has an internal script language based on xml. Not asking me about reasons ...
The reason is simple - the rename provider of this extension is blocking the other ... due to specifics of the realization of this feature in vscode...
Which problem do you have?
Modders are using your extension to edit these files, and in common - it is really good. But, as it is script language, it uses variables, which are a part of attribute values of some specific xml elements. And we made an extension, simple and very basic, which can identify such variables, and using the vscode.languages.registerRenameProvider and some other provider to achieve some basic functionality related to the any variables in most languages extensions. Unfortunately, it's working only when this extension is disabled, due to it has, looks like, own RenameProvider. And in vscode if "first" rename provider not identified the word is possible to be renamed - other possibilities will not be checked. I mean - from other vscode extensions, I refer on this vscode issue - microsoft/vscode#115354 And checked several times our case ...
That's why I am curious about the real extensions, not only documented possibility ...
Sorry I don't understand what you mean? vscode-xml delegate all XML features (completion, rename, etc) to the XML language server https://github.com/eclipse-lemminx/lemminx written in Java
I'm understand, but always better to have some real example of working functionality in addition to documentation, And I'm not sure if I will start writing it from scratch ....
Ok if I understand correctly your problem, you have a vscode extension which contribute to RenameProvider which works very good without vscode-xml and if you install vscode-xml, your rename provider doesn't work because vscode-xml get the priority to your rename provider.
I'm interested in the development of some extensions, for some specific xml files.
You want to manage custom features for some specific file?
Yes. There is a game - X4 from Egosoft. It has an internal script language based on xml. Not asking me about reasons ...
The reason is simple - the rename provider of this extension is blocking the other ... due to specifics of the realization of this feature in vscode...
Which problem do you have?
Modders are using your extension to edit these files, and in common - it is really good. But, as it is script language, it uses variables, which are a part of attribute values of some specific xml elements. And we made an extension, simple and very basic, which can identify such variables, and using the vscode.languages.registerRenameProvider and some other provider to achieve some basic functionality related to the any variables in most languages extensions. Unfortunately, it's working only when this extension is disabled, due to it has, looks like, own RenameProvider. And in vscode if "first" rename provider not identified the word is possible to be renamed - other possibilities will not be checked. I mean - from other vscode extensions, I refer on this vscode issue - microsoft/vscode#115354 And checked several times our case ...
That's why I am curious about the real extensions, not only documented possibility ...
Sorry I don't understand what you mean? vscode-xml delegate all XML features (completion, rename, etc) to the XML language server https://github.com/eclipse-lemminx/lemminx written in Java
I'm understand, but always better to have some real example of working functionality in addition to documentation, And I'm not sure if I will start writing it from scratch ....
Ok if I understand correctly your problem, you have a vscode extension which contribute to RenameProvider which works very good without vscode-xml and if you install vscode-xml, your rename provider doesn't work because vscode-xml get the priority to your rename provider.
Activity
angelozerr commentedon Mar 28, 2025
You want to manage custom features for some specific file?
Which problem do you have?
Sorry I don't understand what you mean? vscode-xml delegate all XML features (completion, rename, etc) to the XML language server https://github.com/eclipse-lemminx/lemminx written in Java
chemodun commentedon Mar 28, 2025
Yes.
There is a game - X4 from Egosoft. It has an internal script language based on xml.
Not asking me about reasons ...
Modders are using your extension to edit these files, and in common - it is really good.
But, as it is script language, it uses variables, which are a part of attribute values of some specific xml elements.
And we made an extension, simple and very basic, which can identify such variables, and using the
vscode.languages.registerRenameProviderand some other provider to achieve some basic functionality related to the any variables in most languages extensions.Unfortunately, it's working only when this extension is disabled, due to it has, looks like, own
RenameProvider.And in
vscodeif "first" rename provider not identified the word is possible to be renamed - other possibilities will not be checked.I mean - from other vscode extensions,
I refer on this vscode issue - microsoft/vscode#115354
And checked several times our case ...
I'm understand, but always better to have some real example of working functionality in addition to documentation,
And I'm not sure if I will start writing it from scratch ....
angelozerr commentedon Mar 28, 2025
Ok if I understand correctly your problem, you have a vscode extension which contribute to RenameProvider which works very good without vscode-xml and if you install vscode-xml, your rename provider doesn't work because vscode-xml get the priority to your rename provider.
First we don't add directly our own rename provider, it is the vscode-languageclient which add this rename provider (see https://github.com/microsoft/vscode-languageserver-node/blob/df05883f34b39255d40d68cef55caf2e93cff35f/client/src/common/client.ts#L1982). I wonder if we could override that here
vscode-xml/src/client/xmlClient.ts
Line 167 in 6c495fa
We could try first if the rename (from the XML language server) return a result and if not execute some custom rename provider registered for xml.
I have no time to investigate, but if you wish to try it, you are welcome!
chemodun commentedon Mar 28, 2025
Ok.
Thanks for the ide. will look on it