Skip to content

Commit fb2fd6b

Browse files
authored
Merge pull request #32 from kortina/ak-updates-for-dependabot
update stale deps for dependabot alerts
2 parents 78a8817 + ea5a8b8 commit fb2fd6b

File tree

8 files changed

+1077
-1174
lines changed

8 files changed

+1077
-1174
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ out
22
dist
33
node_modules
44
.vscode-test/
5-
.vsix
5+
*.vsix

.vscode/launch.json

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
25
{
3-
"version": "0.1.0",
4-
"configurations": [
5-
{
6-
"name": "Launch Extension",
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11-
"stopOnEntry": false,
12-
"sourceMaps": true,
13-
"outFiles": [ "${workspaceRoot}/out/**/*.js" ],
14-
"preLaunchTask": "npm: watch"
15-
},
16-
{
17-
"name": "Launch Tests",
18-
"type": "extensionHost",
19-
"request": "launch",
20-
"runtimeExecutable": "${execPath}",
21-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
22-
"stopOnEntry": false,
23-
"sourceMaps": true,
24-
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
25-
"preLaunchTask": "npm: watch"
26-
}
27-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "${workspaceFolder}/src/test/"],
14+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
15+
"preLaunchTask": "npm: watch"
16+
}
17+
]
2818
}

.vscode/settings.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@
66
"files.exclude": {
77
"out": false // set this to true to hide the "out" folder with the compiled JS files
88
},
9-
"runInTerminal.commands": [
10-
{"match": ".*\\.(js|ts)$", "name": "b", "cmd": "npm run compile && node ./node_modules/vscode/bin/test"}
11-
],
129
"search.exclude": {
1310
"out": true // set this to false to include "out" folder in search results
14-
}
11+
},
12+
"cSpell.words": [
13+
"Extname",
14+
"benmills",
15+
"rspec",
16+
"vimux",
17+
"vpackage",
18+
"vpublish",
19+
"vsix",
20+
"xvfb"
21+
]
1522
}

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,42 @@ You should provide an `object` as the value of the `arguments` key when calling
131131

132132
Runs the last `cmd` run by `runInTerminal.run` again.
133133

134+
## Example of a Javascript / Typescript Line Runner
135+
136+
Here is an example of a VS Code extension, written in typescript, with a line runner bound to `,rl`:
137+
138+
The `settings.json`:
139+
https://github.com/kortina/vscode-markdown-notes/blob/ba40b5cea0d10873b571e3e91d453dd7119cb89d/.vscode/settings.json#L8
140+
141+
A shell script that finds the jest bdd description given a `file:lineno`:
142+
https://github.com/kortina/vscode-markdown-notes/blob/ba40b5cea0d10873b571e3e91d453dd7119cb89d/jest-focused.sh
143+
144+
## More Example Settings
145+
146+
My `runInTerminal.commands` in `settings.json`:
147+
https://github.com/kortina/dotfiles/blob/f9465ac8dd82738b3f7a4415dd0c49412c86f841/vscode/settings.json#L68
148+
149+
My `vim.normalModeKeyBindingsNonRecursive` bindings to `runInTerminal` in `settings.json`:
150+
https://github.com/kortina/dotfiles/blob/f9465ac8dd82738b3f7a4415dd0c49412c86f841/vscode/settings.json#L181
151+
134152
## Known Issues
135153

136154
- The `${relativeFile}` substitution token only works when you have opened an entire folder with `vscode`, not a single file.
137155
- Unknown behavior when many commands in 'runInTerminal.commands' match both the `match` expression and `name` of the command run.
138156

139157
## Development and Release
140158

159+
To run locally
160+
```sh
161+
# install deps
162+
npm install --dev
163+
```
164+
141165
To create a new release,
142166

143167
```sh
144168
# bump version number in package.json
145-
npm run vpackage # package the release, creates ,vsix
169+
npm run vpackage # package the release, creates vsix
146170
npm run vpublish # publish to store, see https://code.visualstudio.com/api/working-with-extensions/publishing-extension
147171
# Will prompt for Azure Devops Personal Access Token, get fresh one at:
148172
# https://dev.azure.com/andrewkortina/

0 commit comments

Comments
 (0)