Java 类org.eclipse.lsp4j.DocumentOnTypeFormattingOptions 实例源码

项目:che    文件:ServerCapabilitiesOverlay.java   
public DocumentOnTypeFormattingOptions getDocumentOnTypeFormattingProvider() {
  DocumentOnTypeFormattingOptions leftOptions = left.getDocumentOnTypeFormattingProvider();
  DocumentOnTypeFormattingOptions rightOptions = right.getDocumentOnTypeFormattingProvider();
  if (leftOptions == null) {
    return rightOptions;
  }
  if (rightOptions == null) {
    return leftOptions;
  }

  DocumentOnTypeFormattingOptions result = new DocumentOnTypeFormattingOptions();
  List<String> triggerChars = new ArrayList<>();

  if (leftOptions != null) {
    result.setFirstTriggerCharacter(leftOptions.getFirstTriggerCharacter());
    triggerChars.addAll(listish(leftOptions.getMoreTriggerCharacter()));
  }
  if (rightOptions != null) {
    triggerChars.addAll(listish(rightOptions.getMoreTriggerCharacter()));
  }
  result.setMoreTriggerCharacter(triggerChars);
  return result;
}
项目:SOMns-vscode    文件:ServerCapabilities.java   
/**
 * The server provides document formatting on typing.
 */
@Pure
public DocumentOnTypeFormattingOptions getDocumentOnTypeFormattingProvider() {
  return this.documentOnTypeFormattingProvider;
}
项目:SOMns-vscode    文件:ServerCapabilities.java   
/**
 * The server provides document formatting on typing.
 */
public void setDocumentOnTypeFormattingProvider(final DocumentOnTypeFormattingOptions documentOnTypeFormattingProvider) {
  this.documentOnTypeFormattingProvider = documentOnTypeFormattingProvider;
}
项目:lsp4j    文件:ServerCapabilities.java   
/**
 * The server provides document formatting on typing.
 */
@Pure
public DocumentOnTypeFormattingOptions getDocumentOnTypeFormattingProvider() {
  return this.documentOnTypeFormattingProvider;
}
项目:lsp4j    文件:ServerCapabilities.java   
/**
 * The server provides document formatting on typing.
 */
public void setDocumentOnTypeFormattingProvider(final DocumentOnTypeFormattingOptions documentOnTypeFormattingProvider) {
  this.documentOnTypeFormattingProvider = documentOnTypeFormattingProvider;
}