diff --git a/vscode-ng-language-service/server/src/session.ts b/vscode-ng-language-service/server/src/session.ts index 1f4c5b57808f..4c4adff1a931 100644 --- a/vscode-ng-language-service/server/src/session.ts +++ b/vscode-ng-language-service/server/src/session.ts @@ -34,6 +34,7 @@ import {tsDiagnosticToLspDiagnostic} from './diagnostic'; import {ServerHost} from './server_host'; import { filePathToUri, + isAngularCore, isConfiguredProject, isDebugMode, lspRangeToTsPositions, @@ -782,23 +783,6 @@ export class Session { } } -function isAngularCore(path: string): boolean { - return isExternalAngularCore(path) || isInternalAngularCore(path); -} - -function isExternalAngularCore(path: string): boolean { - return /@angular\/core\/.+\.d\.ts$/.test(path); -} - -function isInternalAngularCore(path: string): boolean { - // path in g3 - return ( - path.endsWith('angular2/rc/packages/core/index.d.ts') || - // angular/angular repository direct sources - path.includes('angular/packages/core/src') - ); -} - function isTypeScriptFile(path: string): boolean { return path.endsWith('.ts'); }