@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.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v5.1.3
3
- * (c) 2010-2017 Google, Inc. https://angular.io/
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';
@@ -2391,14 +2391,16 @@ function angularOnlyFilter(ls) {
2391
2391
  getFormattingEditsAfterKeystroke: function (fileName, position, key, options) { return []; },
2392
2392
  getDocCommentTemplateAtPosition: function (fileName, position) { return undefined; },
2393
2393
  isValidBraceCompletionAtPosition: function (fileName, position, openingBrace) { return undefined; },
2394
+ getSpanOfEnclosingComment: function (fileName, position, onlyMultiLine) { return undefined; },
2394
2395
  getCodeFixesAtPosition: function (fileName, start, end, errorCodes) { return []; },
2396
+ applyCodeActionCommand: function (action) { return Promise.resolve(undefined); },
2395
2397
  getEmitOutput: function (fileName) { return undefined; },
2396
2398
  getProgram: function () { return ls.getProgram(); },
2397
2399
  dispose: function () { return ls.dispose(); },
2398
2400
  getApplicableRefactors: function (fileName, positionOrRaneg) { return []; },
2399
2401
  getEditsForRefactor: function (fileName, formatOptions, positionOrRange, refactorName, actionName) {
2400
2402
  return undefined;
2401
- },
2403
+ }
2402
2404
  };
2403
2405
  }
2404
2406
  function create(info /* ts.server.PluginCreateInfo */) {
@@ -2446,9 +2448,9 @@ function create(info /* ts.server.PluginCreateInfo */) {
2446
2448
  getSemanticClassifications: tryFilenameOneCall(ls.getSemanticClassifications),
2447
2449
  getEncodedSyntacticClassifications: tryFilenameOneCall(ls.getEncodedSyntacticClassifications),
2448
2450
  getEncodedSemanticClassifications: tryFilenameOneCall(ls.getEncodedSemanticClassifications),
2449
- getCompletionsAtPosition: tryFilenameOneCall(ls.getCompletionsAtPosition),
2450
- getCompletionEntryDetails: tryFilenameTwoCall(ls.getCompletionEntryDetails),
2451
- getCompletionEntrySymbol: tryFilenameTwoCall(ls.getCompletionEntrySymbol),
2451
+ getCompletionsAtPosition: tryFilenameTwoCall(ls.getCompletionsAtPosition),
2452
+ getCompletionEntryDetails: tryFilenameFourCall(ls.getCompletionEntryDetails),
2453
+ getCompletionEntrySymbol: tryFilenameThreeCall(ls.getCompletionEntrySymbol),
2452
2454
  getQuickInfoAtPosition: tryFilenameOneCall(ls.getQuickInfoAtPosition),
2453
2455
  getNameOrDottedNameSpan: tryFilenameTwoCall(ls.getNameOrDottedNameSpan),
2454
2456
  getBreakpointStatementAtPosition: tryFilenameOneCall(ls.getBreakpointStatementAtPosition),
@@ -2475,14 +2477,14 @@ function create(info /* ts.server.PluginCreateInfo */) {
2475
2477
  getFormattingEditsAfterKeystroke: tryFilenameThreeCall(ls.getFormattingEditsAfterKeystroke),
2476
2478
  getDocCommentTemplateAtPosition: tryFilenameOneCall(ls.getDocCommentTemplateAtPosition),
2477
2479
  isValidBraceCompletionAtPosition: tryFilenameTwoCall(ls.isValidBraceCompletionAtPosition),
2480
+ getSpanOfEnclosingComment: tryFilenameTwoCall(ls.getSpanOfEnclosingComment),
2478
2481
  getCodeFixesAtPosition: tryFilenameFourCall(ls.getCodeFixesAtPosition),
2482
+ applyCodeActionCommand: (function (action) { return tryCall(undefined, function () { return ls.applyCodeActionCommand(action); }); }),
2479
2483
  getEmitOutput: tryFilenameCall(ls.getEmitOutput),
2480
2484
  getProgram: function () { return ls.getProgram(); },
2481
2485
  dispose: function () { return ls.dispose(); },
2482
- getApplicableRefactors: function (fileName, positionOrRaneg) { return []; },
2483
- getEditsForRefactor: function (fileName, formatOptions, positionOrRange, refactorName, actionName) {
2484
- return undefined;
2485
- },
2486
+ getApplicableRefactors: tryFilenameOneCall(ls.getApplicableRefactors),
2487
+ getEditsForRefactor: tryFilenameFourCall(ls.getEditsForRefactor)
2486
2488
  };
2487
2489
  }
2488
2490
  oldLS = typescriptOnly(oldLS);
@@ -2541,8 +2543,8 @@ function create(info /* ts.server.PluginCreateInfo */) {
2541
2543
  var ls = createLanguageService(serviceHost);
2542
2544
  serviceHost.setSite(ls);
2543
2545
  projectHostMap.set(info.project, serviceHost);
2544
- proxy.getCompletionsAtPosition = function (fileName, position) {
2545
- var base = oldLS.getCompletionsAtPosition(fileName, position) || {
2546
+ proxy.getCompletionsAtPosition = function (fileName, position, options) {
2547
+ var base = oldLS.getCompletionsAtPosition(fileName, position, options) || {
2546
2548
  isGlobalCompletion: false,
2547
2549
  isMemberCompletion: false,
2548
2550
  isNewIdentifierLocation: false,
@@ -2649,7 +2651,7 @@ function create(info /* ts.server.PluginCreateInfo */) {
2649
2651
  /**
2650
2652
  * @stable
2651
2653
  */
2652
- var VERSION = new Version('5.1.3');
2654
+ var VERSION = new Version('5.2.0');
2653
2655
 
2654
2656
  /**
2655
2657
  * @license