mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Update service registration (#161115)
Update service registration (for #159178)
This commit is contained in:
@@ -19,7 +19,7 @@ import { EditorAutoIndentStrategy } from 'vs/editor/common/config/editorOptions'
|
||||
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
||||
import { ILanguageService } from 'vs/editor/common/languages/language';
|
||||
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { InstantiationType, registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { PLAINTEXT_LANGUAGE_ID } from 'vs/editor/common/languages/modesRegistry';
|
||||
import { LanguageBracketsConfiguration } from 'vs/editor/common/languages/supports/languageBracketsConfiguration';
|
||||
|
||||
@@ -474,4 +474,4 @@ export class ResolvedLanguageConfiguration {
|
||||
}
|
||||
}
|
||||
|
||||
registerSingleton(ILanguageConfigurationService, LanguageConfigurationService, false);
|
||||
registerSingleton(ILanguageConfigurationService, LanguageConfigurationService, InstantiationType.Delayed);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { ITextMateService } from 'vs/workbench/services/textMate/browser/textMate';
|
||||
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { InstantiationType, registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { AbstractTextMateService } from 'vs/workbench/services/textMate/browser/abstractTextMateService';
|
||||
import { FileAccess } from 'vs/base/common/network';
|
||||
|
||||
@@ -18,4 +18,4 @@ export class TextMateService extends AbstractTextMateService {
|
||||
}
|
||||
}
|
||||
|
||||
registerSingleton(ITextMateService, TextMateService, false);
|
||||
registerSingleton(ITextMateService, TextMateService, InstantiationType.Eager);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { ITextMateService } from 'vs/workbench/services/textMate/browser/textMate';
|
||||
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { InstantiationType, registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { AbstractTextMateService } from 'vs/workbench/services/textMate/browser/abstractTextMateService';
|
||||
import { ILanguageService } from 'vs/editor/common/languages/language';
|
||||
import { IWorkbenchThemeService } from 'vs/workbench/services/themes/common/workbenchThemeService';
|
||||
@@ -259,4 +259,4 @@ export class TextMateService extends AbstractTextMateService {
|
||||
}
|
||||
}
|
||||
|
||||
registerSingleton(ITextMateService, TextMateService, false);
|
||||
registerSingleton(ITextMateService, TextMateService, InstantiationType.Eager);
|
||||
|
||||
Reference in New Issue
Block a user