Avoid activating the extension in non-R projects

Offen
#1,922 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript, vscode
Bereich
tooling

Rechercherichtung

The activation behaviour is set by the onStartupFinished entry in package.json, around line 40, which the issue links. Read the activationEvents section and check how VS Code's workspace-contains or language-based events could replace it. To reproduce, open a non-R folder and confirm the extension activates. Done means the extension stays inactive in unrelated workspaces and still activates for R files and R projects. The issue does not settle which trigger to use, so agree on that with maintainers first.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

The onStartupFinished activation event activates the extension even in projects unrelated to R, unnecessarily consuming resources.

Could activation be limited to R-related workspaces and files instead?

Vorherrschende Sprache
TypeScript
Sterne
1.2k
Forks
152
Ø Merge
18 Std. 28 Min.
Gemergte PRs (30 T.)
56

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus REditorSupport/vscode-R

Alle Issues in REditorSupport/vscode-R

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.