Skip to content

How to use FileOperationsFeature ? #32

Answered by pisv
hetzge asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hetzge,

Yes, if you are interested in events for file operations introduced in LSP 3.16 (like workspace/willDeleteFiles and workspace/didDeleteFiles), the implementation in LX4E is based on Eclipse refactoring participants, so indeed you need to register a participant for each operation you are interested in, e.g.

   <extension
         point="org.eclipse.ltk.core.refactoring.deleteParticipants">
      <deleteParticipant
            id="exampleDeleteResourceParticipant"
            name="Example Delete Resource Participant"
            class="example.ExampleDeleteResourceParticipant">
         <enablement>
            <adapt
                  type="org.eclipse.core.resources.IResource">…

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hetzge
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants