Closed apobekiaris closed 6 years ago
Yes! There is a command called "change language for file extension" - just change the language to "MSBuild". It's Ctrl-K M from memory.
Thanks, I'll add that to the README, it's not obvious.
can you be a bit more specific I cannot locate this "change language for file extension" command. I tried to associate the .build with the msbuild language but I get
[Error - 11:15:18 PM] Unhandled exception in OnDidOpenTextDocument.
System.ArgumentException: Unexpected project file extension '.build'.
Parameter name: documentUri
at MSBuildProjectTools.LanguageServer.Documents.ProjectDocument..ctor(Workspace workspace, Uri documentUri, ILogger logger) in D:\Development\github\tintoy\msbuild-project-tools\src\LanguageServer.Engine\Documents\ProjectDocument.cs:line 97
at MSBuildProjectTools.LanguageServer.Documents.MasterProjectDocument..ctor(Workspace workspace, Uri documentUri, ILogger logger) in D:\Development\github\tintoy\msbuild-project-tools\src\LanguageServer.Engine\Documents\MasterProjectDocument.cs:line 46
at MSBuildProjectTools.LanguageServer.Documents.Workspace.<>cDisplayClass20_0.2.GetOrAdd(TKey key, Func
2 valueFactory)
at MSBuildProjectTools.LanguageServer.Documents.Workspace.
found the command also but when i click on the MSBuild language i get the same exception i posted before. VsCode 1.16 x64
Ouch! Sorry, that's a bug. I'll fix that right away - give me 10 mins or so.
Ok - I've tested the fix and it looks like it works correctly now; would you mind updating the extension to v0.2.4 and letting me know if this fixes your problem?
BTW, the docs now show how to change file associations.
much better now many thnks!
wow first time in years I will actually be able to write msbuild scripts so productive. I wish this tool were available 10 years ago :). Great work!
Hi
My msbuild files have a .build extension and I would like to use this tool, is it possible to configure somehow ?