Skip to content

fix deprecate previewHtml command #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"ms-vscode.vscode-typescript-tslint-plugin"
]
}
25 changes: 18 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,33 @@
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceRoot}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
"preLaunchTask": "npm"
"outFiles": [
"${workspaceRoot}/out/src/**/*.js"
],
"preLaunchTask": "npm: watch"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
"preLaunchTask": "npm"
"outFiles": [
"${workspaceRoot}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch"
}
]
}
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
}
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
38 changes: 18 additions & 20 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,24 @@
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls a custom npm script that compiles the extension.
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "0.1.0",

// we want to run npm
"command": "npm",

// the command is a shell script
"isShellCommand": true,

// show the output window only if unrecognized errors occur.
"showOutput": "silent",

// we run the custom script "compile" as defined in package.json
"args": ["run", "compile", "--loglevel", "silent"],

// The tsc compiler is started in watching mode
"isBackground": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
## Version 0.0.2
- Initial release
- new command: Regexp Preview
- new command: Regexp Editor
- new command: Regexp Editor

## Version 1.0.0
- fix deprecate previewHtml command to support new version of vscode
- preview panel will now close along with editor
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
*This is a modified version, will not work with the origin one*

# RegExp Preview

[![Marketplace](https://vsmarketplacebadge.apphb.com/version/le0zh.vscode-regexp-preivew.svg)](https://marketplace.visualstudio.com/items/le0zh.vscode-regexp-preivew) [![Installs](https://vsmarketplacebadge.apphb.com/installs/le0zh.vscode-regexp-preivew.svg)](https://marketplace.visualstudio.com/items/le0zh.vscode-regexp-preivew) [![Ratings](https://vsmarketplacebadge.apphb.com/rating-short/le0zh.vscode-regexp-preivew.svg)](https://marketplace.visualstudio.com/items/le0zh.vscode-regexp-preivew)
[![Marketplace](https://vsmarketplacebadge.apphb.com/version/le0zh.vscode-regexp-preivew.svg)](https://marketplace.visualstudio.com/items/le0zh.vscode-regexp-preivew)
[![Installs](https://vsmarketplacebadge.apphb.com/installs/le0zh.vscode-regexp-preivew.svg)](https://marketplace.visualstudio.com/items/le0zh.vscode-regexp-preivew)
[![Ratings](https://vsmarketplacebadge.apphb.com/rating-short/le0zh.vscode-regexp-preivew.svg)](https://marketplace.visualstudio.com/items/le0zh.vscode-regexp-preivew)

VSCode extension based on [regexper-static](https://github.com/javallone/regexper-static). Including regexp expression preivewer and realtime preivew editor.

Expand All @@ -19,3 +23,6 @@ This extension is available for free in the [Visual Studio Code Marketplace](htt
## What's new?

Click here to go to the [Changelog](./CHANGELOG.md)

PS: Since the author of this extension seems to be not active for now(my PR didn't got merged by its [origin repo](https://github.com/le0zh/vscode-regexp-preivew.git) for a long time),
so I made [my version](https://github.com/snys98/vscode-regexp-preivew) to work with new version of vscode.
Loading