Example #1
0
	(function() {
		_mode = new HTMLMode<htmlWorker.HTMLWorker>(
			{ id: 'html' },
			null,
			new HTMLMockModeService(),
			null
		);

		tokenizationSupport = _mode.tokenizationSupport;

		onEnterSupport = LanguageConfigurationRegistry.getOnEnterSupport(_mode.getId());
	})();
Example #2
0
	(function() {
		let threadService = NULL_THREAD_SERVICE;
		let modeService = new HTMLMockModeService();
		let services = new ServiceCollection();
		services.set(IThreadService, threadService);
		services.set(IModeService, modeService);
		let inst = new InstantiationService(services);
		threadService.setInstantiationService(inst);

		_mode = new HTMLMode<htmlWorker.HTMLWorker>(
			{ id: 'html' },
			inst,
			modeService,
			threadService
		);

		tokenizationSupport = _mode.tokenizationSupport;

		onEnterSupport = LanguageConfigurationRegistry.getOnEnterSupport(_mode.getId());
	})();