-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Markdown code block (js) IntelliSense #143009
Comments
theoretical thought - would such a feature be possible via an extension?
I just don't have any idea if it's even remotely possible... so if it's a 1 or 2 I would look into it... if it's a 3 or 4... well in that case let's say god has decided |
It's possible but I'm not sold on the value added for uses vs cost of maintaining it. I'd love for someone to prove otherwise though How I'd go about this:
|
thaaankkk you for that info 💪 Some background infoI'm building a static site generator where the source is often markdown. But you can use javascript on the server and clientside within the file... but now users need to choose between
can't have it both 🙈 Example of such a markdown file```js server
export const sourceRelativeFilePath = '10--guides/index.rocket.md';
import { layout, html } from '../recursive.data.js';
export { layout, html };
// getting intellisense here would be awesome
layout.setPageOptions(...)
// getting intellisense here would be awesome
const animals = /** @type {import('../data.js')} */ (await fetch('...').then(req => req.json()));
const animalList = animals.map(animal => html`<p>${animal.name}</p>`;
```
# List of animals
Here you find...
${animalList} |
When working in markdown you do not get code intellisense while within a javascript code block.
With the following source file
Calculator.js
==> REPO with code
you do get code IntelliSense while within a
*.js
file.but you do NOT get it in
*.md
files while within a code blockIdeas
js code blocks
as in js filesmdjs
orjsmd
I personally would favor 1 by a LOT.
any other ideas?
The text was updated successfully, but these errors were encountered: