Skip to content
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

Specify Angular Language service paths #2127

Open
2 tasks
fdx-kunal opened this issue Dec 9, 2024 · 1 comment
Open
2 tasks

Specify Angular Language service paths #2127

fdx-kunal opened this issue Dec 9, 2024 · 1 comment

Comments

@fdx-kunal
Copy link

fdx-kunal commented Dec 9, 2024

🐞 bug report

Description

Is there anyway to set angular language service to only run on angular projects in my mono repo?

Seems like I get the initialising language service spinner while it's trying to figure it out and blocking things like intellisense.

Bug Type

What does this bug affect

  • Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

Steps to reproduce the behavior:

  1. Run angular language service in a mono repo with non angular projects

Expected behavior

A clear and concise description of what you expected to happen.

Logs

[Info  - 11:47:58] Disabling language service for /Users/name/Documents/Source/monorepo/packages/some-package/tsconfig.json because project is not an Angular project ('@angular/core' could not be found).
[Info  - 11:47:59] Disabling language service for /Users/name/Documents/Source/monorepo/apps/some-app/tsconfig.json because project is not an Angular project ('@angular/core' could not be found).

🌍 Your Environment

Angular Version:


Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1900.4
@angular-devkit/core         18.2.12
@angular-devkit/schematics   18.2.12
@schematics/angular          18.2.12
typescript                   5.5.4

Extension Version:


v19.0.3

VSCode Version:


VSCode Version: 1.93.1

Operating System:


Mac Os

Anything else relevant?

@fdx-kunal fdx-kunal added the bug label Dec 9, 2024
@atscott
Copy link
Collaborator

atscott commented Mar 28, 2025

Angular doesn’t have its own file extension so the language service activates on typescript files and disables itself if angular is not found in the project sources. This should be very quick and only happen a single time for any given project.

Are you seeing this take a long time for some reason? If so, it would be helpful to get a reproduction if possible or some measurement of the time from the server logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants