I created my first VS extension following this tutorial.
I would like to the get the project of the current editing file, i.e. related project properties from ITextView textView and ITextBuffer textBuffer.
After some searching, I have found:
It seems that I could match file path against all projects to decide this, but it is not ideal.
Could I get this information directly somewhere?
Hey :) I had the same question last week.
The current open filename:
I used ITagger - it's called every time something is changed in your code, so you are always up-to-date. Have a look at this tutorial.