Skip to content

Commit

Permalink
fix: fix support for vscode web extension
Browse files Browse the repository at this point in the history
close #64
  • Loading branch information
gera2ld committed Feb 14, 2025
1 parent 852720f commit fd44b15
Show file tree
Hide file tree
Showing 7 changed files with 1,117 additions and 48 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ dist
node_modules
.vscode-test/
*.vsix
.vscode-test-web/
.vscode/settings.json
28 changes: 13 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
19 changes: 0 additions & 19 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default [
},
},
},
{ ignores: ['**/*.js', '**/dist/'] },
{ ignores: ['**/*.js', '**/dist/', '.vscode-test-web/'] },
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@
"build:js": "rollup -c && node dist/postbuild.js",
"build": "pnpm lint:fix && pnpm clean && pnpm build:js",
"lint": "eslint && prettier --check src",
"lint:fix": "eslint --fix && prettier --write src"
"lint:fix": "eslint --fix && prettier --write src",
"dev:browser": "vscode-test-web --extensionDevelopmentPath=. ."
},
"repository": "https://github.com/gera2ld/markmap-vscode",
"main": "dist/extension.js",
Expand All @@ -138,6 +139,7 @@
"@types/node": "^22.13.2",
"@types/vscode": "~1.75.0",
"@types/vscode-webview": "^1.57.5",
"@vscode/test-web": "*",
"del-cli": "^6.0.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -147,7 +149,7 @@
"lint-staged": "^15.3.0",
"lodash.debounce": "^4.0.8",
"markmap-common": "0.18.9",
"markmap-lib": "0.18.10",
"markmap-lib": "0.18.11",
"markmap-render": "0.18.10",
"markmap-toolbar": "0.18.10",
"markmap-view": "0.18.10",
Expand Down
Loading

0 comments on commit fd44b15

Please sign in to comment.