@angular/language-service 5.1.3 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/language-service.umd.js +1093 -209
- package/bundles/language-service.umd.js.map +1 -1
- package/bundles/language-service.umd.min.js +69 -41
- package/bundles/language-service.umd.min.js.map +1 -1
- package/esm2015/language-service.js +15 -11
- package/esm2015/language-service.js.map +1 -1
- package/esm5/language-service.js +15 -13
- package/esm5/language-service.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v5.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v5.2.0
|
|
3
|
+
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
import { ASTWithSource, AotSummaryResolver, AstPath, Attribute, CompileMetadataResolver, CompilerConfig, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DirectiveNormalizer, DirectiveResolver, DomElementSchemaRegistry, Element, ElementAst, HtmlParser, I18NHtmlParser, ImplicitReceiver, JitSummaryResolver, Lexer, NAMED_ENTITIES, NgModuleResolver, NullAstVisitor, NullTemplateVisitor, ParseSpan, ParseTreeResult, Parser, PipeResolver, PropertyRead, RecursiveTemplateAstVisitor, ResourceLoader, SelectorMatcher, StaticReflector, StaticSymbolCache, StaticSymbolResolver, TagContentType, TemplateParser, Text, analyzeNgModules, createOfflineCompileUrlResolver, findNode, getHtmlTagDefinition, identifierName, isFormattedError, splitNsName, templateVisitAll, tokenReference, visitAstChildren } from '@angular/compiler';
|
|
@@ -2248,12 +2248,14 @@ function angularOnlyFilter(ls) {
|
|
|
2248
2248
|
getFormattingEditsAfterKeystroke: (fileName, position, key, options) => [],
|
|
2249
2249
|
getDocCommentTemplateAtPosition: (fileName, position) => undefined,
|
|
2250
2250
|
isValidBraceCompletionAtPosition: (fileName, position, openingBrace) => undefined,
|
|
2251
|
+
getSpanOfEnclosingComment: (fileName, position, onlyMultiLine) => undefined,
|
|
2251
2252
|
getCodeFixesAtPosition: (fileName, start, end, errorCodes) => [],
|
|
2253
|
+
applyCodeActionCommand: (action) => Promise.resolve(undefined),
|
|
2252
2254
|
getEmitOutput: fileName => undefined,
|
|
2253
2255
|
getProgram: () => ls.getProgram(),
|
|
2254
2256
|
dispose: () => ls.dispose(),
|
|
2255
2257
|
getApplicableRefactors: (fileName, positionOrRaneg) => [],
|
|
2256
|
-
getEditsForRefactor: (fileName, formatOptions, positionOrRange, refactorName, actionName) => undefined
|
|
2258
|
+
getEditsForRefactor: (fileName, formatOptions, positionOrRange, refactorName, actionName) => undefined
|
|
2257
2259
|
};
|
|
2258
2260
|
}
|
|
2259
2261
|
function create(info /* ts.server.PluginCreateInfo */) {
|
|
@@ -2299,9 +2301,9 @@ function create(info /* ts.server.PluginCreateInfo */) {
|
|
|
2299
2301
|
getSemanticClassifications: tryFilenameOneCall(ls.getSemanticClassifications),
|
|
2300
2302
|
getEncodedSyntacticClassifications: tryFilenameOneCall(ls.getEncodedSyntacticClassifications),
|
|
2301
2303
|
getEncodedSemanticClassifications: tryFilenameOneCall(ls.getEncodedSemanticClassifications),
|
|
2302
|
-
getCompletionsAtPosition:
|
|
2303
|
-
getCompletionEntryDetails:
|
|
2304
|
-
getCompletionEntrySymbol:
|
|
2304
|
+
getCompletionsAtPosition: tryFilenameTwoCall(ls.getCompletionsAtPosition),
|
|
2305
|
+
getCompletionEntryDetails: tryFilenameFourCall(ls.getCompletionEntryDetails),
|
|
2306
|
+
getCompletionEntrySymbol: tryFilenameThreeCall(ls.getCompletionEntrySymbol),
|
|
2305
2307
|
getQuickInfoAtPosition: tryFilenameOneCall(ls.getQuickInfoAtPosition),
|
|
2306
2308
|
getNameOrDottedNameSpan: tryFilenameTwoCall(ls.getNameOrDottedNameSpan),
|
|
2307
2309
|
getBreakpointStatementAtPosition: tryFilenameOneCall(ls.getBreakpointStatementAtPosition),
|
|
@@ -2328,12 +2330,14 @@ function create(info /* ts.server.PluginCreateInfo */) {
|
|
|
2328
2330
|
getFormattingEditsAfterKeystroke: tryFilenameThreeCall(ls.getFormattingEditsAfterKeystroke),
|
|
2329
2331
|
getDocCommentTemplateAtPosition: tryFilenameOneCall(ls.getDocCommentTemplateAtPosition),
|
|
2330
2332
|
isValidBraceCompletionAtPosition: tryFilenameTwoCall(ls.isValidBraceCompletionAtPosition),
|
|
2333
|
+
getSpanOfEnclosingComment: tryFilenameTwoCall(ls.getSpanOfEnclosingComment),
|
|
2331
2334
|
getCodeFixesAtPosition: tryFilenameFourCall(ls.getCodeFixesAtPosition),
|
|
2335
|
+
applyCodeActionCommand: ((action) => tryCall(undefined, () => ls.applyCodeActionCommand(action))),
|
|
2332
2336
|
getEmitOutput: tryFilenameCall(ls.getEmitOutput),
|
|
2333
2337
|
getProgram: () => ls.getProgram(),
|
|
2334
2338
|
dispose: () => ls.dispose(),
|
|
2335
|
-
getApplicableRefactors: (
|
|
2336
|
-
getEditsForRefactor: (
|
|
2339
|
+
getApplicableRefactors: tryFilenameOneCall(ls.getApplicableRefactors),
|
|
2340
|
+
getEditsForRefactor: tryFilenameFourCall(ls.getEditsForRefactor)
|
|
2337
2341
|
};
|
|
2338
2342
|
}
|
|
2339
2343
|
oldLS = typescriptOnly(oldLS);
|
|
@@ -2389,8 +2393,8 @@ function create(info /* ts.server.PluginCreateInfo */) {
|
|
|
2389
2393
|
const ls = createLanguageService(serviceHost);
|
|
2390
2394
|
serviceHost.setSite(ls);
|
|
2391
2395
|
projectHostMap.set(info.project, serviceHost);
|
|
2392
|
-
proxy.getCompletionsAtPosition = function (fileName, position) {
|
|
2393
|
-
let base = oldLS.getCompletionsAtPosition(fileName, position) || {
|
|
2396
|
+
proxy.getCompletionsAtPosition = function (fileName, position, options) {
|
|
2397
|
+
let base = oldLS.getCompletionsAtPosition(fileName, position, options) || {
|
|
2394
2398
|
isGlobalCompletion: false,
|
|
2395
2399
|
isMemberCompletion: false,
|
|
2396
2400
|
isNewIdentifierLocation: false,
|
|
@@ -2494,7 +2498,7 @@ function create(info /* ts.server.PluginCreateInfo */) {
|
|
|
2494
2498
|
/**
|
|
2495
2499
|
* @stable
|
|
2496
2500
|
*/
|
|
2497
|
-
const VERSION = new Version('5.
|
|
2501
|
+
const VERSION = new Version('5.2.0');
|
|
2498
2502
|
|
|
2499
2503
|
/**
|
|
2500
2504
|
* @license
|