How to disable edit some files, such as lib.d.ts

Hi, i want to konw how to disable edit some files, such as lib.d.ts、lib.es5.d.ts, when i jump to those files, disbale edit them.
Thanks!

There are several ways to achieve this, I usually customize the EditorManager

Thank you for your reply,i will try it. :grinning: