Skip to content

Commit a60ffd7

Browse files
authored
apply new language to all 3wm models (microsoft#153278)
refines microsoft#151136 (comment)
1 parent ffe53e8 commit a60ffd7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,11 @@ export class MergeEditorModel extends EditorModel {
337337
}
338338

339339
public setLanguageId(languageId: string): void {
340-
this.modelService.setMode(this.result, this.languageService.createById(languageId));
340+
const language = this.languageService.createById(languageId);
341+
this.modelService.setMode(this.base, language);
342+
this.modelService.setMode(this.input1, language);
343+
this.modelService.setMode(this.input2, language);
344+
this.modelService.setMode(this.result, language);
341345
}
342346
}
343347

0 commit comments

Comments
 (0)