2013-03-17 33 views
1

我在Visual Studio 2012中使用TypeScript,當我必須重構我的代碼,並且必須暫時引入很多錯誤時,Visual Studio會在一分鐘內變得無響應,非常往往使得無法有效地重構。Visual Studio 2012 - 關閉實時錯誤檢查 - Typescript

如何暫時關閉此功能,直到我覺得我修復了大多數錯誤爲止?

回答

3

它不應該那麼糟糕,否則它是一個錯誤。不幸的是,隨着最新版本的發佈,正在研究一個問題。見https://typescript.codeplex.com/workitem/779。如果不是這個問題,那麼請記錄另一個描述如何重現您可靠地看到的問題,並且將會被調查。

目前正在測試上述問題(請參閱https://typescript.codeplex.com/SourceControl/changeset/e44dbae94e04)。如果你感覺很幸運並且不想等待下一次更新,那麼你可以在typescriptServices.js文件中自己替換這行代碼,看看它是否能解決你的問題。

有關要更新的文件位置的詳細信息,請參見http://blogs.msdn.com/b/typescript/archive/2013/01/29/trying-the-latest-typescript-build.aspx

+0

我一直有打字稿懸掛我的VS 2012實例的問題。我將這段代碼添加到我的typescriptService.js中' while(node && node.Kind!== Formatting.AuthorParseNodeKind.apnkEmpty && node.Kind!== Formatting.AuthorParseNodeKind.apnkEmptyNode && node.nodeType!== TypeScript.NodeType.List ){'。你可以參考上面引用的鏈接@Bill [見codeplex](https://typescript.codeplex.com/SourceControl/changeset/e44dbae94e04)。 – Steve 2013-03-20 14:19:03