This PR adds a way for the language server to retrieve compiler options diagnostics via `languageService.getCompilerOptionsDiagnostics()`. This will be used by the language server to show a prompt in the editor if users don't have `strict` or `fullTemplateTypeCheck` turned on. Ref https://github.com/angular/vscode-ng-language-service/issues/1053 PR Close #40423
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
 | |
| 
 | |
| ts_library(
 | |
|     name = "legacy_lib",
 | |
|     testonly = True,
 | |
|     srcs = glob(["*.ts"]),
 | |
|     deps = [
 | |
|         "//packages/compiler",
 | |
|         "//packages/compiler-cli/src/ngtsc/core:api",
 | |
|         "//packages/compiler-cli/src/ngtsc/diagnostics",
 | |
|         "//packages/language-service/ivy",
 | |
|         "@npm//typescript",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| jasmine_node_test(
 | |
|     name = "legacy",
 | |
|     data = [
 | |
|         # Note that we used to depend on the npm_package of common, core, and
 | |
|         # forms, but this is no longer the case. We did it for View Engine
 | |
|         # because we wanted to load the flat dts, which is only available in the
 | |
|         # npm_package. Ivy does not currently produce flat dts, so we might
 | |
|         # as well just depend on the outputs of ng_module.
 | |
|         "//packages/common",
 | |
|         "//packages/core",
 | |
|         "//packages/forms",
 | |
|         "//packages/language-service/test:project",
 | |
|     ],
 | |
|     tags = [
 | |
|         "ivy-only",
 | |
|     ],
 | |
|     deps = [
 | |
|         ":legacy_lib",
 | |
|     ],
 | |
| )
 |