Protect against empty readonly-message (#203328)

Fixes #203122
This commit is contained in:
Alex Ross 2024-01-24 13:08:41 +01:00 committed by GitHub
parent 1f607d67c5
commit 7970376dda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,7 +166,7 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
}
let readOnlyMessage: IMarkdownString | undefined;
if (options.isReadonly && isMarkdownString(options.isReadonly)) {
if (options.isReadonly && isMarkdownString(options.isReadonly) && options.isReadonly.value !== '') {
readOnlyMessage = {
value: options.isReadonly.value,
isTrusted: options.isReadonly.isTrusted,