项目:che
文件:RenamePresenter.java
private void applyRename(List<RenameProject> projects) {
List<TextDocumentEdit> edits = new ArrayList<>();
for (RenameProject project : projects) {
edits.addAll(project.getTextDocumentEdits());
}
workspaceEditaction.applyWorkspaceEdit(new WorkspaceEdit(edits));
}
项目:che
文件:RenameProject.java
public List<TextDocumentEdit> getTextDocumentEdits() {
return folders
.stream()
.map(RenameFolder::getTextDocumentEdit)
.flatMap(Collection::stream)
.collect(toList());
}
项目:che
文件:RenameFile.java
TextDocumentEdit getTextDocumentEdit() {
VersionedTextDocumentIdentifier identifier = new VersionedTextDocumentIdentifier(-1);
identifier.setUri(filePath);
List<TextEdit> edits = new ArrayList<>();
for (RenameChange change : changes) {
edits.add(new TextEdit(change.getTextEdit().getRange(),change.getTextEdit().getNewText()));
}
return new TextDocumentEdit(identifier,edits);
}
项目:SOMns-vscode
文件:WorkspaceEdit.java
public WorkspaceEdit(final List<TextDocumentEdit> documentChanges) {
this.documentChanges = documentChanges;
}
项目:SOMns-vscode
文件:WorkspaceEdit.java
/**
* @deprecated According to the protocol documentation,it doesn't make sense to send both
* changes and documentChanges
*/
@Deprecated
public WorkspaceEdit(final Map<String,List<TextEdit>> changes,final List<TextDocumentEdit> documentChanges) {
this.changes = changes;
this.documentChanges = documentChanges;
}
项目:lsp4j
文件:WorkspaceEdit.java
public WorkspaceEdit(final List<TextDocumentEdit> documentChanges) {
this.documentChanges = documentChanges;
}
项目:lsp4j
文件:WorkspaceEdit.java
/**
* @deprecated According to the protocol documentation,final List<TextDocumentEdit> documentChanges) {
this.changes = changes;
this.documentChanges = documentChanges;
}
项目:che
文件:RenameFolder.java
public List<TextDocumentEdit> getTextDocumentEdit() {
return files.stream().map(RenameFile::getTextDocumentEdit).collect(toList());
}
项目:SOMns-vscode
文件:WorkspaceEdit.java
/**
* An array of `TextDocumentEdit`s to express changes to specific a specific
* version of a text document. Whether a client supports versioned document
* edits is expressed via `WorkspaceClientCapabilities.versionedWorkspaceEdit`.
*/
@Pure
public List<TextDocumentEdit> getDocumentChanges() {
return this.documentChanges;
}
项目:SOMns-vscode
文件:WorkspaceEdit.java
/**
* An array of `TextDocumentEdit`s to express changes to specific a specific
* version of a text document. Whether a client supports versioned document
* edits is expressed via `WorkspaceClientCapabilities.versionedWorkspaceEdit`.
*/
public void setDocumentChanges(final List<TextDocumentEdit> documentChanges) {
this.documentChanges = documentChanges;
}
项目:lsp4j
文件:WorkspaceEdit.java
/**
* An array of `TextDocumentEdit`s to express changes to specific a specific
* version of a text document. Whether a client supports versioned document
* edits is expressed via `WorkspaceClientCapabilities.versionedWorkspaceEdit`.
*/
@Pure
public List<TextDocumentEdit> getDocumentChanges() {
return this.documentChanges;
}
项目:lsp4j
文件:WorkspaceEdit.java
/**
* An array of `TextDocumentEdit`s to express changes to specific a specific
* version of a text document. Whether a client supports versioned document
* edits is expressed via `WorkspaceClientCapabilities.versionedWorkspaceEdit`.
*/
public void setDocumentChanges(final List<TextDocumentEdit> documentChanges) {
this.documentChanges = documentChanges;
}