We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61b6b9 commit d11c3c5Copy full SHA for d11c3c5
src/providers/FileSystemProvider/FileSystemProvider.ts
@@ -489,6 +489,15 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
489
content: base64EncodeContent(contentBuffer),
490
enc: true,
491
};
492
+ if (
493
+ csp &&
494
+ !putContent.enc &&
495
+ putContent.content.length > 1 &&
496
+ putContent.content[putContent.content.length - 1] == ""
497
+ ) {
498
+ // Avoid appending a blank line on every save, which would cause a web app file to grow each time
499
+ putContent.content.pop();
500
+ }
501
// By the time we get here VS Code's built-in conflict resolution mechanism will already have interacted with the user.
502
// Therefore, it's safe to ignore any conflicts.
503
return api
0 commit comments