项目: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;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。