Skip to content

Commit

Permalink
fix: rerender empty editor hint if a file changes readonly status (mi…
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceerhl committed Feb 12, 2024
1 parent c4bea7b commit 7d04ffa
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ export class EmptyTextEditorHintContribution implements IEditorContribution {
this.toDispose.push(this.editor.onDidChangeModelContent(() => this.update()));
this.toDispose.push(this.inlineChatService.onDidChangeProviders(() => this.update()));
this.toDispose.push(this.editor.onDidChangeModelDecorations(() => this.update()));
this.toDispose.push(this.editor.onDidChangeConfiguration((e: ConfigurationChangedEvent) => {
if (e.hasChanged(EditorOption.readOnly)) {
this.update();
}
}));
this.toDispose.push(this.configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration(emptyTextEditorHintSetting)) {
this.update();
Expand Down

0 comments on commit 7d04ffa

Please sign in to comment.