Apply visual warnings only to sls buffers

After opening an SLS file, the visual warnings are being applied also to other types of buffers.
This is a non desirable effect. This PR restricts the visual warnings only to SLS buffers.