Skip to content

Commit

Permalink
add paneName fallback to filename in editor.getPaneName() (compiler-e…
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon authored Aug 18, 2024
1 parent 12f6bfc commit d83bb38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/panes/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,8 @@ export class Editor extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Edit
override getPaneName(): string {
if (this.filename) {
return this.filename;
} else if (this.paneName) {
return this.paneName;
} else {
return this.currentLanguage?.name + ' source #' + this.id;
}
Expand Down

0 comments on commit d83bb38

Please sign in to comment.