-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add extentions to settings #2759
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some documents?
@@ -140,7 +141,8 @@ export function getDefaultVLSConfig(): VLSFullConfig { | |||
}, | |||
experimental: { | |||
templateInterpolationService: false | |||
} | |||
}, | |||
extensions: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can call alias.extensions
@@ -35,6 +36,7 @@ export function createEnvironmentService( | |||
getPackagePath: () => packagePath, | |||
getVueVersion: () => inferVueVersion(packagePath), | |||
getSnippetFolder: () => snippetFolder, | |||
getGlobalComponentInfos: () => globalComponentInfos | |||
getGlobalComponentInfos: () => globalComponentInfos, | |||
isVueFile: (path: string) => ['.vue', ...$config.vetur.extensions].some(ext => path.endsWith(ext)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you need to prefix .
when no dot input.
Sure. But do we still need this change? This was originally for #2753. |
In this comment #2753 (comment) , |
No description provided.