Project dependencies not discoverable (Open Folder extensibility)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- csharp, node.js
- Ambito
- developer-experience, tooling
Direzione di ricerca
Inizia con l’utilizzo di Open Folder indexing service, GetProjectConfigurationServiceAsync, GetIndexWorkspaceService e GetFileReferencesAsync mostrato nell’issue. Determina se Node.js tooling espone i percorsi dei file delle dipendenze tramite le interfacce standard FileReferenceResult o FileReferenceInfoType; il lavoro è completato quando le dipendenze sono individuabili per una Open Folder Node.js Express app tramite questo servizio comune.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Nodejs tooling is indicated to support Open Folder.
Expected Behavior
After creating an empty Nodejs Express app, switching to folder view (therefore project is loaded by Open Folder), I expected to be able to retrieve the dependencies of the express app using the Open Folder indexing service,
var projConfigService = await workspace.GetProjectConfigurationServiceAsync();
var currStartupFile = projConfigService.CurrentProject.FilePath;
var indexService = workspace.GetIndexWorkspaceService();
var dependencyResult = await indexService.GetFileReferencesAsync(currStartupFile, referenceTypes: (int)FileReferenceInfoType.Dependency));
// dependencyResult is empty :(
Actual Behavior
The dependencyResult result set is empty, in addition to the result sets returned when trying this with other types of FileReferenceInfoType. It appears that Nodejs tooling does not implement support for the Open Folder indexing service.
Additional Context
One of the reasons that the Open Folder feature exists is to facilitate extension authors to create rich features for any language, by defining common extension points such as FileReferenceResult. Otherwise an extension author has to consider the special cases of each language and the way that the tooling has been implemented, making it infeasible to ship language agnostic extensions.
I'm hoping there is a way to discover dependency locations (file paths) for Nodejs project loaded in Visual Studio Open Folder that isn't unique to Nodejs (exposed by some standard set of interfaces).
Information and guidance relating to this would be much appreciated :)
- Lingua principale
- C#
- Stelle
- 1.8k
- Fork
- 355
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi 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.
Altre issue di microsoft/nodejstools
-
Microsoft.Build.Tasks.Core is outdatedForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
microsoft/nodejstools#2523 · 1 reazione · 1 assegnatario ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
microsoft/nodejstools#2519 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
microsoft/nodejstools#2517 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
microsoft/nodejstools#2514 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
microsoft/nodejstools#2513 · 5 commenti ·
Tutte le issue di microsoft/nodejstools
Issue simili
-
[Doc Gap] Document new --enable-public-network-access breaking change for azurebackup vault createApertacopilot documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
area-dashboard
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
0 - Backlog Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
BrighterCommand/Brighter#4539 ·
I maintainer di solito rispondono entro 1 giorno
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
area-networking
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
dotnet/aspnetcore#69671 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno