File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ experiment-*
25
25
.eslintcache
26
26
Thumbs.db
27
27
.idea /
28
+ * .vsix
29
+ .vscode /*
28
30
29
31
src /generated.ts
30
32
src /configurationTypeCache.jsonc
Original file line number Diff line number Diff line change @@ -159,16 +159,6 @@ const doPatchInner = async (config: any) => {
159
159
fs . writeFileSync ( fileToPatch , text , 'utf8' )
160
160
161
161
function injectScriptContents ( offset : number , inject : string ) {
162
- // <injected before>|<inject end marker>
163
- // if (text.slice(offset).startsWith(injectMarkers[1])) {
164
- // const endMarkerPos = offset
165
- // offset = text.slice(0, offset).lastIndexOf(injectMarkers[0])
166
- // text = text.slice(0, offset) + text.slice(endMarkerPos + injectMarkers[1].length)
167
- // }
168
- // // |<injected after>
169
- // if (text.slice(offset).startsWith(injectMarkers[0])) {
170
- // text = text.slice(0, offset) + text.slice(text.slice(offset).indexOf(injectMarkers[1] + injectMarkers[1].length))
171
- // }
172
162
if ( ! inject ) return
173
163
text =
174
164
text . slice ( 0 , offset ) +
You can’t perform that action at this time.
0 commit comments