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-*
2525.eslintcache
2626Thumbs.db
2727.idea /
28+ * .vsix
29+ .vscode /*
2830
2931src /generated.ts
3032src /configurationTypeCache.jsonc
Original file line number Diff line number Diff line change @@ -159,16 +159,6 @@ const doPatchInner = async (config: any) => {
159159 fs . writeFileSync ( fileToPatch , text , 'utf8' )
160160
161161 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- // }
172162 if ( ! inject ) return
173163 text =
174164 text . slice ( 0 , offset ) +
You can’t perform that action at this time.
0 commit comments