@teambit/ts-server 0.0.60 → 0.0.62

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,46 +1,53 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatDiagnostics = formatDiagnostics;
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.formatDiagnostic = formatDiagnostic;
7
+ exports.formatDiagnostics = formatDiagnostics;
5
8
  /**
6
9
  * mostly taken from ts repo, src/compiler/program.ts "formatDiagnosticsWithColorAndContext" method.
7
10
  * sadly, it's impossible to use that method for the diagnostic format coming from ts-server. it only
8
11
  * works with the diagnostic format of "ts" APIs.
9
12
  */
10
13
  function formatDiagnostics(diagnostics, filePath) {
11
- let output = '';
12
- for (const diagnostic of diagnostics) {
13
- output += formatDiagnostic(diagnostic, filePath);
14
- }
15
- return output;
14
+ let output = '';
15
+ for (const diagnostic of diagnostics) {
16
+ output += formatDiagnostic(diagnostic, filePath);
17
+ }
18
+ return output;
16
19
  }
17
- const diagnosticCategoryName = (diagnostic) => diagnostic.category;
20
+ const diagnosticCategoryName = diagnostic => diagnostic.category;
18
21
  function formatDiagnostic(diagnostic, filePath) {
19
- const errorMessage = `${diagnosticCategoryName(diagnostic)} TS${diagnostic.code}: ${flattenDiagnosticMessageText(diagnostic.text, '\n')}${'\n'}`;
20
- const { line, offset } = diagnostic.start;
21
- return `${filePath}(${line},${offset}): ${errorMessage}`;
22
+ const errorMessage = `${diagnosticCategoryName(diagnostic)} TS${diagnostic.code}: ${flattenDiagnosticMessageText(diagnostic.text, '\n')}${'\n'}`;
23
+ const {
24
+ line,
25
+ offset
26
+ } = diagnostic.start;
27
+ return `${filePath}(${line},${offset}): ${errorMessage}`;
22
28
  }
23
29
  function flattenDiagnosticMessageText(diag, newLine, indent = 0) {
24
- if (typeof diag === 'string') {
25
- return diag;
26
- }
27
- if (diag === undefined) {
28
- return '';
29
- }
30
- let result = '';
31
- if (indent) {
32
- result += newLine;
33
- for (let i = 0; i < indent; i += 1) {
34
- result += ' ';
35
- }
30
+ if (typeof diag === 'string') {
31
+ return diag;
32
+ }
33
+ if (diag === undefined) {
34
+ return '';
35
+ }
36
+ let result = '';
37
+ if (indent) {
38
+ result += newLine;
39
+ for (let i = 0; i < indent; i += 1) {
40
+ result += ' ';
36
41
  }
37
- result += diag.messageText;
38
- indent += 1;
39
- if (diag.next) {
40
- for (const kid of diag.next) {
41
- result += flattenDiagnosticMessageText(kid, newLine, indent);
42
- }
42
+ }
43
+ result += diag.messageText;
44
+ indent += 1;
45
+ if (diag.next) {
46
+ for (const kid of diag.next) {
47
+ result += flattenDiagnosticMessageText(kid, newLine, indent);
43
48
  }
44
- return result;
49
+ }
50
+ return result;
45
51
  }
52
+
46
53
  //# sourceMappingURL=format-diagnostics.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"format-diagnostics.js","sourceRoot":"","sources":["../format-diagnostics.ts"],"names":[],"mappings":";;AASA,8CAOC;AAID,4CAQC;AAxBD;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,WAAkC,EAAE,QAAgB;IACpF,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,MAAM,IAAI,gBAAgB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,sBAAsB,GAAG,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;AAE/E,SAAgB,gBAAgB,CAAC,UAAsB,EAAE,QAAgB;IACvE,MAAM,YAAY,GAAG,GAAG,sBAAsB,CAAC,UAAU,CAAC,MAAM,UAAU,CAAC,IAAI,KAAK,4BAA4B,CAC9G,UAAU,CAAC,IAAI,EACf,IAAI,CACL,GAAG,IAAI,EAAE,CAAC;IAEX,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC;IAC1C,OAAO,GAAG,QAAQ,IAAI,IAAI,IAAI,MAAM,MAAM,YAAY,EAAE,CAAC;AAC3D,CAAC;AAED,SAAS,4BAA4B,CACnC,IAAiD,EACjD,OAAe,EACf,MAAM,GAAG,CAAC;IAEV,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,IAAI,OAAO,CAAC;QAElB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,IAAI,CAAC;QACjB,CAAC;IACH,CAAC;IACD,MAAM,IAAI,IAAI,CAAC,WAAW,CAAC;IAC3B,MAAM,IAAI,CAAC,CAAC;IACZ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YAC5B,MAAM,IAAI,4BAA4B,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"names":["formatDiagnostics","diagnostics","filePath","output","diagnostic","formatDiagnostic","diagnosticCategoryName","category","errorMessage","code","flattenDiagnosticMessageText","text","line","offset","start","diag","newLine","indent","undefined","result","i","messageText","next","kid"],"sources":["format-diagnostics.ts"],"sourcesContent":["import { DiagnosticMessageChain, server } from 'typescript';\n\ntype Diagnostic = server.protocol.Diagnostic;\n\n/**\n * mostly taken from ts repo, src/compiler/program.ts \"formatDiagnosticsWithColorAndContext\" method.\n * sadly, it's impossible to use that method for the diagnostic format coming from ts-server. it only\n * works with the diagnostic format of \"ts\" APIs.\n */\nexport function formatDiagnostics(diagnostics: readonly Diagnostic[], filePath: string): string {\n let output = '';\n\n for (const diagnostic of diagnostics) {\n output += formatDiagnostic(diagnostic, filePath);\n }\n return output;\n}\n\nconst diagnosticCategoryName = (diagnostic: Diagnostic) => diagnostic.category;\n\nexport function formatDiagnostic(diagnostic: Diagnostic, filePath: string): string {\n const errorMessage = `${diagnosticCategoryName(diagnostic)} TS${diagnostic.code}: ${flattenDiagnosticMessageText(\n diagnostic.text,\n '\\n'\n )}${'\\n'}`;\n\n const { line, offset } = diagnostic.start;\n return `${filePath}(${line},${offset}): ${errorMessage}`;\n}\n\nfunction flattenDiagnosticMessageText(\n diag: string | DiagnosticMessageChain | undefined,\n newLine: string,\n indent = 0\n): string {\n if (typeof diag === 'string') {\n return diag;\n }\n if (diag === undefined) {\n return '';\n }\n let result = '';\n if (indent) {\n result += newLine;\n\n for (let i = 0; i < indent; i += 1) {\n result += ' ';\n }\n }\n result += diag.messageText;\n indent += 1;\n if (diag.next) {\n for (const kid of diag.next) {\n result += flattenDiagnosticMessageText(kid, newLine, indent);\n }\n }\n return result;\n}\n"],"mappings":";;;;;;;AAIA;AACA;AACA;AACA;AACA;AACO,SAASA,iBAAiBA,CAACC,WAAkC,EAAEC,QAAgB,EAAU;EAC9F,IAAIC,MAAM,GAAG,EAAE;EAEf,KAAK,MAAMC,UAAU,IAAIH,WAAW,EAAE;IACpCE,MAAM,IAAIE,gBAAgB,CAACD,UAAU,EAAEF,QAAQ,CAAC;EAClD;EACA,OAAOC,MAAM;AACf;AAEA,MAAMG,sBAAsB,GAAIF,UAAsB,IAAKA,UAAU,CAACG,QAAQ;AAEvE,SAASF,gBAAgBA,CAACD,UAAsB,EAAEF,QAAgB,EAAU;EACjF,MAAMM,YAAY,GAAG,GAAGF,sBAAsB,CAACF,UAAU,CAAC,MAAMA,UAAU,CAACK,IAAI,KAAKC,4BAA4B,CAC9GN,UAAU,CAACO,IAAI,EACf,IACF,CAAC,GAAG,IAAI,EAAE;EAEV,MAAM;IAAEC,IAAI;IAAEC;EAAO,CAAC,GAAGT,UAAU,CAACU,KAAK;EACzC,OAAO,GAAGZ,QAAQ,IAAIU,IAAI,IAAIC,MAAM,MAAML,YAAY,EAAE;AAC1D;AAEA,SAASE,4BAA4BA,CACnCK,IAAiD,EACjDC,OAAe,EACfC,MAAM,GAAG,CAAC,EACF;EACR,IAAI,OAAOF,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAOA,IAAI;EACb;EACA,IAAIA,IAAI,KAAKG,SAAS,EAAE;IACtB,OAAO,EAAE;EACX;EACA,IAAIC,MAAM,GAAG,EAAE;EACf,IAAIF,MAAM,EAAE;IACVE,MAAM,IAAIH,OAAO;IAEjB,KAAK,IAAII,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,MAAM,EAAEG,CAAC,IAAI,CAAC,EAAE;MAClCD,MAAM,IAAI,IAAI;IAChB;EACF;EACAA,MAAM,IAAIJ,IAAI,CAACM,WAAW;EAC1BJ,MAAM,IAAI,CAAC;EACX,IAAIF,IAAI,CAACO,IAAI,EAAE;IACb,KAAK,MAAMC,GAAG,IAAIR,IAAI,CAACO,IAAI,EAAE;MAC3BH,MAAM,IAAIT,4BAA4B,CAACa,GAAG,EAAEP,OAAO,EAAEC,MAAM,CAAC;IAC9D;EACF;EACA,OAAOE,MAAM;AACf","ignoreList":[]}
package/dist/index.js CHANGED
@@ -1,6 +1,20 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TsserverClient = void 0;
4
- var ts_server_client_1 = require("./ts-server-client");
5
- Object.defineProperty(exports, "TsserverClient", { enumerable: true, get: function () { return ts_server_client_1.TsserverClient; } });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "TsserverClient", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _tsServerClient().TsserverClient;
10
+ }
11
+ });
12
+ function _tsServerClient() {
13
+ const data = require("./ts-server-client");
14
+ _tsServerClient = function () {
15
+ return data;
16
+ };
17
+ return data;
18
+ }
19
+
6
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AACA,uDAAoD;AAA3C,kHAAA,cAAc,OAAA"}
1
+ {"version":3,"names":["_tsServerClient","data","require"],"sources":["index.ts"],"sourcesContent":["export type { TsserverClientOpts } from './ts-server-client';\nexport { TsserverClient } from './ts-server-client';\n"],"mappings":";;;;;;;;;;;AACA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA","ignoreList":[]}
@@ -1,62 +1,60 @@
1
1
  "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.findPathToModule = findPathToModule;
7
+ exports.findPathToYarnSdk = findPathToYarnSdk;
8
+ function fs() {
9
+ const data = _interopRequireWildcard(require("fs"));
10
+ fs = function () {
11
+ return data;
12
+ };
13
+ return data;
14
+ }
15
+ function path() {
16
+ const data = _interopRequireWildcard(require("path"));
17
+ path = function () {
18
+ return data;
19
+ };
20
+ return data;
21
+ }
22
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
23
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
2
24
  /**
3
25
  * copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/modules-resolver.ts
4
26
  * modified to accommodate Bit needs
5
27
  */
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
- Object.defineProperty(o, "default", { enumerable: true, value: v });
19
- }) : function(o, v) {
20
- o["default"] = v;
21
- });
22
- var __importStar = (this && this.__importStar) || function (mod) {
23
- if (mod && mod.__esModule) return mod;
24
- var result = {};
25
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26
- __setModuleDefault(result, mod);
27
- return result;
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.findPathToModule = findPathToModule;
31
- exports.findPathToYarnSdk = findPathToYarnSdk;
28
+
32
29
  /*
33
30
  * Copyright (C) 2017, 2018 TypeFox and others.
34
31
  *
35
32
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
36
33
  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
37
34
  */
38
- const fs = __importStar(require("fs"));
39
- const path = __importStar(require("path"));
35
+
40
36
  function findPathToModule(dir, moduleName) {
41
- try {
42
- return require.resolve(moduleName, { paths: [dir] });
43
- }
44
- catch (_a) {
45
- return undefined;
46
- }
37
+ try {
38
+ return require.resolve(moduleName, {
39
+ paths: [dir]
40
+ });
41
+ } catch {
42
+ return undefined;
43
+ }
47
44
  }
48
45
  function findPathToYarnSdk(dir, moduleName) {
49
- const stat = fs.statSync(dir);
50
- if (stat.isDirectory()) {
51
- const candidate = path.resolve(dir, '.yarn', 'sdks', moduleName);
52
- if (fs.existsSync(candidate)) {
53
- return candidate;
54
- }
55
- }
56
- const parent = path.resolve(dir, '..');
57
- if (parent !== dir) {
58
- return findPathToYarnSdk(parent, moduleName);
46
+ const stat = fs().statSync(dir);
47
+ if (stat.isDirectory()) {
48
+ const candidate = path().resolve(dir, '.yarn', 'sdks', moduleName);
49
+ if (fs().existsSync(candidate)) {
50
+ return candidate;
59
51
  }
60
- return undefined;
52
+ }
53
+ const parent = path().resolve(dir, '..');
54
+ if (parent !== dir) {
55
+ return findPathToYarnSdk(parent, moduleName);
56
+ }
57
+ return undefined;
61
58
  }
59
+
62
60
  //# sourceMappingURL=modules-resolver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules-resolver.js","sourceRoot":"","sources":["../modules-resolver.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;AAWH,4CAMC;AAED,8CAaC;AA9BD;;;;;GAKG;AACH,uCAAyB;AACzB,2CAA6B;AAE7B,SAAgB,gBAAgB,CAAC,GAAW,EAAE,UAAkB;IAC9D,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACvD,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAgB,iBAAiB,CAAC,GAAW,EAAE,UAAkB;IAC/D,MAAM,IAAI,GAAG,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;QACvB,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QACjE,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7B,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACvC,IAAI,MAAM,KAAK,GAAG,EAAE,CAAC;QACnB,OAAO,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"names":["fs","data","_interopRequireWildcard","require","path","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","findPathToModule","dir","moduleName","resolve","paths","undefined","findPathToYarnSdk","stat","statSync","isDirectory","candidate","existsSync","parent"],"sources":["modules-resolver.ts"],"sourcesContent":["/**\n * copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/modules-resolver.ts\n * modified to accommodate Bit needs\n */\n\n/*\n * Copyright (C) 2017, 2018 TypeFox and others.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n */\nimport * as fs from 'fs';\nimport * as path from 'path';\n\nexport function findPathToModule(dir: string, moduleName: string): string | undefined {\n try {\n return require.resolve(moduleName, { paths: [dir] });\n } catch {\n return undefined;\n }\n}\n\nexport function findPathToYarnSdk(dir: string, moduleName: string): string | undefined {\n const stat = fs.statSync(dir);\n if (stat.isDirectory()) {\n const candidate = path.resolve(dir, '.yarn', 'sdks', moduleName);\n if (fs.existsSync(candidate)) {\n return candidate;\n }\n }\n const parent = path.resolve(dir, '..');\n if (parent !== dir) {\n return findPathToYarnSdk(parent, moduleName);\n }\n return undefined;\n}\n"],"mapp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