Skip to content

Commit 7970376

Browse files
authored
Protect against empty readonly-message (microsoft#203328)
Fixes microsoft#203122
1 parent 1f607d6 commit 7970376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/api/common/extHostFileSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
166166
}
167167

168168
let readOnlyMessage: IMarkdownString | undefined;
169-
if (options.isReadonly && isMarkdownString(options.isReadonly)) {
169+
if (options.isReadonly && isMarkdownString(options.isReadonly) && options.isReadonly.value !== '') {
170170
readOnlyMessage = {
171171
value: options.isReadonly.value,
172172
isTrusted: options.isReadonly.isTrusted,

0 commit comments

Comments
 (0)