File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,15 @@ connection.onInitialize((parameters) => {
39
39
// so it might not buy us much value any more.
40
40
const configLoader = new ConfigLoader ( ) ;
41
41
const glintConfig = configLoader . configForFile ( configFileName ) ;
42
- assert ( glintConfig , 'Glint config is missing' ) ;
43
- languagePlugins . unshift ( createGtsLanguagePlugin ( glintConfig ) ) ;
42
+
43
+ // TODO: this causes breakage if/when Glint activates for a non-Glint project.
44
+ // But if we don't assert, then we activate TS and Glint for non TS projects,
45
+ // which doubles diagnostics... how to disable the LS entirely if no Glint?
46
+ // assert(glintConfig, 'Glint config is missing');
47
+
48
+ if ( glintConfig ) {
49
+ languagePlugins . unshift ( createGtsLanguagePlugin ( glintConfig ) ) ;
50
+ }
44
51
}
45
52
46
53
return languagePlugins ;
You can’t perform that action at this time.
0 commit comments