forked from xulion/scope4code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
154 lines (154 loc) · 4.9 KB
/
package.json
File metadata and controls
154 lines (154 loc) · 4.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"name": "codescope",
"displayName": "scope4code",
"description": "cscope for vs code",
"version": "0.2.0",
"publisher": "xulion",
"engines": {
"vscode": "^1.34.0"
},
"license": "SEE LICENSE IN LICENSE",
"bugs": {
"url": "https://github.com/xulion/scope4code/issues",
"email": "xulion.xulion@gmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/xulion/scope4code"
},
"homepage": "https://github.com/xulion/scope4code/blob/master/README.md",
"categories": [
"Programming Languages",
"Other"
],
"activationEvents": [
"*",
"workspaceContains:**/.vscode"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "extension.build",
"title": "Cscope: Build database"
},
{
"command": "extension.findSymbol",
"title": "Cscope: Find this C symbol"
},
{
"command": "extension.findDefinition",
"title": "Cscope: Find this function definition"
},
{
"command": "extension.findCallee",
"title": "Cscope: Find functions called by this function"
},
{
"command": "extension.findCaller",
"title": "Cscope: Find functions calling this function"
},
{
"command": "extension.findText",
"title": "Cscope: Find this text string"
},
{
"command": "extension.findInclude",
"title": "Cscope: Find files #including this file"
}
],
"menus": {
"editor/context": []
},
"configuration": {
"title": "scope4code",
"properties": {
"scope4code.enableScope": {
"type": "boolean",
"default": true,
"scope": "language-overridable",
"description": "Enable scope4code."
},
"scope4code.executablePath": {
"type": "string",
"default": "",
"description": "Path of executables."
},
"scope4code.printCmdBeforeExecute": {
"type": "boolean",
"default": false,
"description": "Print command before execute."
},
"scope4code.databasePath": {
"type": "string",
"default": "${workspaceRoot}/.vscode/cscope",
"description": "IMPORTANT:Pls only configure this in workspace setting!!! cscope database path."
},
"scope4code.openInNewCol": {
"type": "boolean",
"default": false,
"description": "Open search result in new column."
},
"scope4code.sourceCodePaths": {
"type": "array",
"default": [
"${workspaceRoot}"
],
"description": "IMPORTANT:Pls only configure this in workspace setting!!! Code paths used to build database."
},
"scope4code.excludedPaths": {
"type": "array",
"default": [],
"description": " IMPORTANT:Pls only configure this in workspace setting!!! Rules to exclude files. Each entry shall be a regular expression. If the file paths matches the rule it would be removed from source file list when database is built. For example rule '/exclude/.*' will exclude any file under filder '/exclude/'."
},
"scope4code.engineCommands": {
"type": "object",
"default": {
"config_index": {
"cscope": {
"win32": 1,
"linux": 0
}
},
"config": [
{
"find_cmd": "find ${src_path} -type f -name *.c -o -type f -name *.h -o -type f -name *.cpp -o -type f -name *.cc -o -type f -name *.mm",
"database_cmd": "cscope -b -q -k",
"find_all_ref": "cscope -q -k -L0 ${text}",
"find_define": "cscope -q -k -L1 ${text}",
"find_callee": "cscope -q -k -L2 ${text}",
"find_caller": "cscope -q -k -L3 ${text}",
"find_text": "cscope -q -k -L4 ${text}"
},
{
"find_cmd": "cmd /C dir /s/a/b ${src_path}\\*.c ${src_path}\\*.h ${src_path}\\*.cpp ${src_path}\\*.cc ${src_path}\\*.mm",
"database_cmd": "cscope -b -q -k",
"find_all_ref": "cscope -q -k -L0 ${text}",
"find_define": "cscope -q -k -L1 ${text}",
"find_callee": "cscope -q -k -L2 ${text}",
"find_caller": "cscope -q -k -L3 ${text}",
"find_text": "cscope -q -k -L4 ${text}"
}
]
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./",
"test": "jest"
},
"devDependencies": {
"@types/node": "^14.11.8",
"@types/vscode": "^1.34.0",
"@types/jest": "^26.0.14",
"jest": "^26.5.3",
"ts-jest": "^26.4.1",
"typescript": "^4.0.3"
},
"dependencies": {}
}