Skip to content

Commit e1a96c0

Browse files
committed
fix conflicts with CSS Service's documentLinkProvider
1 parent fb0563d commit e1a96c0

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

packages/language-server/src/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ connection.onInitialize((params) => {
2323
},
2424
});
2525

26-
// Disable rename provider due to conflict with ts-plugin
27-
// TODO: Allow rename operations that do not conflict with ts-plugin
28-
// TODO: Do not disable provider in CSS files that are not CSS Modules
26+
// CSS Service's renameProvider conflicts with ts-plugin, causing #121.
27+
// Therefore, we disable that provider.
2928
delete cssService.capabilities.renameProvider;
30-
// Disable references provider due to conflict with ts-plugin
31-
// TODO: Allow references operations that do not conflict with ts-plugin
32-
// TODO: Do not disable provider in CSS files that are not CSS Modules
29+
// CSS Service's renameProvider conflicts with ts-plugin, causing duplicate entries in find all references.
30+
// Therefore, we disable that provider.
3331
delete cssService.capabilities.referencesProvider;
32+
// CSS Service's documentLinkProvider conflicts with ts-plugin, causing #133 and #138.
33+
// Therefore, we disable that provider.
34+
delete cssService.capabilities.documentLinkProvider;
3435

3536
return server.initialize(params, createSimpleProject([]), [cssService]);
3637
});

0 commit comments

Comments
 (0)