Skip to content

Commit 17ffa26

Browse files
authored
feat: make lean files in .lake and .elan read-only (#608)
This PR prevents users from accidentally editing dependencies in `.lake` and `.elan` when jumping to them, e.g. using go-to-definition.
1 parent 6504d3c commit 17ffa26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vscode-lean4/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,10 @@
10091009
}
10101010
],
10111011
"configurationDefaults": {
1012+
"files.readonlyInclude": {
1013+
"**/.lake/**/*.lean": true,
1014+
"**/.elan/**/*.lean": true
1015+
},
10121016
"[lean4]": {
10131017
"editor.unicodeHighlight.ambiguousCharacters": false,
10141018
"editor.tabSize": 2,

0 commit comments

Comments
 (0)