DSolve[-1 + f[x]*Sin[y[x]] + Cos[y[x]]*(1 - Derivative[1][f][x]) - Derivative[1][f][x] + Derivative[1][y][x] == 0,y[x],x]