Skip to content

Commit 95b55f8

Browse files
committed
Add a VS Code task to run sync-files.py
If you're developing one of the libraries that has muiltiple copies auto-generated by `sync-files.py`, you can now run `sync-files.py --latest` by going to the `Terminal | Run Task...` menu in VS Code and selecting the `Sync Identical Files` task. You can set a keyboard binding to run this task for quicker access.
1 parent 1d6b6a4 commit 95b55f8

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@
2121
/codeql/
2222

2323
csharp/extractor/Semmle.Extraction.CSharp.Driver/Properties/launchSettings.json
24-
.vscode

.vscode/tasks.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Sync Identical Files",
8+
"type": "process",
9+
// Non-Windows OS will usually have Python 3 already installed at /usr/bin/python3.
10+
"command": "python3",
11+
"args": [
12+
"config/sync-files.py",
13+
"--latest"
14+
],
15+
"windows": {
16+
// On Windows, use whatever Python interpreter is configured for this workspace. The default is
17+
// just `python`, so if Python is already on the path, this will find it.
18+
"command": "${config:python.pythonPath}",
19+
},
20+
"problemMatcher": []
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)