microsoft / microsoft/TypeScript
Allow folding of JSDoc comments
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
VsCode version: 1.40.2 (Oct 2019, 2)
OS: Windows 10 v1709 os build 16299.847
TypeScript Version: 3.6.3
Search Terms: vs code fold "app.get" outlining jsdoc comment expressjs folding
Code
/**
* @api {get} /ProjectsList/:projectId/ Get project
*
* @apiDescription Get a project by projectId.
*
* @apiName Get User Projects
* @apiGroup Project
* @apiVersion 1.0.0
*
*/
app.get('/:retailUnit/:language/ProjectsList/:projectId/', retailUnit, (req, res) => {
const projectListController = new ProjectListController();
});
Repro:
- Create file foobar.js, copy paste the code from above.
- Try fold all.
Expected behavior: Comment and method fold
Actual behavior: method fold, comment does not
Expected behavior: I can fold the jsdoc comment above the app.get function
Actual behavior: I cannot fold the jsdoc comment, outlining not available.
Related Issues: Some (incorrectly?) for vs code, but these are the ones I found, but the first one is very similar to this one, but for arrow functions instead:
- https://github.com/microsoft/TypeScript/issues/26014
- https://github.com/Microsoft/vscode/issues/55249
- https://github.com/microsoft/vscode/issues/80186
This is my first report here, I hope it is ok. :-)
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il problema in foobar.js usando il JSDoc e l’esempio app.get forniti, quindi traccia il comportamento della struttura di TypeScript/VS Code. Il lavoro è completato quando Fold All e il controllo di piegatura del commento includono il blocco JSDoc; nel report non sono indicati file sorgente o test specifici.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, typescript, vscode
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100