@typescript-deploys/pr-build 5.5.0-pr-57909-8 → 5.5.0-pr-57951-3

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/lib/tsserver.js CHANGED
@@ -191,7 +191,7 @@ function initializeNodeSystem() {
191
191
  }
192
192
  write(s, _type) {
193
193
  if (this.fd >= 0) {
194
- const buf = sys4.bufferFrom(s);
194
+ const buf = Buffer.from(s);
195
195
  fs.writeSync(
196
196
  this.fd,
197
197
  buf,
@@ -269,7 +269,7 @@ function initializeNodeSystem() {
269
269
  } else {
270
270
  sys4.watchDirectory = watchDirectorySwallowingException;
271
271
  }
272
- sys4.write = (s) => writeMessage(sys4.bufferFrom(s, "utf8"));
272
+ sys4.write = (s) => writeMessage(Buffer.from(s, "utf8"));
273
273
  sys4.setTimeout = setTimeout;
274
274
  sys4.clearTimeout = clearTimeout;
275
275
  sys4.setImmediate = setImmediate;
@@ -455,7 +455,8 @@ function startNodeSession(options, logger, cancellationToken) {
455
455
  hrtime: process.hrtime,
456
456
  logger,
457
457
  canUseEvents: true,
458
- typesMapLocation
458
+ typesMapLocation,
459
+ incrementalVerifier: withIncrementalVerifier ? typescript_exports.incrementalVerifier : void 0
459
460
  });
460
461
  this.eventPort = eventPort;
461
462
  if (this.canUseEvents && this.eventPort) {
@@ -539,6 +540,7 @@ function startNodeSession(options, logger, cancellationToken) {
539
540
  const validateDefaultNpmLocation = typescript_exports.server.hasArgument(typescript_exports.server.Arguments.ValidateDefaultNpmLocation);
540
541
  const disableAutomaticTypingAcquisition = typescript_exports.server.hasArgument("--disableAutomaticTypingAcquisition");
541
542
  const useNodeIpc = typescript_exports.server.hasArgument("--useNodeIpc");
543
+ const withIncrementalVerifier = typescript_exports.server.hasArgument("--withIncrementalVerifier");
542
544
  const telemetryEnabled = typescript_exports.server.hasArgument(typescript_exports.server.Arguments.EnableTelemetry);
543
545
  const commandLineTraceDir = typescript_exports.server.findArgument("--traceDirectory");
544
546
  const traceDir = commandLineTraceDir ? (0, typescript_exports.stripQuotes)(commandLineTraceDir) : process.env.TSS_TRACE;
@@ -2032,6 +2032,7 @@ declare namespace ts {
2032
2032
  readonly id: number;
2033
2033
  readonly path: string;
2034
2034
  readonly recursive: boolean;
2035
+ readonly ignoreUpdate?: boolean;
2035
2036
  }
2036
2037
  export type CloseFileWatcherEventName = "closeFileWatcher";
2037
2038
  export interface CloseFileWatcherEvent extends Event {
@@ -3940,12 +3941,13 @@ declare namespace ts {
3940
3941
  JSDocPropertyTag = 348,
3941
3942
  JSDocThrowsTag = 349,
3942
3943
  JSDocSatisfiesTag = 350,
3943
- SyntaxList = 351,
3944
- NotEmittedStatement = 352,
3945
- PartiallyEmittedExpression = 353,
3946
- CommaListExpression = 354,
3947
- SyntheticReferenceExpression = 355,
3948
- Count = 356,
3944
+ JSDocImportTag = 351,
3945
+ SyntaxList = 352,
3946
+ NotEmittedStatement = 353,
3947
+ PartiallyEmittedExpression = 354,
3948
+ CommaListExpression = 355,
3949
+ SyntheticReferenceExpression = 356,
3950
+ Count = 357,
3949
3951
  FirstAssignment = 64,
3950
3952
  LastAssignment = 79,
3951
3953
  FirstCompoundAssignment = 65,
@@ -3974,9 +3976,9 @@ declare namespace ts {
3974
3976
  LastStatement = 259,
3975
3977
  FirstNode = 166,
3976
3978
  FirstJSDocNode = 309,
3977
- LastJSDocNode = 350,
3979
+ LastJSDocNode = 351,
3978
3980
  FirstJSDocTagNode = 327,
3979
- LastJSDocTagNode = 350,
3981
+ LastJSDocTagNode = 351,
3980
3982
  }
3981
3983
  type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
3982
3984
  type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
@@ -5426,7 +5428,7 @@ declare namespace ts {
5426
5428
  type NamedExportBindings = NamespaceExport | NamedExports;
5427
5429
  interface ImportClause extends NamedDeclaration {
5428
5430
  readonly kind: SyntaxKind.ImportClause;
5429
- readonly parent: ImportDeclaration;
5431
+ readonly parent: ImportDeclaration | JSDocImportTag;
5430
5432
  readonly isTypeOnly: boolean;
5431
5433
  readonly name?: Identifier;
5432
5434
  readonly namedBindings?: NamedImportBindings;
@@ -5783,6 +5785,13 @@ declare namespace ts {
5783
5785
  readonly kind: SyntaxKind.JSDocSatisfiesTag;
5784
5786
  readonly typeExpression: JSDocTypeExpression;
5785
5787
  }
5788
+ interface JSDocImportTag extends JSDocTag {
5789
+ readonly kind: SyntaxKind.JSDocImportTag;
5790
+ readonly parent: JSDoc;
5791
+ readonly importClause?: ImportClause;
5792
+ readonly moduleSpecifier: Expression;
5793
+ readonly attributes?: ImportAttributes;
5794
+ }
5786
5795
  enum FlowFlags {
5787
5796
  Unreachable = 1,
5788
5797
  Start = 2,
@@ -7696,6 +7705,8 @@ declare namespace ts {
7696
7705
  updateJSDocThrowsTag(node: JSDocThrowsTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment?: string | NodeArray<JSDocComment> | undefined): JSDocThrowsTag;
7697
7706
  createJSDocSatisfiesTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocComment>): JSDocSatisfiesTag;
7698
7707
  updateJSDocSatisfiesTag(node: JSDocSatisfiesTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray<JSDocComment> | undefined): JSDocSatisfiesTag;
7708
+ createJSDocImportTag(tagName: Identifier | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes?: ImportAttributes, comment?: string | NodeArray<JSDocComment>): JSDocImportTag;
7709
+ updateJSDocImportTag(node: JSDocImportTag, tagName: Identifier | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes: ImportAttributes | undefined, comment: string | NodeArray<JSDocComment> | undefined): JSDocImportTag;
7699
7710
  createJSDocText(text: string): JSDocText;
7700
7711
  updateJSDocText(node: JSDocText, text: string): JSDocText;
7701
7712
  createJSDocComment(comment?: string | NodeArray<JSDocComment> | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc;
@@ -8998,6 +9009,7 @@ declare namespace ts {
8998
9009
  function isJSDocImplementsTag(node: Node): node is JSDocImplementsTag;
8999
9010
  function isJSDocSatisfiesTag(node: Node): node is JSDocSatisfiesTag;
9000
9011
  function isJSDocThrowsTag(node: Node): node is JSDocThrowsTag;
9012
+ function isJSDocImportTag(node: Node): node is JSDocImportTag;
9001
9013
  function isQuestionOrExclamationToken(node: Node): node is QuestionToken | ExclamationToken;
9002
9014
  function isIdentifierOrThisTypeNode(node: Node): node is Identifier | ThisTypeNode;
9003
9015
  function isReadonlyKeywordOrPlusOrMinusToken(node: Node): node is ReadonlyKeyword | PlusToken | MinusToken;