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:
parent
05eabb19d6
commit
6dc884f2ab
|
@ -8,6 +8,9 @@
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"lib": [ "es2015", "dom" ],
|
"lib": [ "es2015", "dom" ],
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"suppressImplicitAnyIndexErrors": true
|
"suppressImplicitAnyIndexErrors": true,
|
||||||
|
"plugins": [
|
||||||
|
{"name": "@angular/language-service"}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ describe('Angular Language Service', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
jasmine.addMatchers(goldenMatcher);
|
jasmine.addMatchers(goldenMatcher);
|
||||||
server = fork(SERVER_PATH, [
|
server = fork(SERVER_PATH, [
|
||||||
'--globalPlugins', '@angular/language-service',
|
|
||||||
'--logVerbosity', 'verbose',
|
'--logVerbosity', 'verbose',
|
||||||
'--logFile', join(PWD, 'tsserver.log'),
|
'--logFile', join(PWD, 'tsserver.log'),
|
||||||
], {
|
], {
|
||||||
|
|
Loading…
Reference in New Issue