github.com/tiagovtristao/plz@v13.4.0+incompatible/tools/build_langserver/lsp/workspace.go (about)

     1  package lsp
     2  
     3  // WorkspaceEdit epresents changes to many resources managed in the workspace.
     4  type WorkspaceEdit struct {
     5  	/**
     6  	 * Holds changes to existing resources.
     7  	 */
     8  	Changes map[DocumentURI][]TextEdit `json:"changes"`
     9  	/**
    10  	 * An array of `TextDocumentEdit`s to express changes to n different text documents
    11  	 * where each text document edit addresses a specific version of a text document.
    12  	 * Whether a client supports versioned document edits is expressed via
    13  	 * `WorkspaceClientCapabilities.workspaceEdit.documentChanges`.
    14  	 */
    15  	DocumentChanges []TextDocumentEdit `json:"documentChanges"`
    16  }
    17  
    18  // WorkspaceFolder represents The workspace folders configured in the client when the server starts.
    19  type WorkspaceFolder struct {
    20  	/**
    21  	 * The associated URI for this workspace folder.
    22  	 */
    23  	URI string `json:"uri"`
    24  
    25  	/**
    26  	 * The name of the workspace folder. Defaults to the
    27  	 * uri's basename.
    28  	 */
    29  	Name string `json:"name"`
    30  }
    31  
    32  // WorkspaceClientCapabilities define capabilities the editor / tool provides on the workspace
    33  //TODO(bnm): Not sure if this is needed, have it empty until I think of something
    34  type WorkspaceClientCapabilities struct {
    35  }