We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca60100 commit a5990b7Copy full SHA for a5990b7
src/plugin/index.ts
@@ -33,6 +33,15 @@ const init: ts.server.PluginModuleFactory = ({ typescript }) => {
33
strictLanguageService.dispose();
34
info.languageService.dispose();
35
};
36
+ proxy.getQuickInfoAtPosition = function (filePath, position) {
37
+ const strictFile = new PluginStrictFileChecker(info).isFileStrict(filePath);
38
+
39
+ if (strictFile) {
40
+ return strictLanguageService.getQuickInfoAtPosition(filePath, position);
41
+ } else {
42
+ return info.languageService.getQuickInfoAtPosition(filePath, position);
43
+ }
44
+ };
45
46
return proxy;
47
}
0 commit comments