Update shadow and server text on current file change