-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
121 lines (121 loc) · 4.23 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"name": "date-hover-preview",
"displayName": "Date Hover Preview",
"description": "Preview date timestamps in a little hover popup with configurable timezones and formats",
"icon": "resources/date-hover-preview-icon.png",
"version": "1.0.3",
"publisher": "nortakales",
"engines": {
"vscode": "^1.53.0"
},
"repository": {
"type": "git",
"url": "https://github.com/nortakales/vscode-date-hover-preview"
},
"homepage": "https://github.com/nortakales/vscode-date-hover-preview",
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Date Hover Preview",
"properties": {
"date-hover-preview.detect.ISO-8601String": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to detect [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format date string when hovering."
},
"date-hover-preview.detect.unixTime": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to detect Unix epoch time when hovering. Currently supports 9-10 digits (as seconds) or up to 14 digits (as milliseconds)."
},
"date-hover-preview.primaryPreview.enable": {
"type": "boolean",
"default": true,
"markdownDescription": "Show primary date preview."
},
"date-hover-preview.primaryPreview.name": {
"type": "string",
"default": "Local",
"markdownDescription": "Show as the name of primary preview section."
},
"date-hover-preview.primaryPreview.format": {
"type": "string",
"markdownDescription": "Primary date preview format, described in [day.js format documentation](https://day.js.org/docs/en/display/format). Leave empty to use ISO-8601 format."
},
"date-hover-preview.primaryPreview.utcOffset": {
"markdownDescription": "UTC offset for the primary preview expressed as a number of hours between -16 and 16 (any number outside of that range will be interpreted as minutes).",
"type": [
"number",
null
],
"default": null
},
"date-hover-preview.primaryPreview.timezone": {
"markdownDescription": "Timezone for the primary preview. Timezones are expressed like \"America/Los_Angeles\". This setting will take precedence over `#date-hover-preview.primaryPreview.utcOffset#`. If both are left blank this will use your local timezone. For a list of timezones, see the [TZ database name column](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).",
"type": "string"
},
"date-hover-preview.additionalPreviews": {
"type": "array",
"minItems": 0,
"markdownDescription": "Additional previews can be configured in settings.json. Use intellisense to discover possible fields.",
"items": {
"type": "object",
"title": "Additional Preview",
"required": [
"name"
],
"properties": {
"name": {
"description": "Show as the name of this additional preview.",
"type": "string"
},
"format": {
"description": "Used to format preview display. Leave empty to use ISO-8601 format.",
"type": "string"
},
"utcOffset": {
"description": "UTC offset expressed as a number of hours between -16 and 16 (any number outside of that range will be interpreted as minutes).",
"type": "number"
},
"timezone": {
"description": "Timezones are expressed like \"America/Los_Angeles\". This setting will take precedence over utcOffset. If both are left blank this will use your local timezone.",
"type": "string"
}
}
}
}
}
},
"commands": []
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/vscode": "^1.53.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0"
},
"dependencies": {
"dayjs": "^1.10.4"
}
}