fix(language-service): Remove getExternalFiles() (#34260)
This commit removes the `getExternalFiles()` from the tsserver plugin. This API is no longer needed now that we do not intend to support external templates under the plugin mode. Instead, the external files are added to the project only when they are opened by the user. For complete discussion, see https://github.com/angular/vscode-ng-language-service/issues/473 PR closes https://github.com/angular/vscode-ng-language-service/issues/469 PR closes https://github.com/angular/vscode-ng-language-service/issues/473 PR Close #34260
This commit is contained in:

committed by
Andrew Kushnir

parent
99745009a8
commit
0e911f87b0
@ -8,7 +8,7 @@
|
||||
|
||||
import * as ts from 'typescript';
|
||||
|
||||
import {create, getExternalFiles} from '../src/ts_plugin';
|
||||
import {create} from '../src/ts_plugin';
|
||||
import {CompletionKind} from '../src/types';
|
||||
|
||||
import {MockTypescriptHost} from './test_utils';
|
||||
@ -65,11 +65,6 @@ describe('plugin', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('should return external templates as external files', () => {
|
||||
const externalFiles = getExternalFiles(mockProject);
|
||||
expect(externalFiles).toEqual(['/app/test.ng']);
|
||||
});
|
||||
|
||||
it('should not report template errors on tour of heroes', () => {
|
||||
const filesWithTemplates = [
|
||||
// Ignore all '*-cases.ts' files as they intentionally contain errors.
|
||||
|
Reference in New Issue
Block a user