// -- Files synchronization : maintain a list of opened files, apply all updates to their content --
        public override void OnDidOpenTextDocument(DidOpenTextDocumentParams parameters)
        {
            Uri objUri = new Uri(parameters.uri);
            if (objUri.IsFile)
            {
                string fileName = Path.GetFileName(objUri.LocalPath);
                typeCobolWorkspace.OpenSourceFile(fileName, parameters.text);

                // DEBUG information
                RemoteConsole.Log("Opened source file : " + fileName);
            }
        }
Exemple #2
0
 /// <summary>
 /// The document open notification is sent from the client to the server to signal
 /// newly opened text documents.The document's truth is now managed by the client
 /// and the server must not try to read the document's truth using the document's
 /// uri.
 /// </summary>
 public virtual void OnDidOpenTextDocument(DidOpenTextDocumentParams parameters)
 {
 }
Exemple #3
0
 /// <summary>
 /// The document open notification is sent from the client to the server to signal
 /// newly opened text documents.The document's truth is now managed by the client
 /// and the server must not try to read the document's truth using the document's
 /// uri.
 /// </summary>
 public virtual void OnDidOpenTextDocument(DidOpenTextDocumentParams parameters)
 {
 }