Skip to content

Commit 753445c

Browse files
Merge pull request #836 from gjsjohnmurray/fix-835
Exempt isfs web app files with .csp extension from usual pre-save sanity checks
2 parents 3ba84b7 + 19b126c commit 753445c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/FileSystemProvider/FileSystemProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
192192
// Instead we simply return as though we wrote it successfully.
193193
// The actual writing is done by our workspace.onDidSaveTextDocument handler.
194194
// But first check cases for which we should fail the write and leave the document dirty if changed.
195-
if (fileName.split(".").pop().toLowerCase() === "cls") {
195+
if (!csp && fileName.split(".").pop().toLowerCase() === "cls") {
196196
// Check if the class is deployed
197197
api.actionIndex([fileName]).then((result) => {
198198
if (result.result.content[0].content.depl) {

0 commit comments

Comments
 (0)