@angular/language-server 17.2.1 → 17.2.2

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.
Files changed (2) hide show
  1. package/index.js +12 -5
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -40,7 +40,8 @@ var require_cmdline_utils = __commonJS({
40
40
  includeAutomaticOptionalChainCompletions: hasArgument(argv, "--includeAutomaticOptionalChainCompletions"),
41
41
  includeCompletionsWithSnippetText: hasArgument(argv, "--includeCompletionsWithSnippetText"),
42
42
  forceStrictTemplates: hasArgument(argv, "--forceStrictTemplates"),
43
- disableBlockSyntax: hasArgument(argv, "--disableBlockSyntax")
43
+ disableBlockSyntax: hasArgument(argv, "--disableBlockSyntax"),
44
+ angularCoreVersion: findArgument(argv, "--angularCoreVersion")
44
45
  };
45
46
  }
46
47
  exports2.parseCommandLine = parseCommandLine;
@@ -415,7 +416,8 @@ var require_cmdline_utils = __commonJS({
415
416
  includeAutomaticOptionalChainCompletions: hasArgument(argv, "--includeAutomaticOptionalChainCompletions"),
416
417
  includeCompletionsWithSnippetText: hasArgument(argv, "--includeCompletionsWithSnippetText"),
417
418
  forceStrictTemplates: hasArgument(argv, "--forceStrictTemplates"),
418
- disableBlockSyntax: hasArgument(argv, "--disableBlockSyntax")
419
+ disableBlockSyntax: hasArgument(argv, "--disableBlockSyntax"),
420
+ angularCoreVersion: findArgument(argv, "--angularCoreVersion")
419
421
  };
420
422
  }
421
423
  exports2.parseCommandLine = parseCommandLine;
@@ -763,9 +765,9 @@ var require_server_host = __commonJS({
763
765
  }
764
766
  });
765
767
 
766
- // ../../../../../../../../execroot/__main__/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@angular+language-service@registry.npmjs.org+@angular+language-service@17.2.0-next.0/node_modules/@angular/language-service/api_bundle.js
768
+ // ../../../../../../../../execroot/__main__/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@angular+language-service@registry.npmjs.org+@angular+language-service@17.2.1/node_modules/@angular/language-service/api_bundle.js
767
769
  var require_api_bundle = __commonJS({
768
- "../../../../../../../../execroot/__main__/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@angular+language-service@registry.npmjs.org+@angular+language-service@17.2.0-next.0/node_modules/@angular/language-service/api_bundle.js"(exports2, module2) {
770
+ "../../../../../../../../execroot/__main__/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@angular+language-service@registry.npmjs.org+@angular+language-service@17.2.1/node_modules/@angular/language-service/api_bundle.js"(exports2, module2) {
769
771
  var __defProp2 = Object.defineProperty;
770
772
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
771
773
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
@@ -206772,6 +206774,9 @@ var require_session = __commonJS({
206772
206774
  if (options2.disableBlockSyntax) {
206773
206775
  pluginConfig.enableBlockSyntax = false;
206774
206776
  }
206777
+ if (options2.angularCoreVersion !== null) {
206778
+ pluginConfig.angularCoreVersion = options2.angularCoreVersion;
206779
+ }
206775
206780
  projSvc.configurePlugin({
206776
206781
  pluginName: options2.ngPlugin,
206777
206782
  configuration: pluginConfig
@@ -207956,6 +207961,7 @@ var server_host_1 = require_server_host();
207956
207961
  var session_1 = require_session();
207957
207962
  var version_provider_1 = require_version_provider();
207958
207963
  function main() {
207964
+ var _a;
207959
207965
  const logger = (0, logger_1.createLogger)({
207960
207966
  logFile: options.logFile,
207961
207967
  logVerbosity: options.logVerbosity
@@ -207974,7 +207980,8 @@ function main() {
207974
207980
  includeAutomaticOptionalChainCompletions: options.includeAutomaticOptionalChainCompletions,
207975
207981
  includeCompletionsWithSnippetText: options.includeCompletionsWithSnippetText,
207976
207982
  forceStrictTemplates: isG3 || options.forceStrictTemplates,
207977
- disableBlockSyntax: options.disableBlockSyntax
207983
+ disableBlockSyntax: options.disableBlockSyntax,
207984
+ angularCoreVersion: (_a = options.angularCoreVersion) !== null && _a !== void 0 ? _a : null
207978
207985
  });
207979
207986
  session.info(`Angular language server process ID: ${process.pid}`);
207980
207987
  session.info(`Imported typescript/lib/tsserverlibrary is version ${tsserverlibrary_1.version}.`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@angular/language-server",
3
3
  "description": "LSP server for Angular Language Service",
4
- "version": "17.2.1",
4
+ "version": "17.2.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/angular/vscode-ng-language-service.git"
@@ -15,7 +15,7 @@
15
15
  "ngserver": "./bin/ngserver"
16
16
  },
17
17
  "dependencies": {
18
- "@angular/language-service": "17.2.0-next.0",
18
+ "@angular/language-service": "17.2.1",
19
19
  "vscode-html-languageservice": "^4.2.5",
20
20
  "vscode-jsonrpc": "6.0.0",
21
21
  "vscode-languageserver": "7.0.0",