madskristensen / JasmineSnippetPack

A Visual Studio extension
Other
3 stars 3 forks source link

Missing or unspecified Language attribute for TypeScript snippets #7

Open fourpastmidnight opened 7 years ago

fourpastmidnight commented 7 years ago

Installed product versions

Description

Several of the TS snippets in this extension are emitting the warning Missing or unspecified Language attribute in the Code Snippet Output window in VS:

C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\spyOnAndCallFake.snippet: Missing or unspecified Language attribute
C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\describe.snippet: Missing or unspecified Language attribute
C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\xDescribe.snippet: Missing or unspecified Language attribute
C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\itd.snippet: Missing or unspecified Language attribute
C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\it.snippet: Missing or unspecified Language attribute
C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\beforeEach.snippet: Missing or unspecified Language attribute
C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\focusDescribe.snippet: Missing or unspecified Language attribute
C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\afterEach.snippet: Missing or unspecified Language attribute
C:\Users\...\AppData\Local\Microsoft\VisualStudio\15.0_b17551d6\Extensions\2d0b3hsn.n3g\Snippets\JasmineSnippetPack-TS\focusedIt.snippet: Missing or unspecified Language attribute

Current behavior

Warnings are emitted in the Code Snippet Window due to the "missing" @Language attribute.

Expected behavior

The warnings are not emitted.

What's strange, though, is that there is a @Language attribute on all of those code snippets! Hmm, and doing some more searching, what's even stranger is that these TypeScript snippets are not showing up in the Code Snippets Manager in Visual Studio, as per #4! So I'm wondering if this issue with the @Language attribute is what's ultimately behind #4?

fourpastmidnight commented 7 years ago

Hmm, I think it is. When I clicked on the JasmineSnippets-TS node in the Code Snippets Manager, the same set of warnings that I posted above were again emitted into the Code Snippet Output window. So VS is having trouble with those snippets.