Skip to content

Commit 64bb0f3

Browse files
committed
feat: first version
1 parent 449c0c3 commit 64bb0f3

File tree

14 files changed

+2355
-10
lines changed

14 files changed

+2355
-10
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[.git/config]
15+
indent_style = tab

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
res/code.js

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"prettier.enable": false,
3+
"editor.formatOnSave": false,
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll.eslint": true
6+
}
7+
}

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1-
# source-map-visualization
1+
<p align="center">
2+
<img src="https://github.com/cncolder/vscode-source-map-visualization/blob/main/res/icon.png" height="150">
3+
</p>
24

3-
<a href="https://marketplace.visualstudio.com/items?itemName=colder.source-map-visualization" target="__blank"><img src="https://img.shields.io/visual-studio-marketplace/v/colder.source-map-visualization.svg?color=eee&amp;label=VS%20Code%20Marketplace&logo=visual-studio-code" alt="Visual Studio Marketplace Version" /></a>
5+
<h1 align="center">Source Map Visualization <sup>VS Code</sup></h1>
6+
7+
<p align="center">
8+
<a href="https://marketplace.visualstudio.com/items?itemName=colder.source-map-visualization" target="__blank"><img src="https://img.shields.io/visual-studio-marketplace/v/colder.source-map-visualization.svg?color=eee&label=VS%20Code%20Marketplace&logo=visual-studio-code" alt="Visual Studio Marketplace Version" /></a>
9+
</p>
10+
11+
<p align="center">
12+
This is a visualization of JavaScript/CSS source map data, which is useful for debugging problems with generated source maps. It's designed to be high-performance so it doesn't fall over with huge source maps.
13+
</p>
14+
15+
## Usage
16+
17+
Right clicks on the minify code. Select `Source Map Visualization` in the context menu.
418

519
## License
620

package.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"publisher": "colder",
33
"name": "source-map-visualization",
44
"displayName": "Source Map Visualization",
5-
"version": "0.1.0",
5+
"version": "1.0.0",
66
"private": true,
77
"packageManager": "pnpm@7.13.6",
88
"description": "A simple visualization of source map data",
@@ -32,8 +32,25 @@
3232
"vscode": "^1.69.0"
3333
},
3434
"activationEvents": [
35-
"onLanguage:json"
35+
"onCommand:sourceMapVisualization.show"
3636
],
37+
"contributes": {
38+
"commands": [
39+
{
40+
"command": "sourceMapVisualization.show",
41+
"category": "Source Map Visualization",
42+
"title": "Show Source Map Visualization"
43+
}
44+
],
45+
"menus": {
46+
"editor/context": [
47+
{
48+
"command": "sourceMapVisualization.show",
49+
"group": "z_commands"
50+
}
51+
]
52+
}
53+
},
3754
"scripts": {
3855
"build": "tsup src/index.ts --external vscode",
3956
"dev": "nr build --watch",
@@ -49,7 +66,7 @@
4966
"@antfu/eslint-config": "^0.27.0",
5067
"@antfu/ni": "^0.18.2",
5168
"@types/node": "^18.11.3",
52-
"@types/vscode": "^1.72.0",
69+
"@types/vscode": "^1.69.0",
5370
"bumpp": "^8.2.1",
5471
"eslint": "^8.25.0",
5572
"esno": "^0.16.3",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)