Replies: 2 comments 4 replies
-
@tsuyoii 如果需要完全实现你提到的实现,可能需要修改 appconfig = {
...
defaultPreferences: {
'files.exclude': {
// 默认值 glob 表达式
'**/.git': true,
'**/.svn': true,
'**/.hg': true,
'**/CVS': true,
'**/.DS_Store': true,
// 追加, 这里屏蔽了 index.js 文件的展示
'**/index.js'
}
}
...
} 同时,如果期望实现部分文件的只读,也可以参考 自定义只读模式 |
Beta Was this translation helpful? Give feedback.
3 replies
-
fileService 里提供了文件读取黑名单的参数配置,可以禁止文件系统对此类文件的读取,可以参考下 new ServerApp({
...,
blockPatterns: [
// 禁止在 IDE 里访问到 /release 下的代码
'file:///release/{app,config,run}/**',
],
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请问一下,可以实现禁止打开工作区部分文件吗?
具体就是:工作区目录中展示的文件只有一部分是可以打开并编辑的,另一部分文件是灰色,不可点击(不可进入查看或编辑该文件)
Beta Was this translation helpful? Give feedback.
All reactions