mirror of
https://github.com/Tyriar/vscode-theme-generator.git
synced 2026-09-25 21:41:21 -07:00
Use a prelaunch task to build demo on debug
This commit is contained in:
Vendored
+2
-1
@@ -7,7 +7,8 @@
|
|||||||
"type": "extensionHost",
|
"type": "extensionHost",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"runtimeExecutable": "${execPath}",
|
"runtimeExecutable": "${execPath}",
|
||||||
"args": ["--extensionDevelopmentPath=${workspaceRoot}/demo" ]
|
"args": ["--extensionDevelopmentPath=${workspaceRoot}/demo" ],
|
||||||
|
"preLaunchTask": "build"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+14
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"version": "0.1.0",
|
||||||
|
"command": "npm",
|
||||||
|
"isShellCommand": true,
|
||||||
|
"showOutput": "always",
|
||||||
|
"suppressTaskName": true,
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"isBuildCommand": true,
|
||||||
|
"taskName": "build",
|
||||||
|
"args": ["start"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -28,7 +28,7 @@ const colorSet: IColorSet = {
|
|||||||
color2: '#DA6771',
|
color2: '#DA6771',
|
||||||
color3: '#4EB071',
|
color3: '#4EB071',
|
||||||
color4: '#fff099',
|
color4: '#fff099',
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
generateTheme('My Theme', colorSet, path.join(__dirname, 'theme.json'));
|
generateTheme('My Theme', colorSet, path.join(__dirname, 'theme.json'));
|
||||||
```
|
```
|
||||||
@@ -50,9 +50,6 @@ Support below means that the standard VS Code grammar has explicit support for t
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run dev
|
npm run dev
|
||||||
|
|
||||||
# In another shell
|
|
||||||
npm start
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Them in VS Code press <kbd>F5</kbd> to launch the debugger with the generated theme available to switch to.
|
Then in VS Code press <kbd>F5</kbd> to build demo and launch the debugger with the generated themes available to switch to.
|
||||||
|
|||||||
Reference in New Issue
Block a user