@typespec/compiler 0.47.0-dev.1 → 0.47.0-dev.11

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 (102) hide show
  1. package/dist/manifest.js +2 -2
  2. package/dist/src/core/checker.d.ts.map +1 -1
  3. package/dist/src/core/checker.js +103 -18
  4. package/dist/src/core/checker.js.map +1 -1
  5. package/dist/src/core/cli/actions/compile/args.d.ts +1 -0
  6. package/dist/src/core/cli/actions/compile/args.d.ts.map +1 -1
  7. package/dist/src/core/cli/actions/compile/args.js +6 -1
  8. package/dist/src/core/cli/actions/compile/args.js.map +1 -1
  9. package/dist/src/core/cli/actions/compile/compile.d.ts +2 -1
  10. package/dist/src/core/cli/actions/compile/compile.d.ts.map +1 -1
  11. package/dist/src/core/cli/actions/compile/compile.js +2 -3
  12. package/dist/src/core/cli/actions/compile/compile.js.map +1 -1
  13. package/dist/src/core/cli/actions/format.d.ts +2 -1
  14. package/dist/src/core/cli/actions/format.d.ts.map +1 -1
  15. package/dist/src/core/cli/actions/format.js +1 -1
  16. package/dist/src/core/cli/actions/format.js.map +1 -1
  17. package/dist/src/core/cli/actions/info.d.ts +2 -2
  18. package/dist/src/core/cli/actions/info.d.ts.map +1 -1
  19. package/dist/src/core/cli/actions/info.js +1 -7
  20. package/dist/src/core/cli/actions/info.js.map +1 -1
  21. package/dist/src/core/cli/actions/init.d.ts +3 -2
  22. package/dist/src/core/cli/actions/init.d.ts.map +1 -1
  23. package/dist/src/core/cli/actions/init.js +3 -6
  24. package/dist/src/core/cli/actions/init.js.map +1 -1
  25. package/dist/src/core/cli/actions/vs.d.ts +4 -2
  26. package/dist/src/core/cli/actions/vs.d.ts.map +1 -1
  27. package/dist/src/core/cli/actions/vs.js +38 -19
  28. package/dist/src/core/cli/actions/vs.js.map +1 -1
  29. package/dist/src/core/cli/actions/vscode.d.ts +10 -2
  30. package/dist/src/core/cli/actions/vscode.d.ts.map +1 -1
  31. package/dist/src/core/cli/actions/vscode.js +18 -20
  32. package/dist/src/core/cli/actions/vscode.js.map +1 -1
  33. package/dist/src/core/cli/cli.js +16 -13
  34. package/dist/src/core/cli/cli.js.map +1 -1
  35. package/dist/src/core/cli/install-vsix.d.ts +2 -1
  36. package/dist/src/core/cli/install-vsix.d.ts.map +1 -1
  37. package/dist/src/core/cli/install-vsix.js +5 -4
  38. package/dist/src/core/cli/install-vsix.js.map +1 -1
  39. package/dist/src/core/cli/types.d.ts +6 -0
  40. package/dist/src/core/cli/types.d.ts.map +1 -0
  41. package/dist/src/core/cli/types.js +2 -0
  42. package/dist/src/core/cli/types.js.map +1 -0
  43. package/dist/src/core/cli/utils.d.ts +12 -4
  44. package/dist/src/core/cli/utils.d.ts.map +1 -1
  45. package/dist/src/core/cli/utils.js +27 -6
  46. package/dist/src/core/cli/utils.js.map +1 -1
  47. package/dist/src/core/deprecation.d.ts +31 -0
  48. package/dist/src/core/deprecation.d.ts.map +1 -0
  49. package/dist/src/core/deprecation.js +48 -0
  50. package/dist/src/core/deprecation.js.map +1 -0
  51. package/dist/src/core/index.d.ts +1 -0
  52. package/dist/src/core/index.d.ts.map +1 -1
  53. package/dist/src/core/index.js +1 -0
  54. package/dist/src/core/index.js.map +1 -1
  55. package/dist/src/core/install.d.ts +2 -1
  56. package/dist/src/core/install.d.ts.map +1 -1
  57. package/dist/src/core/install.js +3 -5
  58. package/dist/src/core/install.js.map +1 -1
  59. package/dist/src/core/messages.d.ts +97 -2
  60. package/dist/src/core/messages.d.ts.map +1 -1
  61. package/dist/src/core/messages.js +33 -0
  62. package/dist/src/core/messages.js.map +1 -1
  63. package/dist/src/core/options.d.ts +4 -0
  64. package/dist/src/core/options.d.ts.map +1 -1
  65. package/dist/src/core/parser.js +1 -1
  66. package/dist/src/core/parser.js.map +1 -1
  67. package/dist/src/core/program.d.ts.map +1 -1
  68. package/dist/src/core/program.js +5 -3
  69. package/dist/src/core/program.js.map +1 -1
  70. package/dist/src/core/types.d.ts +9 -1
  71. package/dist/src/core/types.d.ts.map +1 -1
  72. package/dist/src/core/types.js.map +1 -1
  73. package/dist/src/core/util.d.ts +1 -0
  74. package/dist/src/core/util.d.ts.map +1 -1
  75. package/dist/src/core/util.js +1 -0
  76. package/dist/src/core/util.js.map +1 -1
  77. package/dist/src/emitter-framework/asset-emitter.js +2 -2
  78. package/dist/src/emitter-framework/asset-emitter.js.map +1 -1
  79. package/dist/src/emitter-framework/type-emitter.d.ts +1 -1
  80. package/dist/src/emitter-framework/type-emitter.d.ts.map +1 -1
  81. package/dist/src/emitter-framework/type-emitter.js +1 -1
  82. package/dist/src/emitter-framework/type-emitter.js.map +1 -1
  83. package/dist/src/emitter-framework/types.d.ts +1 -1
  84. package/dist/src/emitter-framework/types.d.ts.map +1 -1
  85. package/dist/src/init/init-template.d.ts +19 -1
  86. package/dist/src/init/init-template.d.ts.map +1 -1
  87. package/dist/src/init/init-template.js +15 -1
  88. package/dist/src/init/init-template.js.map +1 -1
  89. package/dist/src/init/init.d.ts +4 -4
  90. package/dist/src/init/init.d.ts.map +1 -1
  91. package/dist/src/init/init.js +40 -11
  92. package/dist/src/init/init.js.map +1 -1
  93. package/dist/src/lib/decorators.d.ts +1 -7
  94. package/dist/src/lib/decorators.d.ts.map +1 -1
  95. package/dist/src/lib/decorators.js +4 -11
  96. package/dist/src/lib/decorators.js.map +1 -1
  97. package/dist/src/server/completion.d.ts.map +1 -1
  98. package/dist/src/server/completion.js +9 -5
  99. package/dist/src/server/completion.js.map +1 -1
  100. package/lib/decorators.tsp +8 -2
  101. package/lib/lib.tsp +1 -1
  102. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"install-vsix.js","sourceRoot":"","sources":["../../../../src/core/cli/install-vsix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAA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,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IAEzC,eAAe;IACf,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,SAAS,GAAa,EAAE,CAAC;IAC/B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC1B,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;SACtC;KACF;IAED,cAAc,CACZ,SAAS,CAAC,MAAM,GAAG,CAAC,EACpB,aAAa,GAAG,mDAAmD,CACpE,CAAC;IAEF,oBAAoB;IACpB,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAElC,6BAA6B;IAC7B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACpC,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { CompilerHost, Logger } from "../types.js";
2
+ export interface CliCompilerHost extends CompilerHost {
3
+ logger: Logger;
4
+ debug: boolean;
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/cli/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/core/cli/types.ts"],"names":[],"mappings":""}
@@ -1,17 +1,25 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  /// <reference types="node" resolution-mode="require"/>
3
3
  import { SpawnSyncOptionsWithStringEncoding } from "child_process";
4
- import { CompilerHost, Diagnostic } from "../types.js";
4
+ import { Diagnostic } from "../types.js";
5
+ import { CliCompilerHost } from "./types.js";
5
6
  export interface RunOptions extends Partial<SpawnSyncOptionsWithStringEncoding> {
6
7
  readonly debug?: boolean;
7
8
  readonly extraEnv?: NodeJS.ProcessEnv;
8
9
  readonly allowNotFound?: boolean;
9
10
  readonly allowedExitCodes?: number[];
10
11
  }
11
- export declare function createCLICompilerHost(options: {
12
+ export interface CliHostArgs {
12
13
  pretty?: boolean;
13
- }): CompilerHost;
14
- export declare function run(command: string, commandArgs: string[], options?: RunOptions): import("child_process").SpawnSyncReturns<string>;
14
+ debug?: boolean;
15
+ }
16
+ export declare function withCliHost<T extends CliHostArgs>(fn: (host: CliCompilerHost, args: T) => void | Promise<void>): (args: T) => void | Promise<void>;
17
+ /**
18
+ * Resolve Cli host automatically using cli args and handle diagnostics returned by the action.
19
+ */
20
+ export declare function withCliHostAndDiagnostics<T extends CliHostArgs>(fn: (host: CliCompilerHost, args: T) => readonly Diagnostic[] | Promise<readonly Diagnostic[]>): (args: T) => void | Promise<void>;
21
+ export declare function createCLICompilerHost(options: CliHostArgs): CliCompilerHost;
22
+ export declare function run(host: CliCompilerHost, command: string, commandArgs: string[], options?: RunOptions): import("child_process").SpawnSyncReturns<string>;
15
23
  export declare function logDiagnosticCount(diagnostics: readonly Diagnostic[]): void;
16
24
  /**
17
25
  * Handle an internal compiler error.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/core/cli/utils.ts"],"names":[],"mappings":";;AAEA,OAAO,EAAE,kCAAkC,EAAa,MAAM,eAAe,CAAC;AAM9E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;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AK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,EAC/C,EAAE,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAC3D,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAKnC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,WAAW,EAC7D,EAAE,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,KAAK,SAAS,UAAU,EAAE,GAAG,OAAO,CAAC,SAAS,UAAU,EAAE,CAAC,GAC7F,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAUnC;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,eAAe,CAI3E;AAED,wBAAgB,GAAG,CACjB,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EAAE,EACrB,OAAO,CAAC,EAAE,UAAU,oDAmDrB;AAED,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,QAWpE;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAcjE"}
@@ -1,6 +1,7 @@
1
1
  // NOTE: We could also use { shell: true } to let windows find the .cmd, but that breaks
2
2
  import { spawnSync } from "child_process";
3
3
  import { inspect } from "util";
4
+ import { logDiagnostics } from "../diagnostics.js";
4
5
  import { createConsoleSink } from "../logger/console-sink.js";
5
6
  import { createLogger } from "../logger/logger.js";
6
7
  import { NodeHost } from "../node-host.js";
@@ -8,15 +9,35 @@ import { getBaseFileName } from "../path-utils.js";
8
9
  import { ExternalError } from "../util.js";
9
10
  // ENOENT checking and handles spaces poorly in some cases.
10
11
  const isCmdOnWindows = ["code", "code-insiders", "npm"];
12
+ export function withCliHost(fn) {
13
+ return (args) => {
14
+ const host = createCLICompilerHost(args);
15
+ return fn(host, args);
16
+ };
17
+ }
18
+ /**
19
+ * Resolve Cli host automatically using cli args and handle diagnostics returned by the action.
20
+ */
21
+ export function withCliHostAndDiagnostics(fn) {
22
+ return async (args) => {
23
+ const host = createCLICompilerHost(args);
24
+ const diagnostics = await fn(host, args);
25
+ logDiagnostics(diagnostics, host.logSink);
26
+ logDiagnosticCount(diagnostics);
27
+ if (diagnostics.some((d) => d.severity === "error")) {
28
+ process.exit(1);
29
+ }
30
+ };
31
+ }
11
32
  export function createCLICompilerHost(options) {
12
- return { ...NodeHost, logSink: createConsoleSink({ pretty: options.pretty }) };
33
+ var _a;
34
+ const logSink = createConsoleSink({ pretty: options.pretty });
35
+ const logger = createLogger({ sink: logSink, level: options.debug ? "trace" : "warning" });
36
+ return { ...NodeHost, logSink, logger, debug: (_a = options.debug) !== null && _a !== void 0 ? _a : false };
13
37
  }
14
- export function run(command, commandArgs, options) {
38
+ export function run(host, command, commandArgs, options) {
15
39
  var _a, _b, _c;
16
- const logger = createLogger({
17
- sink: NodeHost.logSink,
18
- level: (options === null || options === void 0 ? void 0 : options.debug) ? "trace" : "warning",
19
- });
40
+ const logger = host.logger;
20
41
  if (options) {
21
42
  logger.trace(inspect(options, { depth: null }));
22
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/core/cli/utils.ts"],"names":[],"mappings":"AAAA,wFAAwF;AAExF,OAAO,EAAsC,SAAS,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO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GASG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAc;IACxD,+BAA+B;IAC/B,IAAI,KAAK,YAAY,aAAa,EAAE;QAClC,qFAAqF;QACrF,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACtB;SAAM;QACL,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC1C,OAAO,CAAC,KAAK,CAAC,qDAAqD,CAAC,CAAC;QACrE,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACtB;IACD,8BAA8B;IAE9B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { Program } from "./program.js";
2
+ import { Node, Type } from "./types.js";
3
+ /**
4
+ * Provides details on the deprecation of a given type.
5
+ */
6
+ export interface DeprecationDetails {
7
+ /**
8
+ * The deprecation message to display when the type is used.
9
+ */
10
+ message: string;
11
+ }
12
+ /**
13
+ * Check if the given type is deprecated
14
+ * @param program Program
15
+ * @param type Type
16
+ */
17
+ export declare function isDeprecated(program: Program, type: Type): boolean;
18
+ /**
19
+ * Returns complete deprecation details for the given type or node
20
+ * @param program Program
21
+ * @param typeOrNode A Type or Node to check for deprecation
22
+ */
23
+ export declare function getDeprecationDetails(program: Program, typeOrNode: Type | Node): DeprecationDetails | undefined;
24
+ /**
25
+ * Mark the given type as deprecated with the provided details.
26
+ * @param program Program
27
+ * @param type Type
28
+ * @param details Details of the deprecation
29
+ */
30
+ export declare function markDeprecated(program: Program, type: Type, details: DeprecationDetails): void;
31
+ //# sourceMappingURL=deprecation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../src/core/deprecation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAY,IAAI,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAQ9D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAElE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,GAAG,IAAI,GACtB,kBAAkB,GAAG,SAAS,CAsBhC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAE9F"}
@@ -0,0 +1,48 @@
1
+ import { SyntaxKind } from "./types.js";
2
+ function createStateSymbol(name) {
3
+ return Symbol.for(`TypeSpec.${name}`);
4
+ }
5
+ const deprecatedKey = createStateSymbol("deprecated");
6
+ /**
7
+ * Check if the given type is deprecated
8
+ * @param program Program
9
+ * @param type Type
10
+ */
11
+ export function isDeprecated(program, type) {
12
+ return program.stateMap(deprecatedKey).has(type);
13
+ }
14
+ /**
15
+ * Returns complete deprecation details for the given type or node
16
+ * @param program Program
17
+ * @param typeOrNode A Type or Node to check for deprecation
18
+ */
19
+ export function getDeprecationDetails(program, typeOrNode) {
20
+ var _a;
21
+ function isType(maybeType) {
22
+ return typeof maybeType.kind === "string";
23
+ }
24
+ // If we're looking at a type, pull the deprecation details from the state map
25
+ if (isType(typeOrNode)) {
26
+ return program.stateMap(deprecatedKey).get(typeOrNode);
27
+ }
28
+ else {
29
+ // Look at the node for a deprecation directive
30
+ const deprecatedDirective = ((_a = typeOrNode.directives) !== null && _a !== void 0 ? _a : []).find((directive) => directive.target.sv === "deprecated");
31
+ if ((deprecatedDirective === null || deprecatedDirective === void 0 ? void 0 : deprecatedDirective.arguments[0].kind) === SyntaxKind.StringLiteral) {
32
+ return {
33
+ message: deprecatedDirective.arguments[0].value,
34
+ };
35
+ }
36
+ }
37
+ return undefined;
38
+ }
39
+ /**
40
+ * Mark the given type as deprecated with the provided details.
41
+ * @param program Program
42
+ * @param type Type
43
+ * @param details Details of the deprecation
44
+ */
45
+ export function markDeprecated(program, type, details) {
46
+ program.stateMap(deprecatedKey).set(type, details);
47
+ }
48
+ //# sourceMappingURL=deprecation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation.js","sourceRoot":"","sources":["../../../src/core/deprecation.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,UAAU,EAAQ,MAAM,YAAY,CAAC;AAE9D,SAAS,iBAAiB,CAAC,IAAY;IACrC,OAAO,MAAM,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,aAAa,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAYtD;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,OAAgB,EAAE,IAAU;IACvD,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAgB,EAChB,UAAuB;;IAEvB,SAAS,MAAM,CAAC,SAAsB;QACpC,OAAO,OAAO,SAAS,CAAC,IAAI,KAAK,QAAQ,CAAC;IAC5C,CAAC;IAED,8EAA8E;IAC9E,IAAI,MAAM,CAAC,UAAU,CAAC,EAAE;QACtB,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;KACxD;SAAM;QACL,+CAA+C;QAC/C,MAAM,mBAAmB,GAAG,CAAC,MAAC,UAAuB,CAAC,UAAU,mCAAI,EAAE,CAAC,CAAC,IAAI,CAC1E,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,KAAK,YAAY,CACpD,CAAC;QAEF,IAAI,CAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,SAAS,CAAC,CAAC,EAAE,IAAI,MAAK,UAAU,CAAC,aAAa,EAAE;YACvE,OAAO;gBACL,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK;aAChD,CAAC;SACH;KACF;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,IAAU,EAAE,OAA2B;IACtF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from "../manifest.js";
2
2
  export * from "./checker.js";
3
3
  export * from "./decorator-utils.js";
4
+ export * from "./deprecation.js";
4
5
  export * from "./diagnostics.js";
5
6
  export * from "./emitter-utils.js";
6
7
  export * from "./formatter.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAEL,iBAAiB,EACjB,gBAAgB,IAAI,UAAU,EAC9B,qBAAqB,EACrB,YAAY,EAEZ,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAEL,iBAAiB,EACjB,gBAAgB,IAAI,UAAU,EAC9B,qBAAqB,EACrB,YAAY,EAEZ,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,OAAO,EACL,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,WAAW,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from "../manifest.js";
2
2
  export * from "./checker.js";
3
3
  export * from "./decorator-utils.js";
4
+ export * from "./deprecation.js";
4
5
  export * from "./diagnostics.js";
5
6
  export * from "./emitter-utils.js";
6
7
  export * from "./formatter.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,o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,CAAC;AAC3B,OAAO,EACL,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,WAAW,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare function installTypeSpecDependencies(directory: string): Promise<void>;
1
+ import { CliCompilerHost } from "./cli/types.js";
2
+ export declare function installTypeSpecDependencies(host: CliCompilerHost, directory: string): Promise<void>;
2
3
  //# sourceMappingURL=install.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/core/install.ts"],"names":[],"mappings":"AAUA,wBAAsB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBlF"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/core/install.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAUjD,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAuBf"}
@@ -1,5 +1,5 @@
1
1
  import { spawn } from "child_process";
2
- export async function installTypeSpecDependencies(directory) {
2
+ export async function installTypeSpecDependencies(host, directory) {
3
3
  const cmd = process.platform === "win32" ? "npm.cmd" : "npm";
4
4
  const child = spawn(cmd, ["install"], {
5
5
  stdio: "inherit",
@@ -9,12 +9,10 @@ export async function installTypeSpecDependencies(directory) {
9
9
  return new Promise(() => {
10
10
  child.on("error", (error) => {
11
11
  if (error.code === "ENOENT") {
12
- // eslint-disable-next-line no-console
13
- console.error("Cannot find `npm` executable. Make sure to have npm installed in your path.");
12
+ host.logger.error("Cannot find `npm` executable. Make sure to have npm installed in your path.");
14
13
  }
15
14
  else {
16
- // eslint-disable-next-line no-console
17
- console.error("Error", error);
15
+ host.logger.error(error.toString());
18
16
  }
19
17
  process.exit(error.errno);
20
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"install.js","sourceRoot":"","sources":["../../../src/core/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAUtC,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,SAAiB;IACjE,MAAM,GAAG,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7D,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE;QACpC,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,OAAO,CAAC,GAAG;KACjB,CAAC,CAAC;IAEH,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE;QACtB,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAiB,EAAE,EAAE;YACtC,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE;gBAC3B,sCAAsC;gBACtC,OAAO,CAAC,KAAK,CACX,6EAA6E,CAC9E,CAAC;aACH;iBAAM;gBACL,sCAAsC;gBACtC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;aAC/B;YACD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE;YAC5B,OAAO,CAAC,IAAI,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"install.js","sourceRoot":"","sources":["../../../src/core/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAWtC,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,IAAqB,EACrB,SAAiB;IAEjB,MAAM,GAAG,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IAC7D,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE;QACpC,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,OAAO,CAAC,GAAG;KACjB,CAAC,CAAC;IAEH,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE;QACtB,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAiB,EAAE,EAAE;YACtC,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE;gBAC3B,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,6EAA6E,CAC9E,CAAC;aACH;iBAAM;gBACL,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;aACrC;YACD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE;YAC5B,OAAO,CAAC,IAAI,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -462,6 +462,18 @@ declare const diagnostics: {
462
462
  readonly default: import("./types.js").CallableMessage<["name"]>;
463
463
  };
464
464
  };
465
+ readonly "invalid-deprecation-argument": {
466
+ readonly severity: "error";
467
+ readonly messages: {
468
+ readonly default: "Invalid deprecation argument";
469
+ };
470
+ };
471
+ readonly "duplicate-deprecation": {
472
+ readonly severity: "warning";
473
+ readonly messages: {
474
+ readonly default: "The #deprecated directive cannot be used more than once on the same declaration.";
475
+ };
476
+ };
465
477
  /**
466
478
  * Configuration
467
479
  */
@@ -780,9 +792,28 @@ declare const diagnostics: {
780
792
  readonly default: "Conflict marker encountered.";
781
793
  };
782
794
  };
795
+ readonly "no-compatible-vs-installed": {
796
+ readonly severity: "error";
797
+ readonly messages: {
798
+ readonly default: "No compatible version of Visual Studio found.";
799
+ };
800
+ };
801
+ readonly "vs-extension-windows-only": {
802
+ readonly severity: "error";
803
+ readonly messages: {
804
+ readonly default: "Visual Studio extension is not supported on non-Windows.";
805
+ };
806
+ };
807
+ readonly "vscode-in-path": {
808
+ readonly severity: "error";
809
+ readonly messages: {
810
+ readonly default: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.";
811
+ readonly osx: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.\nSee instruction for Mac OS here https://code.visualstudio.com/docs/setup/mac";
812
+ };
813
+ };
783
814
  };
784
815
  export type CompilerDiagnostics = TypeOfDiagnostics<typeof diagnostics>;
785
- export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "token-expected" | "trailing-token" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "invalid-projection" | "default-required" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "intersect-duplicate-property" | "unknown-identifier" | "unknown-decorator" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "unassignable" | "no-prop" | "missing-index" | "missing-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "decorator-extern" | "function-extern" | "missing-implementation" | "overload-same-parent" | "shadow" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "projections-are-experimental" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "invalid-value" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-op-signature" | "circular-alias-type" | "conflict-marker", M extends keyof {
816
+ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "token-expected" | "trailing-token" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "invalid-projection" | "default-required" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "intersect-duplicate-property" | "unknown-identifier" | "unknown-decorator" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "unassignable" | "no-prop" | "missing-index" | "missing-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "decorator-extern" | "function-extern" | "missing-implementation" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "projections-are-experimental" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "invalid-value" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-op-signature" | "circular-alias-type" | "conflict-marker" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path", M extends keyof {
786
817
  "digit-expected": {
787
818
  readonly default: "Digit expected.";
788
819
  };
@@ -1022,6 +1053,12 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1022
1053
  shadow: {
1023
1054
  readonly default: import("./types.js").CallableMessage<["name"]>;
1024
1055
  };
1056
+ "invalid-deprecation-argument": {
1057
+ readonly default: "Invalid deprecation argument";
1058
+ };
1059
+ "duplicate-deprecation": {
1060
+ readonly default: "The #deprecated directive cannot be used more than once on the same declaration.";
1061
+ };
1025
1062
  "config-invalid-argument": {
1026
1063
  readonly default: import("./types.js").CallableMessage<["name"]>;
1027
1064
  };
@@ -1175,6 +1212,16 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1175
1212
  "conflict-marker": {
1176
1213
  readonly default: "Conflict marker encountered.";
1177
1214
  };
1215
+ "no-compatible-vs-installed": {
1216
+ readonly default: "No compatible version of Visual Studio found.";
1217
+ };
1218
+ "vs-extension-windows-only": {
1219
+ readonly default: "Visual Studio extension is not supported on non-Windows.";
1220
+ };
1221
+ "vscode-in-path": {
1222
+ readonly default: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.";
1223
+ readonly osx: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.\nSee instruction for Mac OS here https://code.visualstudio.com/docs/setup/mac";
1224
+ };
1178
1225
  }[C] = "default">(diag: import("./types.js").DiagnosticReport<{
1179
1226
  "digit-expected": {
1180
1227
  readonly default: "Digit expected.";
@@ -1415,6 +1462,12 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1415
1462
  shadow: {
1416
1463
  readonly default: import("./types.js").CallableMessage<["name"]>;
1417
1464
  };
1465
+ "invalid-deprecation-argument": {
1466
+ readonly default: "Invalid deprecation argument";
1467
+ };
1468
+ "duplicate-deprecation": {
1469
+ readonly default: "The #deprecated directive cannot be used more than once on the same declaration.";
1470
+ };
1418
1471
  "config-invalid-argument": {
1419
1472
  readonly default: import("./types.js").CallableMessage<["name"]>;
1420
1473
  };
@@ -1568,7 +1621,17 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1568
1621
  "conflict-marker": {
1569
1622
  readonly default: "Conflict marker encountered.";
1570
1623
  };
1571
- }, C, M>) => import("./types.js").Diagnostic, reportDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "token-expected" | "trailing-token" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "invalid-projection" | "default-required" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "intersect-duplicate-property" | "unknown-identifier" | "unknown-decorator" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "unassignable" | "no-prop" | "missing-index" | "missing-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "decorator-extern" | "function-extern" | "missing-implementation" | "overload-same-parent" | "shadow" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "projections-are-experimental" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "invalid-value" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-op-signature" | "circular-alias-type" | "conflict-marker", M extends keyof {
1624
+ "no-compatible-vs-installed": {
1625
+ readonly default: "No compatible version of Visual Studio found.";
1626
+ };
1627
+ "vs-extension-windows-only": {
1628
+ readonly default: "Visual Studio extension is not supported on non-Windows.";
1629
+ };
1630
+ "vscode-in-path": {
1631
+ readonly default: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.";
1632
+ readonly osx: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.\nSee instruction for Mac OS here https://code.visualstudio.com/docs/setup/mac";
1633
+ };
1634
+ }, C, M>) => import("./types.js").Diagnostic, reportDiagnostic: <C extends "digit-expected" | "hex-digit-expected" | "binary-digit-expected" | "unterminated" | "creating-file" | "invalid-escape-sequence" | "no-new-line-start-triple-quote" | "no-new-line-end-triple-quote" | "triple-quote-indent" | "invalid-character" | "file-not-found" | "file-load" | "init-template-invalid-json" | "init-template-download-failed" | "multiple-blockless-namespace" | "blockless-namespace-first" | "import-first" | "token-expected" | "trailing-token" | "unknown-directive" | "augment-decorator-target" | "duplicate-decorator" | "decorator-conflict" | "reserved-identifier" | "invalid-directive-location" | "invalid-decorator-location" | "invalid-projection" | "default-required" | "invalid-template-default" | "required-parameter-first" | "rest-parameter-last" | "rest-parameter-required" | "doc-invalid-identifier" | "using-invalid-ref" | "invalid-type-ref" | "invalid-template-args" | "intersect-non-model" | "intersect-invalid-index" | "intersect-duplicate-property" | "unknown-identifier" | "unknown-decorator" | "invalid-decorator" | "invalid-ref" | "duplicate-property" | "override-property-mismatch" | "extend-scalar" | "extend-model" | "is-model" | "is-operation" | "spread-model" | "unsupported-default" | "unassignable" | "no-prop" | "missing-index" | "missing-property" | "extends-interface" | "extends-interface-duplicate" | "interface-duplicate" | "union-duplicate" | "enum-member-duplicate" | "spread-enum" | "decorator-fail" | "rest-parameter-array" | "decorator-extern" | "function-extern" | "missing-implementation" | "overload-same-parent" | "shadow" | "invalid-deprecation-argument" | "duplicate-deprecation" | "config-invalid-argument" | "config-circular-variable" | "config-path-absolute" | "config-path-not-found" | "dynamic-import" | "invalid-import" | "invalid-main" | "import-not-found" | "library-invalid" | "incompatible-library" | "compiler-version-mismatch" | "duplicate-symbol" | "decorator-decl-target" | "projections-are-experimental" | "ambiguous-symbol" | "duplicate-using" | "on-validate-fail" | "invalid-emitter" | "missing-import" | "invalid-rule-ref" | "unknown-rule" | "unknown-rule-set" | "rule-enabled-disabled" | "decorator-wrong-target" | "invalid-argument" | "invalid-argument-count" | "known-values-invalid-enum" | "invalid-value" | "deprecated" | "no-optional-key" | "invalid-discriminated-union" | "invalid-discriminated-union-variant" | "missing-discriminator-property" | "invalid-discriminator-value" | "invalid-encode" | "service-decorator-duplicate" | "list-type-not-model" | "invalid-range" | "add-response" | "add-parameter" | "add-model-property" | "add-model-property-fail" | "add-response-type" | "circular-base-type" | "circular-op-signature" | "circular-alias-type" | "conflict-marker" | "no-compatible-vs-installed" | "vs-extension-windows-only" | "vscode-in-path", M extends keyof {
1572
1635
  "digit-expected": {
1573
1636
  readonly default: "Digit expected.";
1574
1637
  };
@@ -1808,6 +1871,12 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1808
1871
  shadow: {
1809
1872
  readonly default: import("./types.js").CallableMessage<["name"]>;
1810
1873
  };
1874
+ "invalid-deprecation-argument": {
1875
+ readonly default: "Invalid deprecation argument";
1876
+ };
1877
+ "duplicate-deprecation": {
1878
+ readonly default: "The #deprecated directive cannot be used more than once on the same declaration.";
1879
+ };
1811
1880
  "config-invalid-argument": {
1812
1881
  readonly default: import("./types.js").CallableMessage<["name"]>;
1813
1882
  };
@@ -1961,6 +2030,16 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
1961
2030
  "conflict-marker": {
1962
2031
  readonly default: "Conflict marker encountered.";
1963
2032
  };
2033
+ "no-compatible-vs-installed": {
2034
+ readonly default: "No compatible version of Visual Studio found.";
2035
+ };
2036
+ "vs-extension-windows-only": {
2037
+ readonly default: "Visual Studio extension is not supported on non-Windows.";
2038
+ };
2039
+ "vscode-in-path": {
2040
+ readonly default: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.";
2041
+ readonly osx: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.\nSee instruction for Mac OS here https://code.visualstudio.com/docs/setup/mac";
2042
+ };
1964
2043
  }[C] = "default">(program: import("./program.js").Program, diag: import("./types.js").DiagnosticReport<{
1965
2044
  "digit-expected": {
1966
2045
  readonly default: "Digit expected.";
@@ -2201,6 +2280,12 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2201
2280
  shadow: {
2202
2281
  readonly default: import("./types.js").CallableMessage<["name"]>;
2203
2282
  };
2283
+ "invalid-deprecation-argument": {
2284
+ readonly default: "Invalid deprecation argument";
2285
+ };
2286
+ "duplicate-deprecation": {
2287
+ readonly default: "The #deprecated directive cannot be used more than once on the same declaration.";
2288
+ };
2204
2289
  "config-invalid-argument": {
2205
2290
  readonly default: import("./types.js").CallableMessage<["name"]>;
2206
2291
  };
@@ -2354,6 +2439,16 @@ export declare const createDiagnostic: <C extends "digit-expected" | "hex-digit-
2354
2439
  "conflict-marker": {
2355
2440
  readonly default: "Conflict marker encountered.";
2356
2441
  };
2442
+ "no-compatible-vs-installed": {
2443
+ readonly default: "No compatible version of Visual Studio found.";
2444
+ };
2445
+ "vs-extension-windows-only": {
2446
+ readonly default: "Visual Studio extension is not supported on non-Windows.";
2447
+ };
2448
+ "vscode-in-path": {
2449
+ readonly default: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.";
2450
+ readonly osx: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.\nSee instruction for Mac OS here https://code.visualstudio.com/docs/setup/mac";
2451
+ };
2357
2452
  }, C, M>) => void;
2358
2453
  export {};
2359
2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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyC,CAAC"}
@@ -464,6 +464,18 @@ const diagnostics = {
464
464
  default: paramMessage `Shadowing parent template parmaeter with the same name "${"name"}"`,
465
465
  },
466
466
  },
467
+ "invalid-deprecation-argument": {
468
+ severity: "error",
469
+ messages: {
470
+ default: "Invalid deprecation argument",
471
+ },
472
+ },
473
+ "duplicate-deprecation": {
474
+ severity: "warning",
475
+ messages: {
476
+ default: "The #deprecated directive cannot be used more than once on the same declaration.",
477
+ },
478
+ },
467
479
  /**
468
480
  * Configuration
469
481
  */
@@ -782,6 +794,27 @@ const diagnostics = {
782
794
  default: "Conflict marker encountered.",
783
795
  },
784
796
  },
797
+ // #region CLI
798
+ "no-compatible-vs-installed": {
799
+ severity: "error",
800
+ messages: {
801
+ default: "No compatible version of Visual Studio found.",
802
+ },
803
+ },
804
+ "vs-extension-windows-only": {
805
+ severity: "error",
806
+ messages: {
807
+ default: "Visual Studio extension is not supported on non-Windows.",
808
+ },
809
+ },
810
+ "vscode-in-path": {
811
+ severity: "error",
812
+ messages: {
813
+ default: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.",
814
+ osx: "Couldn't find VS Code 'code' command in PATH. Make sure you have the VS Code executable added to the system PATH.\nSee instruction for Mac OS here https://code.visualstudio.com/docs/setup/mac",
815
+ },
816
+ },
817
+ // #endregion CLI
785
818
  };
786
819
  export const { createDiagnostic, reportDiagnostic } = createDiagnosticCreator(diagnostics);
787
820
  //# sourceMappingURL=messages.js.map