-
Notifications
You must be signed in to change notification settings - Fork 16
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
Quest: Template imports support #355
Comments
Hi @lifeart In VSCode, I lose the If I change the language from Is this supposed to be already supported? |
Hi @bartocc, thank you for your report! I think it's a good suggestion to support go-to definition here! In addition, could you check how go-to definition working with https://github.com/typed-ember/glint/ and glint vscode extension installed? |
It works great with Glint and its vs code extension! What I don't really understand now is how the Glint Language Server relates to uELS… Do we need both? Is one expected to replace the other at some point in the future? |
@bartocc great! |
I just noticed that (in both neovim and vscode), template-lint isn't running within |
@NullVoxPopuli it may be a problem with template-lint version, Or it may be |
well, it could be that we just can't make assumptions about where / how node_modules are kept. My ❯ node-why ember-template-lint
Node resolves ember-template-lint to
/home/nvp/Development/NullVoxPopuli/limber/node_modules/.pnpm/ember-template-lint@5.13.0/node_modules/ember-template-lint/lib/index.js
Which is @ 5.13.0
however, ❯ la node_modules/.bin/
Permissions Size User Date Modified Name
...
.rwxr-xr-x 1.5k nvp 11 Dec 11:41 ember-template-lint
...
Maybe it'd be better to do: const require = module.createRequire(import.meta.url);
const pathOfDep = require.resolve(`ember-template-lint`, {
paths: [
process.cwd(), // really, the project-directory of the current file (findup(package.json))
]
});
// ember-template-lint/lib/
const libDirectory = path.dirname(pathOfDep); |
@NullVoxPopuli In addition, we still bundling & compiling to But I really like idea about |
In scope of this activity we have to:
.gts
and.gjs
files feat: basic template imports support (<template> tag and gts, gjs files) #350.gts
and.gjs
into global registry (components and tests only) feat: basic template imports support (<template> tag and gts, gjs files) #350<template>
tags from.gts
and.gjs
files feat: basic template imports support (<template> tag and gts, gjs files) #350<template>
tag usingember-template-lint
feat: basic template imports support (<template> tag and gts, gjs files) #350<template>
feat: legacy completion and definition modes for template imports #354<template>
feat: legacy completion and definition modes for template imports #354<templates>
The text was updated successfully, but these errors were encountered: