@atlaspack/reporter-lsp 2.14.21-typescript-1fd1095e8.0 → 2.14.21-typescript-e99c742e9.0
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/LspReporter.d.ts +3 -0
- package/lib/ipc.d.ts +4 -0
- package/lib/utils.d.ts +38 -0
- package/package.json +10 -10
package/lib/ipc.d.ts
ADDED
package/lib/utils.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { DiagnosticLogEvent, FilePath } from '@atlaspack/types';
|
|
2
|
+
import type { ODiagnosticSeverity } from 'vscode-languageserver';
|
|
3
|
+
export type ParcelSeverity = DiagnosticLogEvent['level'];
|
|
4
|
+
export declare function parcelSeverityToLspSeverity(parcelSeverity: ParcelSeverity): ODiagnosticSeverity;
|
|
5
|
+
export declare function normalizeFilePath(filePath: FilePath, projectRoot: FilePath): FilePath;
|
|
6
|
+
export declare const DiagnosticTag: {
|
|
7
|
+
/**
|
|
8
|
+
* Unused or unnecessary code.
|
|
9
|
+
*
|
|
10
|
+
* Clients are allowed to render diagnostics with this tag faded out instead of having
|
|
11
|
+
* an error squiggle.
|
|
12
|
+
*/
|
|
13
|
+
readonly Unnecessary: ODiagnosticTag;
|
|
14
|
+
/**
|
|
15
|
+
* Deprecated or obsolete code.
|
|
16
|
+
*
|
|
17
|
+
* Clients are allowed to rendered diagnostics with this tag strike through.
|
|
18
|
+
*/
|
|
19
|
+
readonly Deprecated: ODiagnosticTag;
|
|
20
|
+
};
|
|
21
|
+
export declare const DiagnosticSeverity: {
|
|
22
|
+
/**
|
|
23
|
+
* Reports an error.
|
|
24
|
+
*/
|
|
25
|
+
readonly Error: ODiagnosticSeverity;
|
|
26
|
+
/**
|
|
27
|
+
* Reports a warning.
|
|
28
|
+
*/
|
|
29
|
+
readonly Warning: ODiagnosticSeverity;
|
|
30
|
+
/**
|
|
31
|
+
* Reports an information.
|
|
32
|
+
*/
|
|
33
|
+
readonly Information: ODiagnosticSeverity;
|
|
34
|
+
/**
|
|
35
|
+
* Reports a hint.
|
|
36
|
+
*/
|
|
37
|
+
readonly Hint: ODiagnosticSeverity;
|
|
38
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/reporter-lsp",
|
|
3
|
-
"version": "2.14.21-typescript-
|
|
3
|
+
"version": "2.14.21-typescript-e99c742e9.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,15 +9,16 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/atlassian-labs/atlaspack.git"
|
|
11
11
|
},
|
|
12
|
-
"main": "lib/LspReporter.js",
|
|
13
|
-
"source": "src/LspReporter.ts",
|
|
12
|
+
"main": "./lib/LspReporter.js",
|
|
13
|
+
"source": "./src/LspReporter.ts",
|
|
14
|
+
"types": "./lib/LspReporter.d.ts",
|
|
14
15
|
"engines": {
|
|
15
16
|
"node": ">= 16.0.0"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"@atlaspack/lsp-protocol": "2.14.2-typescript-
|
|
19
|
-
"@atlaspack/plugin": "2.14.21-typescript-
|
|
20
|
-
"@atlaspack/utils": "2.17.3-typescript-
|
|
19
|
+
"@atlaspack/lsp-protocol": "2.14.2-typescript-e99c742e9.0",
|
|
20
|
+
"@atlaspack/plugin": "2.14.21-typescript-e99c742e9.0",
|
|
21
|
+
"@atlaspack/utils": "2.17.3-typescript-e99c742e9.0",
|
|
21
22
|
"node-ipc": "^9.1.4",
|
|
22
23
|
"nullthrows": "^1.1.1",
|
|
23
24
|
"ps-node": "^0.1.6",
|
|
@@ -25,8 +26,7 @@
|
|
|
25
26
|
},
|
|
26
27
|
"type": "commonjs",
|
|
27
28
|
"scripts": {
|
|
28
|
-
"check-ts": "tsc --
|
|
29
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
|
|
29
30
|
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
}
|
|
31
|
+
"gitHead": "e99c742e92175ac411d807daf2ba45d5bacebb58"
|
|
32
|
+
}
|