Display icons instead of words in Visual Studio tool window tabs
Icons are displayed when the widths of the tabs are too narrow. To get the icons back, either make the pane narrower or dock some more tabs in that pane.
There is an extension that does just that. It was written for VS 2015 but works fine in VS 2017.
Visual Studio Iconizer for Visual Studio 2015