src/vs/workbench/services/textMate/electron-sandbox/textMateService.ts/ModelWorkerTextMateTokenizer/constructor
class ModelWorkerTextMateTokenizer:	constructor(worker: TextMateWorker, model: ITextModel) {
		super();
		this._worker = worker;
		this._model = model;
		this._isSynced = false;

		this._register(this._model.onDidChangeAttached(() => this._onDidChangeAttached()));
		this._onDidChangeAttached();

		this._register(this._model.onDidChangeContent((e) => {
			if (this._isSynced) {
				this._worker.acceptModelChanged(this._model.uri.toString(), e);
				this._pendingChanges.push(e);
			}
		}));

		this._register(this._model.onDidChangeLanguage((e) => {
			if (this._isSynced) {
				this._worker.acceptModelLanguageChanged(this._model.uri.toString(), this._model.getLanguageIdentifier().id);
			}
		}));
	}