Skip to content

Commit

Permalink
Mark extracted files as read only
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Jan 30, 2024
1 parent becb74f commit 1b84ef5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lsp/src/main/java/workspace/LSPWorkspaceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ private void loadExternalFile(File file) throws IOException
source.printSource(spw);
spw.close();
Diag.info("Extracted source written to " + extract);
extract.setReadOnly(); // Works with files.readonlyFromPermissions in VSCode

loadFile(extract);

Expand Down

0 comments on commit 1b84ef5

Please sign in to comment.