I suffered from DeQuervain's tenosynovitis in the left hand last year. I was administered a non-steroidal anti-inflammatory shot that helped ease the condition temporarily, only to have it recurred 4 months after... a week before a major concert!
A new chiropractic procedure called "Graston Technique" helped me immensely to get back in somewhat playing shape to perform in that concert. After the concert I did not play for 4 months, was administered orthopedic acupuncture 3x a week and wore a wrist brace for the most part of the day and the whole night.
However, the good thing that came out of my injury and recovery period is that I have discovered which hand positions aggravated and subjected my hand to unnecessary tension. I took note of those bad positions and adjusted my playing posture accordingly. I also took time to re-think my left hand technique and totally revamp it, dropping whatever unnecessary tension is present.
Now with my revamped technique, I have gone back to playing guitar full-time: practicing, teaching and performing.
Anyway, what I'm trying to say is, even if you do get surgery to fix your CTS, you will end up injuring yourself again if you don't rethink your approach to guitar playing. That's what happened to me after my anti-inflam shot: I carried on my old way of playing guitar thinking I'm "cured".... you'll never be cured until you fix what injured you in the first place!
Here's where a knowledgeable teacher comes in. He/she will work with you in changing your technique to prevent future injuries as well as lift your playing to a higher level.
I would second the recommendation for Scott Kritzer. He's a wonderful teacher with a very concise and effective method. I started his e-lessons course back in May and my playing is now on a whole new level, one I did not think was possible to achieve in a short time. He basically confirmed my discoveries (the I realized while I was recovering) and introduced more ways to reduce playing tension, not only physically but with mental tension as well particularly in performance situations.
I am still studying with Scott so someday I will be able to teach his method.
Good luck and I wish you all the best!