@@ -172,19 +172,18 @@ impl LanguageConfiguration {
175− pub fn highlight_config(&self, scopes: &[String]) -> Option<Arc<HighlightConfiguration>> {
175+ pub fn reconfigure(&self, scopes: &[String]) {
176− if let Some(config) = self.highlight_config.get() {
176+ if let Some(Some(config)) = self.highlight_config.get() {
177− if let Some(config) = config {
178− config.configure(scopes);
177+ config.configure(scopes);
182− self.highlight_config
183− .get_or_init(|| self.initialize_highlight(scopes))
181+ pub fn highlight_config(&self, scopes: &[String]) -> Option<Arc<HighlightConfiguration>> {
182+ self.highlight_config
183+ .get_or_init(|| self.initialize_highlight(scopes))
188 pub fn is_highlight_initialized(&self) -> bool {
187 pub fn is_highlight_initialized(&self) -> bool {
189 self.highlight_config.get().is_some()
188 self.highlight_config.get().is_some()