예제 #1
0
        public override async Task DidCloseTextDocument(DidCloseTextDocumentParams @params)
        {
            var doc = GetEntry(@params.textDocument.uri) as IDocument;

            if (doc != null)
            {
                // No need to keep in-memory buffers now
                doc.ResetDocument(-1, null);

                // Pick up any changes on disk that we didn't know about
                EnqueueItem(doc, AnalysisPriority.Low);
            }
        }
예제 #2
0
파일: Server.cs 프로젝트: Jiaoma/PTVS
        public override Task DidCloseTextDocument(DidCloseTextDocumentParams @params)
        {
            ThrowIfDisposed();
            _editorFiles.Close(@params.textDocument.uri);

            var doc = ProjectFiles.GetEntry(@params.textDocument.uri) as IDocument;

            if (doc != null)
            {
                // No need to keep in-memory buffers now
                doc.ResetDocument(-1, null);
                // Pick up any changes on disk that we didn't know about
                EnqueueItem(doc, AnalysisPriority.Low);
            }

            return(Task.CompletedTask);
        }
예제 #3
0
파일: ServerBase.cs 프로젝트: yepeiwen/PTVS
 public virtual Task DidCloseTextDocument(DidCloseTextDocumentParams @params) => Task.CompletedTask;
예제 #4
0
 public virtual async Task DidCloseTextDocument(DidCloseTextDocumentParams @params)
 {
 }