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 96b621a commit 55588f0Copy full SHA for 55588f0
packages/typescript-plugin/index.ts
@@ -76,12 +76,10 @@ export = createLanguageServicePlugin(
76
projectService.logger.info('Vue: there is no addProtocolHandler method.');
77
return;
78
}
79
- if ((session as any).vueCommandsAdded) {
+ if ((session as any).handlers.has('_vue:projectInfo')) {
80
81
82
83
- (session as any).vueCommandsAdded = true;
84
-
85
session.addProtocolHandler('_vue:projectInfo', ({ arguments: args }) => {
86
return (session as any).handlers.get('projectInfo')?.({ arguments: args });
87
});
0 commit comments