Skip to content

Commit

Permalink
Moving regex patterns to a config file (stripe#176)
Browse files Browse the repository at this point in the history
This json file will soon be updated to support multiple languages. In addition:
* Added run configurations to allow attaching to the language server for debugging purposes.
* Updated Readme for debugging the extension.
* Moved the snippets configuration into the config directory.
  • Loading branch information
gracegoo-stripe authored Feb 17, 2021
1 parent 1acdb5c commit 18e2ce8
Show file tree
Hide file tree
Showing 6 changed files with 1,453 additions and 1,429 deletions.
17 changes: 16 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [{
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach to Language Server",
"port": 6009,
"restart": true,
"outFiles": ["${workspaceRoot}/out/stripeLanguageServer/**/*.js"]
},
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
Expand All @@ -20,5 +29,11 @@
"EXTENSION_MODE": "development"
}
}
],
"compounds": [
{
"name": "Client + Server",
"configurations": ["Run Extension", "Attach to Language Server"]
}
]
}
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,20 @@ Contributions and feedback to the project are welcome, so please open issues for
- Right click "Stripe" from the Extensions marketplace
- Click Disable (Workspace)

### Debugging this extension

1. Open the Run view, select the "Run Extension" button to launch an additional Extension Development Host instance of VSCode that executes the extension code in your workspace.
1. To debug the stripe language server, select the "Client + Server" button. This will allow you to set breakpoints for code that lives within the stripeLanguageServer directory.
- You can find more info on the language server here: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide

## License

See [LICENSE.md](LICENSE.md)

## Telemetry

The Stripe VS Code Extension collects basic telemetry in order to improve this extension's experience. If you'd like to opt out we respect the [global telemetry setting in VS Code](https://code.visualstudio.com/docs/getstarted/telemetry), so we won't collect any data unless this setting is turned on.


## Third-Party Notices

| Name | Description | Version | Size | License |
Expand Down
Loading

0 comments on commit 18e2ce8

Please sign in to comment.