/// <summary> /// A request to list all symbols found in a given text document. The request's /// parameter is of type[TextDocumentIdentifier](#TextDocumentIdentifier) the /// response is of type[SymbolInformation[]](#SymbolInformation) or a Thenable /// that resolves to such. /// </summary> public virtual List <SymbolInformation> OnDocumentSymbol(TextDocumentIdentifier parameters) { return(null); }
/// <summary> /// A request to provide code lens for the given text document. /// </summary> public virtual List <CodeLens> OnCodeLens(TextDocumentIdentifier parameters) { return(null); }
/// <summary> /// Document constructor /// </summary> /// <param name="textDocument">The document being saved</param> /// <param name="text">The text of the document</param> public DidSaveTextDocumentParams(TextDocumentIdentifier textDocument, String text = null) { this.textDocument = textDocument; this.text = text; }
/// <summary> /// Signature help represents the signature of something /// callable. There can be multiple signature but only one /// active and only one active parameter. /// </summary> public virtual SignatureHelp OnSignatureHelp(TextDocumentIdentifier parameters) { return(null); }
public DidCloseTextDocumentParams(TextDocumentIdentifier textDocument) { this.textDocument = textDocument; }
/// <summary> /// The document close notification is sent from the client to the server when /// the document got closed in the client.The document's truth now exists /// where the document's uri points to (e.g. if the document's uri is a file uri /// the truth now exists on disk). /// </summary> public virtual void OnDidCloseTextDocument(TextDocumentIdentifier parameters) { }
public override void OnDidCloseTextDocument(TextDocumentIdentifier parameters) { Uri objUri = new Uri(parameters.uri); if (objUri.IsFile) { string fileName = Path.GetFileName(objUri.LocalPath); typeCobolWorkspace.CloseSourceFile(fileName); // DEBUG information RemoteConsole.Log("Closed source file : " + fileName); } }
/// <summary> /// A request to provide code lens for the given text document. /// </summary> public virtual List<CodeLens> OnCodeLens(TextDocumentIdentifier parameters) { return null; }
/// <summary> /// Signature help represents the signature of something /// callable. There can be multiple signature but only one /// active and only one active parameter. /// </summary> public virtual SignatureHelp OnSignatureHelp(TextDocumentIdentifier parameters) { return null; }
/// <summary> /// A request to list all symbols found in a given text document. The request's /// parameter is of type[TextDocumentIdentifier](#TextDocumentIdentifier) the /// response is of type[SymbolInformation[]](#SymbolInformation) or a Thenable /// that resolves to such. /// </summary> public virtual List<SymbolInformation> OnDocumentSymbol(TextDocumentIdentifier parameters) { return null; }