test(language-service): Load language service from tsconfig (#30153)

This PR changes the integration test to load language service the way it would be loaded in the editor.
If the language service is specified in tsconfig, it'd only be loaded for Angular projects.
Specifying it as `globalPlugins` loads it unconditionally whenever tsserver is brought up.

PR Close #30153
This commit is contained in:
Keen Yee Liau 2019-04-26 11:31:21 -07:00 committed by Andrew Kushnir
parent 05eabb19d6
commit 6dc884f2ab
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,9 @@
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
"suppressImplicitAnyIndexErrors": true,
"plugins": [
{"name": "@angular/language-service"}
]
}
}

View File

@ -13,7 +13,6 @@ describe('Angular Language Service', () => {
beforeEach(() => {
jasmine.addMatchers(goldenMatcher);
server = fork(SERVER_PATH, [
'--globalPlugins', '@angular/language-service',
'--logVerbosity', 'verbose',
'--logFile', join(PWD, 'tsserver.log'),
], {