src/vs/workbench/services/textfile/common/textFileEditorModel.ts/TextFileEditorModel/isNewEncoding
class TextFileEditorModel:	private isNewEncoding(encoding: string | undefined): boolean {
		if (this.preferredEncoding === encoding) {
			return false; // return early if the encoding is already the same
		}

		if (!this.preferredEncoding && this.contentEncoding === encoding) {
			return false; // also return if we don't have a preferred encoding but the content encoding is already the same
		}

		return true;
	}