Skip to content

Commit 7e636fe

Browse files
authored
languages implicit activation events (microsoft#167347)
1 parent ae5b304 commit 7e636fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vs/workbench/services/language/common/languageService.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ export const languagesExtPoint: IExtensionPoint<IRawLanguageExtensionPoint[]> =
104104
}
105105
}
106106
}
107+
},
108+
activationEventsGenerator: (languageContributions, result) => {
109+
for (const languageContribution of languageContributions) {
110+
if (languageContribution.id) {
111+
result.push(`onLanguage:${languageContribution.id}`);
112+
}
113+
}
107114
}
108115
});
109116

0 commit comments

Comments
 (0)