Interface IWorkspaceServiceParticipant
- All Known Implementing Classes:
WorkspaceIndexPlugin
public interface IWorkspaceServiceParticipant
Workspace Service participant API.
- Since:
- 0.14.2
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddidChangeWatchedFiles(List<org.eclipse.lsp4j.FileEvent> changes, IWatchedFilesContext context) Called when watched files are created, changed, or deleted.voiddidChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params) Receive and handle notification about workspace folder changing on client side.default org.eclipse.lsp4j.WorkspaceEditwillRenameFiles(org.eclipse.lsp4j.RenameFilesParams params, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Called before files are renamed.
-
Method Details
-
didChangeWorkspaceFolders
void didChangeWorkspaceFolders(org.eclipse.lsp4j.DidChangeWorkspaceFoldersParams params) Receive and handle notification about workspace folder changing on client side.- Parameters:
params- the workspace folders change description- See Also:
-
didChangeWatchedFiles
default void didChangeWatchedFiles(List<org.eclipse.lsp4j.FileEvent> changes, IWatchedFilesContext context) Called when watched files are created, changed, or deleted.The
IWatchedFilesContextlets extensions request aworkspace/codeLens/refreshthat is sent once — after all participants finish — regardless of how many extensions request it.- Parameters:
changes- the list of file events.context- context for requesting deferred actions (e.g. code lens refresh).- See Also:
-
willRenameFiles
default org.eclipse.lsp4j.WorkspaceEdit willRenameFiles(org.eclipse.lsp4j.RenameFilesParams params, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Called before files are renamed. Return aWorkspaceEditwith the text changes that should be applied, ornullif none.- Parameters:
params- the rename parameters (old/new URIs).cancelChecker- checker to abort long-running computations.- Returns:
- a WorkspaceEdit, or
null. - See Also:
-