We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
projectService.setHostConfiguration
enable plugin setHostConfiguration
This is the behavior in every version I tried, and I reviewed the FAQ for entries about typescript plugin
typescript plugin
export = function init(modules: { typescript: typeof TS }) { return { create(info: TS.server.PluginCreateInfo) { // @ts-expect-error: access private property if (!info.project.projectService.hostConfiguration.extraFileExtensions.some(o => o.extension === ".ext")) { info.project.projectService.setHostConfiguration({ extraFileExtensions: [ { extension: ".ext", isMixedContent: false, scriptKind: modules.typescript.ScriptKind.Deferred } ] }) } return info.languageService } } }
The language service should add files with the ext extension to the project
ext
The file with the ext extension was not added to the project
The text was updated successfully, but these errors were encountered:
extraFileExtensions
ProjectService.setHostConfiguration
Successfully merging a pull request may close this issue.
🔎 Search Terms
enable plugin
setHostConfiguration
🕗 Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about
typescript plugin
🙁 Actual behavior
The language service should add files with the
ext
extension to the project🙂 Expected behavior
The file with the
ext
extension was not added to the projectThe text was updated successfully, but these errors were encountered: