Visual Studio 2015仅允许删除Typescript文件

时间:2016-05-27 17:04:54

标签: typescript visual-studio-2015

出于某种原因,我无法再添加到VS2015中的TypeScript文件中。我可以删除内容,撤消删除操作,但我实际上无法输入任何内容。

我安装Markdown Mode扩展程序后开始了一段时间,但禁用它并没有修复任何问题。

我能够编辑已编译的JS文件,这很奇怪。它似乎只是.ts文件。

编辑:我认为这与此有关:

<record>596</record>
<time>2016/05/31 17:52:41.977</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.LinterUtilities.IsFileSupported(String fileName)&#x000D;&#x000A;   at Microsoft.VisualStudio.Web.Editor.Package.Lint.ErrorTagger.LintErrorTaggerProvider.CreateTagger[T](ITextBuffer textBuffer)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)</description>

1 个答案:

答案 0 :(得分:0)

尝试并查看解决方案配置,可能存在一些阻止您执行此操作的内容。为了证明这种情况,请创建一个新的解决方案,看看一切是否正常。有时,解决方案配置将损坏,并且不允许您附加到其目录中的文件。