angular / angular/angular

[feature] Optimize activation events

Open
#65,526 4 comments 4 reactions 0 assignees View on GitHub
area: vscode-extension feature
Dominant language
TypeScript
Stars
101k
Forks
27.5k
Avg merge
1d 19h
Merged PRs (30d)
288

Description

**Is your feature request related to a problem? Please describe.**

The vscode-ng-language-service is activated if html or js files are part of the workspace. This corresponds to nearly all projects.

**Describe the solution you'd like**

Since all angular projects depend on the angular.json file, this file could be used as an activation point and prevent starting the extension in non angular workspaces.

```js
"activationEvents": [
"workspaceContains:**/angular.json"
]
```

**Describe alternatives you've considered**

**Additional context**

The solution should be discussed. I don't know, if it conflicts with other concepts like Angular Elements...

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the vscode-ng-language-service activation configuration and how angular.json is used to identify Angular workspaces. Check whether activation based on angular.json conflicts with Angular Elements or other supported workspace types. Done means the activation rule is agreed, documented, and verified against both Angular and non-Angular workspaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.