-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make changes to package and tsconfig files to support web
- Used vscode.workspace.fs to read and write files instead of fs
- Loading branch information
1 parent
58b5f2b
commit 8051c06
Showing
4 changed files
with
127 additions
and
128 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,117 @@ | ||
{ | ||
"name": "context-copy", | ||
"displayName": "Context Copy", | ||
"publisher": "collinc777", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/collinc777/context-copy" | ||
}, | ||
"description": "VS Code extension that enables one-click copying of multiple files as markdown. Features automatic language detection, file path inclusion, and clipboard integration for seamless code sharing and documentation.", | ||
"version": "0.3.0", | ||
"engines": { | ||
"vscode": "^1.91.0" | ||
}, | ||
"icon": "logo.png", | ||
"categories": [ | ||
"Other" | ||
], | ||
"main": "./out/extension.js", | ||
"activationEvents": [], | ||
"contributes": { | ||
"commands": [ | ||
{ | ||
"command": "extension.filesToMarkdown", | ||
"title": "Copy for Context" | ||
}, | ||
{ | ||
"command": "extension.tabsToMarkdown", | ||
"title": "Copy All Open Tabs for Context" | ||
}, | ||
{ | ||
"command": "extension.singleFileToMarkdown", | ||
"title": "Copy This File for Context" | ||
}, | ||
{ | ||
"command": "extension.tabGroupToMarkdown", | ||
"title": "Copy This Tab Group for Context" | ||
} | ||
], | ||
"menus": { | ||
"explorer/context": [ | ||
{ | ||
"command": "extension.filesToMarkdown" | ||
} | ||
], | ||
"editor/title": [ | ||
{ | ||
"command": "extension.tabsToMarkdown" | ||
} | ||
], | ||
"editor/title/context": [ | ||
{ | ||
"command": "extension.singleFileToMarkdown", | ||
"group": "navigation@999", | ||
"when": "resource" | ||
}, | ||
{ | ||
"command": "extension.tabGroupToMarkdown", | ||
"group": "navigation@999" | ||
}, | ||
{ | ||
"command": "extension.tabsToMarkdown", | ||
"group": "navigation@999" | ||
} | ||
], | ||
"commandPalette": [ | ||
{ | ||
"command": "extension.filesToMarkdown", | ||
"title": "Copy for Context" | ||
}, | ||
{ | ||
"command": "extension.tabsToMarkdown", | ||
"title": "Copy All Open Tabs for Context" | ||
}, | ||
{ | ||
"command": "extension.singleFileToMarkdown", | ||
"title": "Copy This File for Context" | ||
}, | ||
{ | ||
"command": "extension.tabGroupToMarkdown", | ||
"title": "Copy This Tab Group for Context" | ||
} | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"vscode:prepublish": "npm run compile", | ||
"compile": "tsc -p ./", | ||
"watch": "tsc -watch -p ./", | ||
"pretest": "npm run compile && npm run lint", | ||
"lint": "eslint 'src/**/*.{js,ts,tsx}' --quiet", | ||
"lint:fix": "eslint 'src/**/*.{js,ts,tsx}' --quiet --fix", | ||
"format": "prettier --write 'src/**/*.{js,ts,tsx}'", | ||
"format:check": "prettier --check 'src/**/*.{js,ts,tsx}'", | ||
"test": "node ./out/test/runTest.js", | ||
"package": "vsce package", | ||
"cpi": "npm run compile && npm run package && code-insiders --install-extension $(ls context-copy-*.vsix | head -n 1)" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "20.x", | ||
"@types/vscode": "^1.91.0", | ||
"@typescript-eslint/eslint-plugin": "^7.14.1", | ||
"@typescript-eslint/parser": "^7.11.0", | ||
"@vscode/test-cli": "^0.0.10", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"husky": "^9.1.4", | ||
"lint-staged": "^15.2.9", | ||
"prettier": "^3.3.3", | ||
"typescript": "^5.4.5" | ||
} | ||
} | ||
{ | ||
"name": "context-copy", | ||
"displayName": "Context Copy", | ||
"publisher": "collinc777", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/collinc777/context-copy" | ||
}, | ||
"description": "VS Code extension that enables one-click copying of multiple files as markdown. Features automatic language detection, file path inclusion, and clipboard integration for seamless code sharing and documentation.", | ||
"version": "0.3.0", | ||
"engines": { | ||
"vscode": "^1.91.0" | ||
}, | ||
"icon": "logo.png", | ||
"categories": [ | ||
"Other" | ||
], | ||
"main": "./out/extension.js", | ||
"activationEvents": [], | ||
"contributes": { | ||
"commands": [ | ||
{ | ||
"command": "extension.filesToMarkdown", | ||
"title": "Copy for Context" | ||
}, | ||
{ | ||
"command": "extension.tabsToMarkdown", | ||
"title": "Copy All Open Tabs for Context" | ||
}, | ||
{ | ||
"command": "extension.singleFileToMarkdown", | ||
"title": "Copy This File for Context" | ||
}, | ||
{ | ||
"command": "extension.tabGroupToMarkdown", | ||
"title": "Copy This Tab Group for Context" | ||
} | ||
], | ||
"menus": { | ||
"explorer/context": [ | ||
{ | ||
"command": "extension.filesToMarkdown" | ||
} | ||
], | ||
"editor/title": [ | ||
{ | ||
"command": "extension.tabsToMarkdown" | ||
} | ||
], | ||
"editor/title/context": [ | ||
{ | ||
"command": "extension.singleFileToMarkdown", | ||
"group": "navigation@999", | ||
"when": "resource" | ||
}, | ||
{ | ||
"command": "extension.tabGroupToMarkdown", | ||
"group": "navigation@999" | ||
}, | ||
{ | ||
"command": "extension.tabsToMarkdown", | ||
"group": "navigation@999" | ||
} | ||
], | ||
"commandPalette": [ | ||
{ | ||
"command": "extension.filesToMarkdown", | ||
"title": "Copy for Context" | ||
}, | ||
{ | ||
"command": "extension.tabsToMarkdown", | ||
"title": "Copy All Open Tabs for Context" | ||
}, | ||
{ | ||
"command": "extension.singleFileToMarkdown", | ||
"title": "Copy This File for Context" | ||
}, | ||
{ | ||
"command": "extension.tabGroupToMarkdown", | ||
"title": "Copy This Tab Group for Context" | ||
} | ||
] | ||
}, | ||
"extensionKind": [ | ||
"workspace", | ||
"web" | ||
] | ||
}, | ||
"scripts": { | ||
"vscode:prepublish": "npm run compile", | ||
"compile": "tsc -p ./", | ||
"watch": "tsc -watch -p ./", | ||
"pretest": "npm run compile && npm run lint", | ||
"lint": "eslint 'src/**/*.{js,ts,tsx}' --quiet", | ||
"lint:fix": "eslint 'src/**/*.{js,ts,tsx}' --quiet --fix", | ||
"format": "prettier --write 'src/**/*.{js,ts,tsx}'", | ||
"format:check": "prettier --check 'src/**/*.{js,ts,tsx}'", | ||
"test": "node ./out/test/runTest.js", | ||
"package": "vsce package", | ||
"cpi": "npm run compile && npm run package && code-insiders --install-extension $(ls context-copy-*.vsix | head -n 1)" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "20.x", | ||
"@types/vscode": "^1.91.0", | ||
"@typescript-eslint/eslint-plugin": "^7.14.1", | ||
"@typescript-eslint/parser": "^7.11.0", | ||
"@vscode/test-cli": "^0.0.10", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"husky": "^9.1.4", | ||
"lint-staged": "^15.2.9", | ||
"prettier": "^3.3.3", | ||
"typescript": "^5.4.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters