@artel/artc 0.6.25265 → 0.6.25267

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/build/Cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-H4KRG6OZ.js";
5
- import "./chunk-ZL6MDCED.js";
4
+ } from "./chunk-QPMUNY52.js";
5
+ import "./chunk-PWOY5UD5.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-7MWYN6O7.js";
8
+ } from "./chunk-PONDNA47.js";
9
9
 
10
10
  // source/Cli.ts
11
11
  function main() {
package/build/api/Api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "../chunk-ZL6MDCED.js";
3
+ } from "../chunk-PWOY5UD5.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunctionParameter,
@@ -343,7 +343,7 @@ import {
343
343
  withoutQuotes,
344
344
  withoutTemplateQuotes,
345
345
  yieldExecution
346
- } from "../chunk-7MWYN6O7.js";
346
+ } from "../chunk-PONDNA47.js";
347
347
  export {
348
348
  AccessKind,
349
349
  AccessedFunctionParameter,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-H4KRG6OZ.js";
10
- import "../chunk-ZL6MDCED.js";
11
- import "../chunk-7MWYN6O7.js";
9
+ } from "../chunk-QPMUNY52.js";
10
+ import "../chunk-PWOY5UD5.js";
11
+ import "../chunk-PONDNA47.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -182,7 +182,7 @@ import {
182
182
  unwrapParenthesizedExpressions,
183
183
  visitChildren,
184
184
  yieldExecution
185
- } from "../chunk-7MWYN6O7.js";
185
+ } from "../chunk-PONDNA47.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -5230,7 +5230,7 @@ var SyntaxContextFactory = class {
5230
5230
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.right);
5231
5231
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5232
5232
  }
5233
- if (tokenOrKeyword.isToken(7 /* TextTemplateHead */) && tokenOrKeyword.parent.kind === 79 /* TextTemplateLiteral */) {
5233
+ if (tokenOrKeyword.isToken(7 /* TextTemplateHead */) && (tokenOrKeyword.parent.kind === 79 /* TextTemplateLiteral */ || tokenOrKeyword.parent.kind === 80 /* LocalizableTextTemplateLiteral */)) {
5234
5234
  const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.spanList.spans.at(0)?.expression);
5235
5235
  return { isExpressionContext: { expressionRole }, isStatementContext: false };
5236
5236
  }
@@ -8455,9 +8455,15 @@ var SelectionRangeService = class {
8455
8455
  if (!this.nodeShouldBeSkipped(child) && !child.rangeWithoutTrivia.equals(result.range)) {
8456
8456
  result = new SelectionRange(child.rangeWithoutTrivia, result);
8457
8457
  }
8458
- if (child.kind === 0 /* Token */ && (child.tokenKind === 6 /* TextLiteral */ || child.tokenKind === 7 /* TextTemplateHead */ || child.tokenKind === 8 /* TextTemplatePart */ || child.tokenKind === 9 /* TextTemplateTail */ || child.tokenKind === 5 /* CharLiteral */) || child.kind === 79 /* TextTemplateLiteral */) {
8459
- const textContentStart = child.rangeWithoutTrivia.start + 1;
8460
- const textContentEnd = child.rangeWithoutTrivia.end - 1;
8458
+ if (child.kind === 0 /* Token */ && (child.tokenKind === 6 /* TextLiteral */ || child.tokenKind === 7 /* TextTemplateHead */ || child.tokenKind === 8 /* TextTemplatePart */ || child.tokenKind === 9 /* TextTemplateTail */ || child.tokenKind === 5 /* CharLiteral */)) {
8459
+ let textContentStart = child.rangeWithoutTrivia.start + 1;
8460
+ let textContentEnd = child.rangeWithoutTrivia.end - 1;
8461
+ if ((child.flags & 128 /* StartsWithTilde */) !== 0) {
8462
+ textContentStart += 1;
8463
+ }
8464
+ if ((child.flags & 256 /* EndsWithTilde */) !== 0) {
8465
+ textContentEnd -= 1;
8466
+ }
8461
8467
  if (offset >= textContentStart && offset < textContentEnd) {
8462
8468
  result = new SelectionRange(new Range(textContentStart, textContentEnd), result);
8463
8469
  }