Skip to content

Commit c16006f

Browse files
committed
clang-format vs plugin: use Alp's suggestion for getting the path
llvm-svn: 196124
1 parent 3274004 commit c16006f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ private void MenuItemCallback(object sender, EventArgs args)
129129
/// </summary>
130130
private string RunClangFormat(string text, int offset, int length, string path)
131131
{
132-
string vsixPath = Path.GetDirectoryName(Uri.UnescapeDataString(
133-
new UriBuilder(Assembly.GetExecutingAssembly().CodeBase).Path));
132+
string vsixPath = Path.GetDirectoryName(
133+
typeof(ClangFormatPackage).Assembly.Location);
134134

135135
System.Diagnostics.Process process = new System.Diagnostics.Process();
136136
process.StartInfo.UseShellExecute = false;

0 commit comments

Comments
 (0)