示例#1
0
 public void Dispose()
 {
     GlobalParseCache.ParseTaskFinished -= ParseTaskFinished;
     Console.WriteLine("Deleting folder " + _subFolder);
     Directory.Delete(_subFolder, true);
     if (_parseFinishedSemaphore.WaitOne(0))
     {
         Assert.That(GlobalParseCache.RemoveRoot(_subFolder));
     }
 }
示例#2
0
文件: LspTest.cs 项目: aBothe/lsp4d
 public void TearDown()
 {
     GlobalParseCache.RemoveRoot(Lsp4DUtil.DefaultWorkspaceRoot);
     if (Client != null)
     {
         Client.Dispose();
         Assert.IsTrue(Client.Shutdown().Wait(5000));
     }
     Client = null;
     //Lsp4DUtil.CleanDefaultWorkspace();
 }