clang-format vs plugin: use Alp's suggestion for getting the path

llvm-svn: 196124
This commit is contained in:
Hans Wennborg 2013-12-02 17:40:46 +00:00
parent 3274004670
commit c16006fb81
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ namespace LLVM.ClangFormat
/// </summary>
private string RunClangFormat(string text, int offset, int length, string path)
{
string vsixPath = Path.GetDirectoryName(Uri.UnescapeDataString(
new UriBuilder(Assembly.GetExecutingAssembly().CodeBase).Path));
string vsixPath = Path.GetDirectoryName(
typeof(ClangFormatPackage).Assembly.Location);
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.UseShellExecute = false;