Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

feat: vscode extension #87

Merged
merged 27 commits into from
Feb 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c97c67f
feat: vscode extension
Slowlife01 Oct 13, 2022
0989528
refactor: use loaderOptions.compiler
Slowlife01 Oct 25, 2022
d78dbc4
chore(cli): update bin
Slowlife01 Oct 30, 2022
ce35fdf
chore: fix lockfile
Slowlife01 Oct 30, 2022
6c566c4
feat: use Pseudoterminal
Slowlife01 Nov 1, 2022
d4915a6
feat: sync changes for cli
Slowlife01 Nov 1, 2022
0d42544
feat: include service url in modify cmd
Slowlife01 Nov 2, 2022
a14dd6b
refactor: add force_color to env
Slowlife01 Nov 3, 2022
0c5332d
import more functions from cli
Slowlife01 Nov 12, 2022
30f8aa9
feat: vscode extension
Slowlife01 Oct 13, 2022
3da844e
fix merge confilts
Slowlife01 Nov 12, 2022
be48a4c
cli: rebuild
Slowlife01 Nov 12, 2022
179efe6
import compiler from cli
Slowlife01 Nov 18, 2022
0b5ee7d
move watch func to compiler class
Slowlife01 Nov 18, 2022
b6c48b6
use util.format in outputterminal
Slowlife01 Nov 20, 2022
e101ddd
refactor outputterminal
Slowlife01 Nov 20, 2022
9053e41
feat: remove error message after delay
Slowlife01 Dec 7, 2022
ca947a9
feat: add placeholder to inputs
Slowlife01 Dec 9, 2022
f4af0a6
fix: service[0] > getFolderLetter(service)
Slowlife01 Dec 9, 2022
6dbd59d
refactor: symlink template folder
Slowlife01 Dec 10, 2022
8c28cea
feat: able modify multiple services at the time
Slowlife01 Dec 10, 2022
0c80405
fix: add service name to statusbar
Slowlife01 Dec 10, 2022
a43f2df
refactor: address reviews
Slowlife01 Feb 6, 2023
e8fc18e
fix(cli): add bin to tsconfig.exclude
Slowlife01 Feb 6, 2023
ba94e6b
chore: rebuild cli and fix lock file
Slowlife01 Feb 6, 2023
7e51d60
chore: remove readme
Slowlife01 Feb 6, 2023
e72736b
chore(extension): remove yarn.lock from .vscodeignore
Slowlife01 Feb 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.vsix

# Logs
logs
*.log
Expand Down
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/apps/extension"],
"outFiles": ["${workspaceFolder}/apps/extension/dist/**/*.js"],
"preLaunchTask": "npm: extension:debug"
}
]
}
43 changes: 43 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "extension:debug",
"problemMatcher": {
"owner": "tsup",
"source": "tsup",
"severity": "error",
"pattern": [
{
"regexp": "^✘\\s+\\[ERROR\\]\\s+(.+)$",
"message": 1
},
{
"regexp": "^\\s*$"
},
{
"regexp": "^\\s+(.+):(\\d+):(\\d+):$",
"file": 1,
"line": 2,
"column": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "^CJS Build start$",
"endsPattern": "^CJS .* Build success|^CJS Build failed"
}
},
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

10 changes: 10 additions & 0 deletions apps/extension/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.vscode/
src/
types/

*.ts

dist/*.ts
dist/*.js.map

tsconfig.json
1 change: 1 addition & 0 deletions apps/extension/LICENSE
14 changes: 14 additions & 0 deletions apps/extension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## About
Tool for creating and modifying Presences.

## Using the commands
To use the commands, open up the Command Palette using `Ctrl+Shift+P`

![image](https://user-images.githubusercontent.com/54318514/196675302-e172d4b9-6f04-4551-8288-8de9293c2188.png)

## Debugging the Extension

- Run `pnpm install` to install dependencies
- Press `F5`, this will:
- Start a task `npm: debug:extension` to compile the code
- Run the extension in a new VS Code window
Binary file added apps/extension/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "premid-pmd",
"displayName": "pmd",
"description": "Tool for creating and modifying Presences.",
"version": "1.0.0",
"publisher": "PreMiD",
"private": true,
"license": "MPL-2.0",
"icon": "assets/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/PreMiD/pmd"
},
"bugs": {
"url": "https://github.com/PreMiD/pmd/issues"
},
"homepage": "https://github.com/PreMiD/pmd/tree/main/apps/extension#readme",
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Other"
],
"main": "./dist/extension.js",
"activationEvents": [],
"contributes": {
"commands": [
{
"command": "pmd.createPresence",
"title": "Create a Presence",
"category": "PMD"
},
{
"command": "pmd.modifyPresence",
"title": "Modify a Presence",
"category": "PMD"
}
]
},
"scripts": {
"vscode:prepublish": "pnpm run compile",
"compile": "tsup",
"debug": "tsup --watch --sourcemap"
},
"devDependencies": {
"@pmd/cli": "workspace:*",
"@types/discord-rpc": "^4.0.3",
"@types/node": "^18.11.2",
"@types/vscode": "^1.32.0",
"axios": "^1.1.2",
"chalk": "4.0.0",
"chokidar": "^3.5.3",
"copy-webpack-plugin": "^11.0.0",
"discord-rpc": "^4.0.1",
"jsonschema": "^1.4.1",
"ts-loader": "^9.4.1",
"tsup": "^6.2.3",
"typescript": "^4.8.4",
"webpack": "^5.74.0"
}
}
Loading