-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
256 lines (256 loc) · 10.1 KB
/
Copy pathpackage.json
File metadata and controls
256 lines (256 loc) · 10.1 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{
"$schema": "https://json.schemastore.org/package",
"name": "import-linker",
"displayName": "Linker - Auto Import Updater",
"description": "Automatically updates import statements when you rename or move files and folders. Supports JavaScript, TypeScript, React, Python, Go, and CSS with FULL ALIAS SUPPORT. Enhanced diff preview and undo/redo. Optimized for large codebases.",
"version": "1.1.7",
"publisher": "linkerdev",
"icon": "images/linker-logo.png",
"repository": {
"type": "git",
"url": "https://github.com/soumen0818/Linker"
},
"bugs": {
"url": "https://github.com/soumen0818/Linker/issues"
},
"homepage": "https://github.com/soumen0818/Linker#readme",
"license": "MIT",
"keywords": [
"import",
"refactor",
"rename",
"move",
"auto-import",
"javascript",
"typescript",
"react",
"es6",
"modules",
"imports",
"productivity"
],
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Programming Languages",
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "linker.undo",
"title": "Linker: Undo Last Import Changes"
},
{
"command": "linker.redo",
"title": "Linker: Redo Import Changes"
},
{
"command": "linker.showHistory",
"title": "Linker: Show Change History"
},
{
"command": "linker.changeSettingsPreference",
"title": "Linker: Change Settings Preference (Workspace vs Global)"
}
],
"keybindings": [
{
"command": "linker.undo",
"key": "ctrl+alt+z",
"mac": "cmd+alt+z",
"when": "editorTextFocus"
},
{
"command": "linker.redo",
"key": "ctrl+alt+y",
"mac": "cmd+alt+y",
"when": "editorTextFocus"
}
],
"configuration": {
"type": "object",
"title": "Linker",
"properties": {
"linker.autoApply": {
"type": "boolean",
"default": false,
"description": "Automatically apply import updates without showing preview dialog. When enabled, updates are applied atomically with file renames (prevents conflicts with Pylance). When disabled, shows preview for confirmation. Set to true for Python projects to prevent Pylance conflicts."
},
"linker.git.useGitMv": {
"type": "boolean",
"default": true,
"description": "Use git mv to preserve file history when renaming tracked files. When enabled, renames are recorded in Git as moves rather than delete+add operations."
},
"linker.git.autoStage": {
"type": "boolean",
"default": false,
"description": "Automatically stage files modified by Linker in Git"
},
"linker.exclude": {
"type": "array",
"default": [
"**/node_modules/**",
"**/.git/**",
"**/dist/**",
"**/build/**",
"**/out/**",
"**/.next/**",
"**/coverage/**",
"**/vendor/**",
"**/*.min.js",
"**/*.min.css",
"**/*.bundle.js"
],
"description": "Glob patterns to exclude from scanning (add more directories to improve performance)"
},
"linker.fileExtensions": {
"type": "array",
"default": [
"js",
"ts",
"jsx",
"tsx",
"py",
"go",
"css",
"scss",
"less"
],
"description": "File extensions to scan for imports"
},
"linker.preview.diffView": {
"type": "boolean",
"default": true,
"description": "Show enhanced diff view with before/after comparison"
},
"linker.preview.layout": {
"type": "string",
"enum": [
"side-by-side",
"inline"
],
"default": "side-by-side",
"description": "Layout for diff preview: side-by-side or inline"
},
"linker.formatting.quoteStyle": {
"type": "string",
"enum": [
"single",
"double",
"auto"
],
"default": "auto",
"description": "Quote style for import paths: single quotes, double quotes, or auto-detect"
},
"linker.formatting.semicolons": {
"type": "string",
"enum": [
"always",
"never",
"auto"
],
"default": "auto",
"description": "Semicolon usage: always add, never add, or auto-detect from existing code"
},
"linker.history.enabled": {
"type": "boolean",
"default": true,
"description": "Enable undo/redo functionality for import changes"
},
"linker.history.maxEntries": {
"type": "number",
"default": 50,
"description": "Maximum number of history entries to keep"
},
"linker.multiLanguage.python": {
"type": "boolean",
"default": true,
"description": "Enable Python import detection and updates"
},
"linker.multiLanguage.python.aliasSupport": {
"type": "boolean",
"default": true,
"description": "Enable Python path alias support (reads from pyproject.toml and auto-detects common structures)"
},
"linker.multiLanguage.go": {
"type": "boolean",
"default": true,
"description": "Enable Go import detection and updates"
},
"linker.multiLanguage.go.aliasSupport": {
"type": "boolean",
"default": true,
"description": "Enable Go module alias support (reads from go.mod for module paths and replace directives)"
},
"linker.multiLanguage.css": {
"type": "boolean",
"default": true,
"description": "Enable CSS/SCSS/LESS @import detection and updates"
},
"linker.multiLanguage.css.aliasSupport": {
"type": "boolean",
"default": true,
"description": "Enable CSS path alias support (reads from webpack.config.js, vite.config.js for @ and ~ aliases)"
},
"linker.performance.largeCodebaseMode": {
"type": "string",
"enum": [
"auto",
"enabled",
"disabled"
],
"default": "auto",
"description": "Enable optimizations for large codebases: auto-detect, always enabled, or disabled"
},
"linker.performance.maxFilesToScan": {
"type": "number",
"default": 10000,
"description": "Maximum number of files to scan in large codebases (prevents excessive scanning)"
},
"linker.performance.maxConcurrentFiles": {
"type": "number",
"default": 20,
"description": "Maximum number of files to process concurrently (lower for large codebases, increase to 50 for small projects)"
},
"linker.performance.maxFileSizeBytes": {
"type": "number",
"default": 1048576,
"description": "Maximum file size to process in bytes (default 1MB, prevents processing huge files)"
},
"linker.performance.operationTimeoutMs": {
"type": "number",
"default": 60000,
"description": "Maximum time in milliseconds for rename operations (default 60 seconds)"
},
"linker.performance.smartScanning": {
"type": "boolean",
"default": true,
"description": "Enable smart scanning that limits file count and skips large files"
},
"linker.performance.debounceMs": {
"type": "number",
"default": 300,
"description": "Debounce delay in milliseconds for file rename events"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "tsc -p ./",
"watch": "tsc -w -p ./",
"pretest": "npm run build"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/vscode": "^1.75.0",
"typescript": "^5.0.0",
"@vscode/test-electron": "^2.3.0"
}
}