src/vs/workbench/services/textMate/electron-sandbox/textMateService.ts/ModelWorkerTextMateTokenizer/_onDidChangeAttached
class ModelWorkerTextMateTokenizer:	private _onDidChangeAttached(): void {
		if (this._model.isAttachedToEditor()) {
			if (!this._isSynced) {
				this._beginSync();
			}
		} else {
			if (this._isSynced) {
				this._endSync();
			}
		}
	}