Esempio n. 1
0
        // -- 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);
            }
        }
Esempio n. 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)
 {
 }
Esempio n. 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)
 {
 }