title: How to check if a document is read-only - VSCode extension API
body: <p>Is there any way to find out if the active text document is read-only or not?  </p>
  
  <p>I couldn't find it in <a href="https://code.visualstudio.com/docs/extensionAPI/vscode-api" rel="nofollow noreferrer">VSCode namespace API</a> documentation.</p>