You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RulesProvider currently gets initialized in the LanguageService on the first formatting call to GetRuleProvider(). Initialization takes ~60ms. Every time the editor options change the RulesProvider's RuleMap is repopulated. When edits occur in a script block file (.html, .cshtml) and then a .js/.ts file the editor options change (ex: baseIndentation) and the RulesProvider is reinitialized.
Creating this item for perf improvements to the RulesProvider.
ex:
Convert RulesProvider to be a singleton in TSServer
Add another property to Rule to specify the ScriptKind or IsMixedContent type it applies to.