Skip to content

Commit

Permalink
Add support for *.patch files. (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
caponetto authored Aug 21, 2021
1 parent efecda0 commit 53a1011
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
"version": "0.2.0",
"configurations": [
{
"name": "Launch vscode-extension",
"type": "extensionHost",
"request": "launch",
"name": "Launch vscode-extension",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"outFiles": ["${workspaceRoot}/dist/**/*.js"]
},
{
"name": "Launch vscode-extension (web)",
"type": "pwa-extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionDevelopmentKind=web"],
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
}
]
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.1.9
Add support for *.patch files

# 1.1.8

Add `path-browserify` as fallback and more adjustments for browser
Expand Down
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-diff-viewer",
"displayName": "Diff Viewer",
"description": "Visualize git diff files in VS Code",
"version": "1.1.8",
"version": "1.1.9",
"license": "MIT",
"publisher": "caponetto",
"repository": {
Expand Down Expand Up @@ -46,11 +46,24 @@
"displayName": "Diff Viewer",
"selector": [
{
"filenamePattern": "*.diff"
"filenamePattern": "*.{diff,patch}"
}
]
}
],
"languages": [
{
"id": "diff",
"extensions": [
".diff",
".patch"
],
"aliases": [
"diff",
"patch"
]
}
],
"configuration": [
{
"title": "DiffViewer",
Expand Down Expand Up @@ -113,6 +126,7 @@
"scripts": {
"build-extension": "rm -rf dist && webpack --mode production",
"pack-extension": "vsce package --yarn -o ./dist/vscode_diff_viewer_v$npm_package_version.vsix --githubBranch main",
"dev": "rm -rf dist && webpack --mode development",
"prod": "yarn build-extension && yarn pack-extension",
"compile": "yarn build-extension",
"watch": "yarn build-extension"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"module": "CommonJS",
"target": "ES2020",
"lib": ["ES2020", "DOM"],
"lib": ["ES2020", "DOM", "WebWorker"],
"strict": true,
"outDir": "dist"
},
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require("path");

const commonConfig = {
devtool: "source-map",
devtool: "inline-source-map",
output: {
path: path.resolve(__dirname, "./dist"),
filename: "[name].js",
Expand Down

0 comments on commit 53a1011

Please sign in to comment.