i-c-fn-head 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscodeignore +15 -0
- package/CHANGELOG.md +9 -0
- package/LICENSE +1 -0
- package/README.md +78 -0
- package/dist/extension.js +1 -0
- package/dist/extension.js.map +1 -0
- package/empty +1 -0
- package/eslint.config.mjs +27 -0
- package/i-c-fn-head-0.0.1.use-for-Rust.vsix +0 -0
- package/i-c-fn-head-0.0.2.vsix +0 -0
- package/i-c-fn-head-0.0.3.vsix +0 -0
- package/i-c-fn-head-0.0.5.vsix +0 -0
- package/package.json +211 -0
- package/src/basic_funx.ts +120 -0
- package/src/colorful.ts +276 -0
- package/src/extension.ts +277 -0
- package/src/faav.ts +51 -0
- package/src/fancy_f12.ts +113 -0
- package/src/fn_body_n_head.ts +504 -0
- package/src/goto_impl.ts +62 -0
- package/src/init.ts +84 -0
- package/src/quick_pick.ts +43 -0
- package/src/show_doc_symbs.ts +66 -0
- package/src/test/extension.test.ts +15 -0
- package/tsconfig.json +23 -0
- package/tst.tst +0 -0
- package/vsc-extension-quickstart.md +48 -0
- package/webpack.config.js +48 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.js","mappings":"mDAEA,SAASA,EAASC,EAAGC,EAAGC,GAClBF,aAAaG,SAAQH,EAAII,EAAWJ,EAAGE,IACvCD,aAAaE,SAAQF,EAAIG,EAAWH,EAAGC,IAE3C,IAAIG,EAAIC,EAAMN,EAAGC,EAAGC,GAEpB,OAAOG,GAAK,CACVE,MAAOF,EAAE,GACTG,IAAKH,EAAE,GACPI,IAAKP,EAAIQ,MAAM,EAAGL,EAAE,IACpBM,KAAMT,EAAIQ,MAAML,EAAE,GAAKL,EAAEY,OAAQP,EAAE,IACnCQ,KAAMX,EAAIQ,MAAML,EAAE,GAAKJ,EAAEW,QAE7B,CAEA,SAASR,EAAWU,EAAKZ,GACvB,IAAIa,EAAIb,EAAIc,MA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AS,MAAO,CAAEkmB,YAAY,EAAMje,IAAK,WAAc,OAAOge,EAASlN,GAAK,IAClG,IAAIoN,EAAc,EAAQ,KAC1BxN,OAAOC,eAAe5Y,EAAS,SAAU,CAAEkmB,YAAY,EAAMje,IAAK,WAAc,OAAOke,EAAYjI,MAAQ,IAC3G,IAAIkI,EAAgB,EAAQ,KAC5BzN,OAAOC,eAAe5Y,EAAS,WAAY,CAAEkmB,YAAY,EAAMje,IAAK,WAAc,OAAOme,EAAc1J,QAAU,IAEjH1c,EAAQmJ,UAAU4P,IAAMgG,EAAShG,IACjC/Y,EAAQmJ,UAAUoV,UAAYA,EAC9Bve,EAAQmJ,UAAU+U,OAASc,EAAYd,OACvCle,EAAQmJ,UAAUuT,SAAWzD,EAAcyD,Q,wBCt/B3C/D,OAAOC,eAAe5Y,EAAS,aAAc,CAAEmL,OAAO,IACtDnL,EAAQ0c,cAAgB,EAoBxB1c,EAAQ0c,SALS,CAACjD,GAAK0E,wBAAuB,GAAW,CAAC,IAC/CA,EACD1E,EAAEvF,QAAQ,iBAAkB,MAC5BuF,EAAEvF,QAAQ,4BAA6B,QAAQA,QAAQ,aAAc,K,GCnB3EmS,yBAA2B,CAAC,EAGhC,SAASC,oBAAoBC,GAE5B,IAAIC,EAAeH,yBAAyBE,GAC5C,QAAqB/gB,IAAjBghB,EACH,OAAOA,EAAaxmB,QAGrB,IAAID,EAASsmB,yBAAyBE,GAAY,CAGjDvmB,QAAS,CAAC,GAOX,OAHAymB,oBAAoBF,GAAUG,KAAK3mB,EAAOC,QAASD,EAAQA,EAAOC,QAASsmB,qBAGpEvmB,EAAOC,OACf,CCnBA,IAAI2mB,oBAAsBL,oBAAoB,K","sources":["webpack://i-c-fn-head/./node_modules/balanced-match/index.js","webpack://i-c-fn-head/./node_modules/brace-expansion/index.js","webpack://i-c-fn-head/./src/basic_funx.ts","webpack://i-c-fn-head/./src/colorful.ts","webpack://i-c-fn-head/./src/extension.ts","webpack://i-c-fn-head/./src/faav.ts","webpack://i-c-fn-head/./src/fancy_f12.ts","webpack://i-c-fn-head/./src/fn_body_n_head.ts","webpack://i-c-fn-head/./src/goto_impl.ts","webpack://i-c-fn-head/./src/init.ts","webpack://i-c-fn-head/./src/quick_pick.ts","webpack://i-c-fn-head/./src/show_doc_symbs.ts","webpack://i-c-fn-head/external commonjs \"vscode\"","webpack://i-c-fn-head/external node-commonjs \"fs\"","webpack://i-c-fn-head/./node_modules/minimatch/dist/commonjs/assert-valid-pattern.js","webpack://i-c-fn-head/./node_modules/minimatch/dist/commonjs/ast.js","webpack://i-c-fn-head/./node_modules/minimatch/dist/commonjs/brace-expressions.js","webpack://i-c-fn-head/./node_modules/minimatch/dist/commonjs/escape.js","webpack://i-c-fn-head/./node_modules/minimatch/dist/commonjs/index.js","webpack://i-c-fn-head/./node_modules/minimatch/dist/commonjs/unescape.js","webpack://i-c-fn-head/webpack/bootstrap","webpack://i-c-fn-head/webpack/startup"],"sourcesContent":["'use strict';\nmodule.exports = balanced;\nfunction balanced(a, b, str) {\n if (a instanceof RegExp) a = maybeMatch(a, str);\n if (b instanceof RegExp) b = maybeMatch(b, str);\n\n var r = range(a, b, str);\n\n return r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + a.length, r[1]),\n post: str.slice(r[1] + b.length)\n };\n}\n\nfunction maybeMatch(reg, str) {\n var m = str.match(reg);\n return m ? m[0] : null;\n}\n\nbalanced.range = range;\nfunction range(a, b, str) {\n var begs, beg, left, right, result;\n var ai = str.indexOf(a);\n var bi = str.indexOf(b, ai + 1);\n var i = ai;\n\n if (ai >= 0 && bi > 0) {\n if(a===b) {\n return [ai, bi];\n }\n begs = [];\n left = str.length;\n\n while (i >= 0 && !result) {\n if (i == ai) {\n begs.push(i);\n ai = str.indexOf(a, i + 1);\n } else if (begs.length == 1) {\n result = [ begs.pop(), bi ];\n } else {\n beg = begs.pop();\n if (beg < left) {\n left = beg;\n right = bi;\n }\n\n bi = str.indexOf(b, i + 1);\n }\n\n i = ai < bi && ai >= 0 ? ai : bi;\n }\n\n if (begs.length) {\n result = [ left, right ];\n }\n }\n\n return result;\n}\n","var balanced = require('balanced-match');\n\nmodule.exports = expandTop;\n\nvar escSlash = '\\0SLASH'+Math.random()+'\\0';\nvar escOpen = '\\0OPEN'+Math.random()+'\\0';\nvar escClose = '\\0CLOSE'+Math.random()+'\\0';\nvar escComma = '\\0COMMA'+Math.random()+'\\0';\nvar escPeriod = '\\0PERIOD'+Math.random()+'\\0';\n\nfunction numeric(str) {\n return parseInt(str, 10) == str\n ? parseInt(str, 10)\n : str.charCodeAt(0);\n}\n\nfunction escapeBraces(str) {\n return str.split('\\\\\\\\').join(escSlash)\n .split('\\\\{').join(escOpen)\n .split('\\\\}').join(escClose)\n .split('\\\\,').join(escComma)\n .split('\\\\.').join(escPeriod);\n}\n\nfunction unescapeBraces(str) {\n return str.split(escSlash).join('\\\\')\n .split(escOpen).join('{')\n .split(escClose).join('}')\n .split(escComma).join(',')\n .split(escPeriod).join('.');\n}\n\n\n// Basically just str.split(\",\"), but handling cases\n// where we have nested braced sections, which should be\n// treated as individual members, like {a,{b,c},d}\nfunction parseCommaParts(str) {\n if (!str)\n return [''];\n\n var parts = [];\n var m = balanced('{', '}', str);\n\n if (!m)\n return str.split(',');\n\n var pre = m.pre;\n var body = m.body;\n var post = m.post;\n var p = pre.split(',');\n\n p[p.length-1] += '{' + body + '}';\n var postParts = parseCommaParts(post);\n if (post.length) {\n p[p.length-1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n\n parts.push.apply(parts, p);\n\n return parts;\n}\n\nfunction expandTop(str) {\n if (!str)\n return [];\n\n // I don't know why Bash 4.3 does this, but it does.\n // Anything starting with {} will have the first two bytes preserved\n // but *only* at the top level, so {},a}b will not expand to anything,\n // but a{},b}c will be expanded to [a}c,abc].\n // One could argue that this is a bug in Bash, but since the goal of\n // this module is to match Bash's rules, we escape a leading {}\n if (str.substr(0, 2) === '{}') {\n str = '\\\\{\\\\}' + str.substr(2);\n }\n\n return expand(escapeBraces(str), true).map(unescapeBraces);\n}\n\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\n\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n\nfunction expand(str, isTop) {\n var expansions = [];\n\n var m = balanced('{', '}', str);\n if (!m) return [str];\n\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n var pre = m.pre;\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n\n if (/\\$$/.test(m.pre)) { \n for (var k = 0; k < post.length; k++) {\n var expansion = pre+ '{' + m.body + '}' + post[k];\n expansions.push(expansion);\n }\n } else {\n var isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n var isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n var isSequence = isNumericSequence || isAlphaSequence;\n var isOptions = m.body.indexOf(',') >= 0;\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,(?!,).*\\}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n return expand(str);\n }\n return [str];\n }\n\n var n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n } else {\n n = parseCommaParts(m.body);\n if (n.length === 1) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand(n[0], false).map(embrace);\n if (n.length === 1) {\n return post.map(function(p) {\n return m.pre + n[0] + p;\n });\n }\n }\n }\n\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n var N;\n\n if (isSequence) {\n var x = numeric(n[0]);\n var y = numeric(n[1]);\n var width = Math.max(n[0].length, n[1].length)\n var incr = n.length == 3\n ? Math.abs(numeric(n[2]))\n : 1;\n var test = lte;\n var reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n var pad = n.some(isPadded);\n\n N = [];\n\n for (var i = x; test(i, y); i += incr) {\n var c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\')\n c = '';\n } else {\n c = String(i);\n if (pad) {\n var need = width - c.length;\n if (need > 0) {\n var z = new Array(need + 1).join('0');\n if (i < 0)\n c = '-' + z + c.slice(1);\n else\n c = z + c;\n }\n }\n }\n N.push(c);\n }\n } else {\n N = [];\n\n for (var j = 0; j < n.length; j++) {\n N.push.apply(N, expand(n[j], false));\n }\n }\n\n for (var j = 0; j < N.length; j++) {\n for (var k = 0; k < post.length; k++) {\n var expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion)\n expansions.push(expansion);\n }\n }\n }\n\n return expansions;\n}\n\n","import * as vscode from 'vscode';\nimport { uri_to_file_of_opts } from './init';\nclass set_cmd_type {\n static v: string = \"rgx\";\n}\nexport function prnt(msg: string) {\n console_msg.show(msg);\n}\nexport class console_msg {\n static #outputChannel = vscode.window.createOutputChannel('i-c-fn-head');\n static show(msg: string) {\n this.#outputChannel.appendLine(msg);\n this.#outputChannel.show();\n }\n}\nexport function getCMD(set_placeholder0?: string | null, _txt?: string | undefined | null, cmd_type?: string): RegExp[] | null {\n const txt = _txt ? _txt : vscode.window.activeTextEditor?.document.getText();\n set_cmd_type.v = cmd_type ? cmd_type : set_cmd_type.v;\n cmd_rgx.set_collect_rgx_from_doc();\n if (txt == undefined) { return null}\n const ret = set_placeholder0 ? cmd_rgx._collect_rgx_from_doc(txt, set_placeholder0) : cmd_rgx._collect_rgx_from_doc(txt); \n let phldr = set_placeholder0 ? set_placeholder0 : \"no phldr\";\n prnt(\"calc num of cmds: \" + ret.length.toString());\n // prnt (ewt)\n return ret;\n}\nexport class cmd_rgx {\n static collect_rgx_from_doc: RegExp = /\\/\\/\\s*rgx:\\s*(\\/.*:::[gmis]*)\\s*\\/\\//g;\n static placeholder0: string = \"@663@\";\n static placeholder0_max_len: number = 200;\n static open_rgx: string = \"/\";\n static close_rgx: string = \":::\";\n static set_collect_rgx_from_doc(\n open_rgx?: string,\n close_rgx?: string,\n ): RegExp {\n this.open_rgx = open_rgx ?? this.open_rgx;\n this.close_rgx = close_rgx ?? this.close_rgx;\n let cmd_type = set_cmd_type.v ?? \"rgx\";\n let construct_rgx: string = \"//\\\\s*\" + cmd_type + \":\\\\s*(\" + this.open_rgx + \".*\" + this.close_rgx + \"[gmis]*)\\\\s*//\";\n this.collect_rgx_from_doc = new RegExp(construct_rgx, \"g\");\n prnt(\"set_collect_rgx_from_doc: \"+this.collect_rgx_from_doc.source);\n return this.collect_rgx_from_doc;\n }\n static _collect_rgx_from_doc(txt: string, set_placeholder0?: string): RegExp[] {\n if (set_placeholder0) { return this._collect_rgx_from_doc0(txt, set_placeholder0) }\n let m: RegExpExecArray | null;\n let ret: RegExp[] = [];\n while ((m = this.collect_rgx_from_doc.exec(txt)) != null) {\n let try_it = this.strn_2_rgx(m[1]);\n if (try_it == null) {\n prnt(\"_collect_rgx_from_doc: try_it is null\");\n break\n }\n prnt(\"_collect_rgx_from_doc:\" + m[1]);\n ret.push(try_it);\n }\n return ret;\n }\n static _collect_rgx_from_doc0(txt: string, set_placeholder0: string): RegExp[] {\n let m: RegExpExecArray | null;\n let ret: RegExp[] = [];\n while ((m = this.collect_rgx_from_doc.exec(txt)) != null) {\n let _m = m[1].replaceAll(this.placeholder0, set_placeholder0);\n let try_it = this.strn_2_rgx(_m);\n prnt(\"1st class cmd_rgx\");\n if (try_it == null) {\n prnt(\"_collect_rgx_from_doc: try_it is null\");\n break\n }\n prnt(\"_collect_rgx_from_doc:\" + m[1]);\n ret.push(try_it);\n }\n return ret;\n }\n static strn_2_rgx(strn: string): RegExp | null {\n let check_end_of_rgx = this.close_rgx + \"[gmis]*$\";\n let flags = strn.match(new RegExp(check_end_of_rgx));\n let _flags = flags != null ? flags[0].slice(this.close_rgx.length) : \"\";\n let regex = strn.slice(1).replaceAll(this.close_rgx + _flags, \"\");\n try {\n let ret = new RegExp(regex, _flags);\n prnt(\"strn to rgx: \" + ret.source + \" \" + ret.flags);\n return ret;\n } catch (error) {\n const msg = error instanceof Error ? error.message : String(error);\n vscode.window.showInformationMessage(msg);\n return null;\n }\n }\n}\nexport async function exclude_paths(uris: vscode.Uri[]): Promise<vscode.Uri[] | undefined> {\n try {\n let ret: vscode.Uri[] = []; \n const file_of_opts = await uri_to_file_of_opts();\n const txt = (await vscode.workspace.openTextDocument(file_of_opts[0])).getText();\n prnt(txt);\n let exclude_paths0 = getCMD(\n null,\n txt,\n \"exclude_path\"\n );\n if (exclude_paths0 == null) { return; }\n for (let exc of exclude_paths0) {\n ret = exclude_path(uris, exc);\n }\n return ret.length == 0? uris: ret;\n } catch (err) {\n prnt(String(err))\n return\n }\n}\nfunction exclude_path(uris: vscode.Uri[], rgx: RegExp): vscode.Uri[] {\n let ret: vscode.Uri[] = [];\n for (let uri of uris) {\n prnt(rgx.source);\n if (!uri.fsPath.match(rgx)) { ret.push (uri)}\n }\n return ret;\n}","import * as vscode from 'vscode';\nimport { minimatch } from 'minimatch';\n\ntype Configuration = {\n paths?: string[];\n rules?: Rule[];\n};\nexport function extra_activate(): string {\n return activate_;\n}\nconst activate_: string = `\n // console.log('Extension \"color-my-text\" is activated.');\n\n let allConfigData: ConfigData[] = [];\n\n // todoEditors need (re)decoration; doneEditors are already up to date.\n // Tracking both avoids re-decorating unchanged editors when unrelated ones become visible.\n let todoEditors: vscode.TextEditor[] = [];\n let doneEditors: vscode.TextEditor[] = [];\n\n // Disposes old decoration types and rebuilds allConfigData from current settings.\n function resetDecorations(): void {\n todoEditors = vscode.window.visibleTextEditors.slice();\n doneEditors = [];\n\n allConfigData.forEach(configData => configData.ruleData.forEach(ruleData => ruleData.decorationType.dispose()));\n\n const configurations = vscode.workspace.getConfiguration('i_c_fn_head').get<Configuration[]>('configurations');\n allConfigData = toArray(configurations).map(configuration => ({\n globs: toArray(configuration.paths),\n ruleData: toArray(configuration.rules).map(buildRuleData),\n }));\n }\n\n // Applies decorations to all queued editors. Runs on a 500ms timer to batch rapid edits.\n\n\n vscode.workspace.onDidChangeConfiguration(\n event => {\n if (event.affectsConfiguration('i_c_fn_head.configurations')) {\n resetDecorations();\n }\n },\n null,\n context.subscriptions);\n\n vscode.window.onDidChangeVisibleTextEditors(\n visibleEditors => {\n // Queue newly visible editors; prune editors that were closed.\n todoEditors = visibleEditors.filter(editor => !doneEditors.includes(editor));\n doneEditors = doneEditors.filter(editor => visibleEditors.includes(editor));\n updateDecorations();\n },\n null,\n context.subscriptions);\n\n vscode.workspace.onDidChangeTextDocument(\n event => {\n // Re-queue any visible editor showing the changed document.\n vscode.window.visibleTextEditors.forEach(visibleEditor => {\n if (visibleEditor.document === event.document && !todoEditors.includes(visibleEditor)) {\n todoEditors.push(visibleEditor);\n }\n });\n\n doneEditors = doneEditors.filter(editor => !todoEditors.includes(editor));\n },\n null,\n context.subscriptions);\n\n resetDecorations();\n function updateDecorations(): void {\n return _updateDecorations(\n allConfigData,\n todoEditors,\n doneEditors\n );\n }\n const intervalId = setInterval(updateDecorations, 500);\n context.subscriptions.push({ dispose: () => clearInterval(intervalId) });\n\n`\ntype Rule = {\n patterns?: string[];\n color?: string;\n matchCase?: boolean;\n multiLine?: boolean;\n bold?: boolean;\n italic?: boolean;\n underline?: boolean;\n strikeThrough?: boolean;\n};\n\n// Precomputed data for a single rule.\ntype RuleData = {\n decorationType: vscode.TextEditorDecorationType;\n regexes: RegExp[];\n multiLine: boolean;\n};\n\n// Precomputed data for a single configuration entry, rebuilt whenever settings change.\ntype ConfigData = {\n globs: string[];\n ruleData: RuleData[];\n};\n\nfunction toArray<T>(value: T[] | undefined): T[] {\n return Array.isArray(value) ? value : [];\n}\n\n// ANSI color names map to VS Code terminal theme tokens ('terminal.ansi<Name>').\nconst ansiColorNames = new Set<string>([\n 'Black', 'Blue', 'BrightBlack', 'BrightBlue', 'BrightCyan', 'BrightGreen',\n 'BrightMagenta', 'BrightRed', 'BrightWhite', 'BrightYellow',\n 'Cyan', 'Green', 'Magenta', 'Red', 'White', 'Yellow',\n]);\n\nfunction buildRuleData(rule: Rule): RuleData {\n const color = typeof rule.color !== 'string' ? undefined\n : ansiColorNames.has(rule.color) ? new vscode.ThemeColor('terminal.ansi' + rule.color)\n : rule.color;\n\n // 'none' explicitly removes any theme-inherited decoration when either flag is false.\n const textDecoration =\n rule.underline === true && rule.strikeThrough === true ? 'underline line-through'\n : rule.underline === true ? 'underline'\n : rule.strikeThrough === true ? 'line-through'\n : rule.underline === false || rule.strikeThrough === false ? 'none'\n : undefined;\n\n const decorationType = vscode.window.createTextEditorDecorationType({\n color,\n fontWeight: typeof rule.bold !== 'boolean' ? undefined : rule.bold ? 'bold' : 'normal',\n fontStyle: typeof rule.italic !== 'boolean' ? undefined : rule.italic ? 'italic' : 'normal',\n textDecoration,\n });\n\n const flags = 'g' + (rule.matchCase === true ? '' : 'i') + (rule.multiLine === true ? 's' : '') + 'u';\n\n const regexes = toArray(rule.patterns).flatMap(pattern => {\n try {\n return [new RegExp(pattern, flags)];\n } catch {\n return []; // Skip invalid regex patterns.\n }\n });\n\n return { decorationType, regexes, multiLine: rule.multiLine === true };\n}\n\nexport function activate0(context: vscode.ExtensionContext): void {\n // console.log('Extension \"color-my-text\" is activated.');\n\n let allConfigData: ConfigData[] = [];\n\n // todoEditors need (re)decoration; doneEditors are already up to date.\n // Tracking both avoids re-decorating unchanged editors when unrelated ones become visible.\n let todoEditors: vscode.TextEditor[] = [];\n let doneEditors: vscode.TextEditor[] = [];\n\n // Disposes old decoration types and rebuilds allConfigData from current settings.\n function resetDecorations(): void {\n todoEditors = vscode.window.visibleTextEditors.slice();\n doneEditors = [];\n\n allConfigData.forEach(configData => configData.ruleData.forEach(ruleData => ruleData.decorationType.dispose()));\n\n const configurations = vscode.workspace.getConfiguration('i_c_fn_head').get<Configuration[]>('configurations');\n allConfigData = toArray(configurations).map(configuration => ({\n globs: toArray(configuration.paths),\n ruleData: toArray(configuration.rules).map(buildRuleData),\n }));\n }\n\n // Applies decorations to all queued editors. Runs on a 500ms timer to batch rapid edits.\n \n\n vscode.workspace.onDidChangeConfiguration(\n event => {\n if (event.affectsConfiguration('i_c_fn_head.configurations')) {\n resetDecorations();\n }\n },\n null,\n context.subscriptions);\n\n vscode.window.onDidChangeVisibleTextEditors(\n visibleEditors => {\n // Queue newly visible editors; prune editors that were closed.\n todoEditors = visibleEditors.filter(editor => !doneEditors.includes(editor));\n doneEditors = doneEditors.filter(editor => visibleEditors.includes(editor));\n updateDecorations();\n },\n null,\n context.subscriptions);\n\n vscode.workspace.onDidChangeTextDocument(\n event => {\n // Re-queue any visible editor showing the changed document.\n vscode.window.visibleTextEditors.forEach(visibleEditor => {\n if (visibleEditor.document === event.document && !todoEditors.includes(visibleEditor)) {\n todoEditors.push(visibleEditor);\n }\n });\n\n doneEditors = doneEditors.filter(editor => !todoEditors.includes(editor));\n },\n null,\n context.subscriptions);\n\n resetDecorations();\n function updateDecorations(): void {\n return _updateDecorations(\n allConfigData,\n todoEditors,\n doneEditors\n );\n }\n const intervalId = setInterval(updateDecorations, 500);\n context.subscriptions.push({ dispose: () => clearInterval(intervalId) });\n}\nfunction _updateDecorations(\n allConfigData: &ConfigData[],\n todoEditors: & vscode.TextEditor[],\n doneEditors: vscode.TextEditor[]\n): void {\n if (allConfigData.every(configData => configData.ruleData.length === 0)) { return; }\n if (todoEditors.length === 0) { return; }\n\n todoEditors.forEach(editor => {\n const filePath = vscode.workspace.asRelativePath(editor.document.fileName);\n\n // Collect rule data from all configurations whose path globs match this editor's file.\n const matchingRuleData = allConfigData.flatMap(configData =>\n configData.globs.some(glob => {\n // A bare filename (no path separators) is matched against any directory level.\n const pattern = glob.includes('/') || glob.includes('\\\\') ? glob : '**/' + glob;\n return minimatch(filePath, pattern, { nocase: process.platform === 'win32' });\n }) ? configData.ruleData : []);\n\n if (matchingRuleData.length === 0) { return; }\n\n let documentText: string | undefined;\n\n matchingRuleData.forEach(({ decorationType, regexes, multiLine }) => {\n const ranges: vscode.Range[] = [];\n\n if (multiLine) {\n documentText ??= editor.document.getText();\n for (const regex of regexes) {\n for (const match of documentText.matchAll(regex)) {\n if (match.index === undefined || match[0].length === 0) { continue; }\n const startPos = editor.document.positionAt(match.index);\n const endPos = editor.document.positionAt(match.index + match[0].length);\n ranges.push(new vscode.Range(startPos, endPos));\n }\n }\n } else {\n for (const regex of regexes) {\n for (let lineNum = 0; lineNum < editor.document.lineCount; lineNum++) {\n for (const match of editor.document.lineAt(lineNum).text.matchAll(regex)) {\n if (match.index === undefined || match[0].length === 0) { continue; }\n ranges.push(new vscode.Range(lineNum, match.index, lineNum, match.index + match[0].length));\n }\n }\n }\n }\n\n editor.setDecorations(decorationType, ranges);\n });\n\n doneEditors.push(editor);\n });\n\n todoEditors = [];\n}","// The module 'vscode' contains the VS Code extensibility API\n// Import the module and reference it with the alias vscode in your code below\nimport * as vscode from 'vscode';\nimport { AccessibilityInformation as wa } from 'vscode';\nimport { activate0 as colors } from './colorful';\nimport { extra_activate } from './colorful';\nimport { writeFileSync, readFileSync, copyFileSync, closeSync, existsSync, rmSync } from \"fs\";\nimport { menu } from \"./quick_pick\";\nimport { i_c_fn_head_opts } from './faav';\nimport {init } from './init'\nexport function activate11(context: vscode.ExtensionContext) {\n\t//eval(extra_activate());\n\tlet tru = true;\n\twhile (tru) {\n\t\tmenu();\n\t}\n\t//return;\n}\nexport async function activate(context: vscode.ExtensionContext) {\n\t//eval(extra_activate());\n\tlet res = false;\n\ttry {\n\t\tawait init(context);\n\t\tres = sync_bkp.raw_writeBkp(i_c_fn_head_opts.path_to_conf, null, \"/tmp/tst00\");\n\t\tsync_bkp.raw_writeBkp(\"tst\", null, \"/tmp/tst0\");\n\t\tconsole.log(res);\n\t}\n\tcatch {\n\t\tconsole.error(\"err\");\n\t}\n\tconst disposable = vscode.commands.registerCommand('i-c-fn-head.helloWorld', () => {\n\t\t// The code you place here will be executed every time your command is executed\n\t\t// Display a message box to the user\n\t\tvscode.window.showInformationMessage('Hello World from i_c_fn_head!');\n\t});\n\tcontext.subscriptions.push(disposable);\n\tconst disposable0 = vscode.commands.registerCommand('extension.onUpArrowPress', () => {\n\t\tvscode.window.showInformationMessage('up Key Press Detected!');\n\t});\n\n\tcontext.subscriptions.push(disposable0);\n\t\n\t//\tvscode.window.onDidChangeTextEditorSelection(handleChangeSel);\n\t/*\tconst disposable1 = vscode.commands.registerCommand('extension.getCursorPosition', () => {\n\t\t\tconst editor = vscode.window.activeTextEditor;\n\t\n\t/*\t\tif (editor) {\n\t\t\t\tconst cursorPosition = editor.selection.active; // Get the active cursor position\n\t\t\t\tconsole.log('Cursor Position:', cursorPosition); // Log the position\n\t\t\t\tvscode.window.showInformationMessage(`Cursor Position: Line ${cursorPosition.line + 1}, Character ${cursorPosition.character + 1}`);\n\t\t\t} else {\n\t\t\t\tvscode.window.showInformationMessage('No active editor found.');\n\t\t\t} \n\t\t}); \n\t\n\t\tcontext.subscriptions.push(disposable1); */\n}\n\n// This method is called when your extension is deactivated\nexport function deactivate() { }\n\nexport function select_lang_n_tst_fn_head(): RegExp | null { //RegExpExecArray | null {\n\tconst langId = vscode.window.activeTextEditor?.document.uri.fsPath ?? \"\";\n\tlet regex = /rs$|c$|cpp$|d$/g;\n\tlet lang: string = regex.exec(langId)?.[0] ?? \"\";\n\tconst msg = \"Active lang: \" + langId?.toString();\n\tswitch (lang) {\n\t\tcase \"c\": { return c_cpp_d_head() }\n\t\tcase \"cpp\": { return c_cpp_d_head() }\n\t\tcase \"d\": { return c_cpp_d_head() }\n\t\tcase \"rs\": { return rust_head() }\n\t}\n\t//\tprnt(msg);\n\treturn null\n}\n\nexport function c_cpp_d_head(): RegExp {\n\tconst regex: RegExp = /^[^+\\-=]*\\(/;//gm;\n\treturn regex\n}\nexport function rust_head(): RegExp {\n\tconst regex: RegExp = /(^\\s*(.*)?\\s*fn\\s+(\\w+)\\s*\\(([^)]*)\\)\\s*(->\\s*\\w+)?\\s*{?$)/m\n\treturn regex;\n}\nexport function rebuild_doc(from: number, doc: string[]): string {\n\tlet ret: string = \"\";\n\tfor (let x = from; x < doc.length; x++) {\n\t\tret += doc[x];\n\t}\n\treturn ret;\n}\nexport class skip_ln {\n\tarr: RegExp[] = []\n\t#ret: boolean = false;\n\trun(strn: string): boolean {\n\t\tthis.#ret = false;\n\t\tfor (let i = 0; i < this.arr.length; i++) {\n\t\t\tthis.#ret = this.#ret || strn.match(this.arr[i]) != null;\n\t\t}\n\t\treturn this.#ret;\n\t}\n}\nexport function dont_clobbe_line_w_curly_bracket(txt: string | string[], uri: vscode.Uri) {\n\tif (sync_bkp.file_was_bkuped7(uri.fsPath)) { return; }\n\tlet ret: string = \"\";\n\tlet reformat = false;\n\tlet _txt = typeof txt == \"string\" ? txt.split(\"\\n\") : txt; //???\n\tconst one_line_comment: RegExp = /^[/]{2}/;\n\tconst open_comment: RegExp = /^\\/\\*/;\n\tconst close_comment: RegExp = /\\*\\/$/;\n\tlet within_comment = false;\n\tlet prev_strn = \"\";\n\t_txt.forEach(function (strn0: string) {\n\t\tlet pad_len = count_spaces_from_left(strn0);\n\t\tlet strn = strn0.trim();\n\t\tif (one_line_comment.test(strn)) {\n\t\t\tret += strn + \"\\n\";\n\t\t\treturn;\n\t\t}\n\t\tif (!within_comment) { within_comment = open_comment.test(strn); }\n\t\tif (within_comment) {\n\t\t\tif (close_comment.test(strn)) {\n\t\t\t\twithin_comment = false;\n\t\t\t}\n\t\t\tret += strn + \"\\n\";\n\t\t\treturn;\n\t\t}\n\t\t/*if (strn[0] == \"{\" && strn.length > 1) {\n\t\t\tstrn = \"{\" + \"\\n\" + strn.substring(1);\n\t\t\treformat = true;\n\t\t}\n\t\tif (strn.charAt(strn.length - 1) == \"}\" && strn.length > 1) {\n\t\t\tstrn = strn.substring(0, strn.length - 1) + \"\\n\" + \"}\";\n\t\t\treformat = true;\n\t\t}*/\n\t\tprev_strn = strn;\n\t\tstrn = exclude_comments_from_ln(strn);\n\t\tif (strn.length != prev_strn.length) {\n\t\t\treformat = true;\n\t\t\tret += \"\\n\" + strn;\n\t\t\treturn;\n\t\t}\n\t\tif (strn.length > 0) {\n\t\t\tret += \"\\n\" + pad_strn_from_left(strn, pad_len, \" \");\n\t\t}\n\t});\n\tif (reformat) {\n\t\tsync_bkp.writeBkp(\n\t\t\tret,\n\t\t\turi\n\t\t);\n\t}\n}\nexport function count_spaces_from_left(strn: & string): number {\n\tfor (let x = 0; x < strn.length; x++) {\n\t\tif (strn[x] != \" \") { return x; }\n\t}\n\treturn 0\n}\nexport function exclude_comments_from_ln(ln0: & string): string {\n\tconst one_line_comment: RegExp = /^[/]{2}/;\n\tconst open_comment: RegExp = /^\\/\\*/;\n\tlet ret = \"\";\n\tlet pad_len = count_spaces_from_left(ln0);\n\tlet ln: string | string[] = ln0.replaceAll(\"//\", \"<<>//\").replaceAll(\"/*\", \"<<>\\n/*\");\n\tln = ln.split(\"<<>\");\n\tlet open_curly = \"\";\n\tlet close_curly = \"\";\n\tln.forEach(function (strn: string) {\n\t\tif (!one_line_comment.test(strn) && !open_comment.test(strn)) {\n\t\t\topen_curly = \"\\n\" + \" \".repeat(pad_len) + \"{\";\n\t\t\tclose_curly = \"\\n\" + \" \".repeat(pad_len) + \"}\";\n\t\t\tstrn.replaceAll(\"{\", open_curly).replaceAll(\"}\", close_curly);\n\t\t}\n\t\tret += \" \".repeat(pad_len) + strn;\n\t});\n\treturn ret;\n}\nexport function pad_strn_from_left(strn: & string, pad_len: number, pad: string): string {\n\tlet padding = \"\";\n\tfor (let y = 0; y < pad_len; y++) {\n\t\tpadding += pad;\n\t}\n\treturn padding + strn;\n}\nclass sync_bkp {\n\tstatic bkuped: string[] = [];\n\tstatic suffix: string = \".YourOriginalFile\";\n\tstatic bkp_source_file(path0: vscode.Uri | string): boolean {\n\t\tlet path = typeof path0 == \"string\" ? path0 : path0.fsPath;\n\t\tif (this.file_was_bkuped7(path)) { return true; }\n\t\tlet new_name = path + this.suffix;\n\t\tcopyFileSync(path, new_name);\n\t\tlet ret = this.compare_files(path, new_name);\n\t\tif (ret) {\n\t\t\tthis.bkuped.push(new_name);\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic file_was_bkuped7(path0: string): boolean {\n\t\tlet path = path0 + this.suffix;\n\t\tif (this.bkuped.length == 0) { return false; }\n\t\tlet ret: boolean = false;\n\t\tthis.bkuped.forEach(function (strn: string, indx: number, arr: string[]) {\n\t\t\tif (strn == path) { ret = true; return; }\n\t\t});\n\t\tif (!ret) {\n\t\t\tif (existsSync(path)) {\n\t\t\t\tthis.bkuped.push(path);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic compare_files(_1st: string, _2nd: string): boolean {\n\t\tlet open_1st: string = \"\";\n\t\tlet open_2nd: string = \"\";\n\t\ttry {\n\t\t\topen_1st = readFileSync(\n\t\t\t\t_1st,\n\t\t\t\t{ encoding: \"utf-8\", flag: \"r\" },\n\t\t\t);\n\t\t}\n\t\tcatch (err) {\n\t\t\tlet msg = \"File: \" + _1st + \" got err: \" + err + \"\\n\";\n\t\t\tconsole.log(msg);\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\topen_2nd = readFileSync(\n\t\t\t\t_2nd,\n\t\t\t\t{ encoding: \"utf-8\", flag: \"r\" },\n\t\t\t);\n\t\t}\n\t\tcatch (err) {\n\t\t\tlet msg = \"File: \" + _2nd + \" got err: \" + err + \"\\n\";\n\t\t\tconsole.log(msg);\n\t\t\treturn false;\n\t\t}\n\t\tif (open_1st == open_2nd) { return true; }\n\t\treturn false;\n\t}\n\tstatic writeBkp(data: string, uri?: vscode.Uri | null, path0?: string): boolean {\n\t\tlet path: string = uri?.fsPath ?? path0 ?? \"\";\n\t\tif (path == \"\") { return false; }\n\t\tif (!this.bkp_source_file(path)) { return false; }\n\t\twriteFileSync(\n\t\t\tpath,\n\t\t\tdata\n\t\t);\n\t\treturn true;\n\t}\n\tstatic raw_writeBkp(data: string, uri?: vscode.Uri | null, path0?: string): boolean {\n\t\tlet path: string = uri?.fsPath ?? path0 ?? \"\";\n\t\t//if (path == \"\") { return false; }\n\t\t//if (!this.bkp_source_file(path)) { return false; }\n\t\twriteFileSync(\n\t\t\tpath,\n\t\t\tdata\n\t\t);\n\t\treturn true;\n\t}\n}\n//fn\n/*\n>>>>>>>>>>>>>>>>>>>>>>>>> copag\n https://drive.google.com/file/d/15tU9cVEKlcbelByGuzo7UrZd32ckruUZ/view?usp=sharing\n https://disk.yandex.ru/d/DCedGk0BJB9YOw\n >>>>>>>>>>>>>>>>>>>>>>> BKP\n https://disk.yandex.ru/d/H-WL_Rbq3F3DtB\n https://disk.yandex.ru/d/06mg7S_1sEcQwQ\n https://drive.google.com/file/d/1gQ4iW7uc5e9dd3lQcZ146Izy6hZI87He/view?usp=sharing\n https://drive.google.com/file/d/0B0ZfQGOhsgRtbWQ2bkh6VFdCY2M/view?usp=sharing&resourcekey=0-qWG1G78Mp0KhxW_b9-0FnA\n https://disk.yandex.ru/d/457kWno9UEXZxQ\n https://drive.google.com/file/d/1kGDzmRraRZBTgs3mnnHWlC6aUGsppSjb/view?usp=sharing\n*/\n// https://github.com/JatinSanghvi/color-my-text-vscode/blob/main/src/extension.ts","import { GlobPattern } from \"vscode\";\nimport * as vsc from 'vscode';\nimport { prnt } from \"./basic_funx\";\nexport function langsName(): {name: string, file_exts: string []} {\n let langId = vsc.window.activeTextEditor?.document.languageId;\n if (langId == undefined) {\n return { name: \"\", file_exts: [] };\n }\n switch (langId.toLowerCase()) {\n case \"c\": { return { name: \"C\", file_exts: [\"c\", \"h\"] }; }\n case \"d\": { return { name: \"D\", file_exts: [\"d\"] }; }\n case \"rust\": { return { name: \"Rust\", file_exts: [\"rs\"] }; }\n case \"cpp\": { return { name: \"CPP\", file_exts: [\"cpp\", \"hpp\", \"h\"] }; }\n default: { return { name: \"\", file_exts: [] }; }\n }\n}\nexport class restrict_search {\n static max_num_of_res: number = 2000;\n static exclude_paths: GlobPattern | null | undefined = \"**/(tests|build)/**\";\n}\nexport class i_c_fn_head_opts {\n static path_to_conf: string = \"\";\n static been_set: boolean = false;\n static provide_lang_C: boolean = false;\n static provide_lang_CPP: boolean = false;\n static provide_lang_D: boolean = false;\n static provide_lang_Rust: boolean = false;\n}\nexport class _block_head {\n name: string = \"\";\n lnum: number = 0;\n mark_fn_head: RegExp = /(fn\\s.*\\{?)|(\\sfn\\s.*\\{?)/;\n set_info(strn: string, i: number, fn_head?: RegExp) {\n if (strn.length <= 1) { return; }\n this.name = strn;\n this.lnum = i;\n this.mark_fn_head = fn_head ?? this.mark_fn_head;\n }\n get_head(name7: string, i: number): string {\n let _name7 = name7.trim();\n if (this.mark_fn_head.test(_name7)) { return _name7; }\n return this.name;\n }\n try_set_info(strn: string, i: number) {\n if (strn.length <= 1) { return; }\n let tst = this.mark_fn_head.test(strn);\n if (!tst) { return; }\n this.name = strn;\n this.lnum = i;\n }\n}\n","import * as vscode from 'vscode'\nimport { } from './faav';\nimport { prnt, cmd_rgx, getCMD, exclude_paths } from './basic_funx';\nimport { langsName, restrict_search } from './faav';\nexport enum F12_action {\n cont,\n stop\n}\nexport type pressF12 = { kind: \"F12_action\", v: F12_action };\nexport type EL = { kind: \"extra_locations\", v: vscode.Location[] };\nexport function new_EL(v?: vscode.Location[]): EL {\n let ret = v ? v : [] as vscode.Location [];\n return { kind: \"extra_locations\", v: ret };\n}\nexport function new_pressF12(v?: F12_action): pressF12 {\n let ret = v ? v : F12_action.cont;\n return { kind: \"F12_action\", v: ret };\n}\nexport async function handleExtraCMDs(set_placeholder0?: string): Promise <EL | pressF12> {\n let cmds: RegExp[] | null = set_placeholder0 ? getCMD(set_placeholder0, null, \"rgx\") : getCMD(null, null, \"rgx\"); \n let f12: pressF12 = new_pressF12();\n if (cmds == null) { f12.v = F12_action.cont; return f12 ; }\n let more_rgxs = await handle_rgx_cmd(cmds);\n if (more_rgxs.length > 0) { return new_EL(more_rgxs); }\n prnt(\"failed to collect extra locations\");\n return new_pressF12 (F12_action.cont);\n}\nasync function handle_rgx_cmd(cmds: RegExp[]): Promise <vscode.Location[]> {\n prnt(\"start handle_rgx_cmd\");\n const res: vscode.Location[] = [];\n let matches: RegExpStringIterator<RegExpExecArray> | null;\n let uris = await _a_get_files_in_workspace();\n uris = await exclude_paths(uris) ?? uris;\n prnt(\"num of pruned uris: \" + uris.length);\n let uri: vscode.Uri;\n for (uri of uris) {\n try {\n let doc = await vscode.workspace.openTextDocument(uri);\n if (doc == undefined) {\n prnt(\"failed to open \" + uri);\n continue;\n }\n let txt = doc.getText();\n for (let rgx of cmds) {\n matches = txt.matchAll(rgx);\n if (matches == null) { continue; }\n res.push(...calc_locations(matches, doc));\n }\n } catch (error) {\n prnt(\"doc: \" + uri.fsPath + \"err \" + String (error));\n }\n }\n return res;\n}\nfunction calc_locations(matches: RegExpStringIterator<RegExpExecArray>, doc: vscode.TextDocument): vscode.Location[] {\n let res: vscode.Location[] = []; \n let Start = new vscode.Position(0, 0);\n let End = new vscode.Position(0, 0);\n let _1st_ch_indx = 0;\n let txt = doc.getText();\n let uri = doc.uri;\n for (let m of matches) {\n let len = m[0].length;\n _1st_ch_indx = txt.indexOf(m[0], _1st_ch_indx + 1);\n if (_1st_ch_indx == -1) { break; }\n Start = doc.positionAt(_1st_ch_indx);\n End = doc.positionAt(_1st_ch_indx + len);\n res.push(new vscode.Location(uri, new vscode.Range(Start, End)));\n \n }\n return res;\n}\nfunction cursorPos(): vscode.Position | null {\n const editor = vscode.window.activeTextEditor;\n if (!editor) return null;\n const pos = editor.selection.active;\n // const line = pos.line;\n // const col = pos.character;\n return pos; \n}\nexport async function _a_get_files_in_workspace(): Promise <vscode.Uri[]> {\n let file_ext: vscode.GlobPattern = \"\";\n let uris: vscode.Uri[] = [];\n if (langsName().file_exts.length > 0) {\n for (let i = 0; i < langsName().file_exts.length; i++) {\n file_ext = \"**/*.\" + langsName().file_exts[i];\n prnt('update file_ext ' + file_ext);\n let uri = await vscode.workspace.findFiles(\n // '**/*.{langsName.file_exts}',\n file_ext,\n restrict_search.exclude_paths,\n restrict_search.max_num_of_res);\n uris.push(...uri);\n }\n }\n prnt(\"calc uris \" + uris.length);\n return uris;\n}\n/*\nfunction handleChangeSel(event: vscode.TextEditorSelectionChangeEvent) {\n console.log(\"Change in the text editor\");\n for (var i = 0; i < event.selections.length; i++) {\n var selection = event.selections[i];\n console.log(\"Start- Line: (\" + selection.start.line + \") Col: (\" + selection.start.character + \") End- Line: (\" + selection.end.line + \") Col: (\" + selection.end.character + \")\");\n }\n var scroll = vscode.workspace.getConfiguration(\"editorScroll\");\n console.log(event);\n var doc: vscode.TextDocument = vscode.workspace.textDocuments[0];\n let msg = \"status bar: \" + doc.getText();\n console.log(msg);\n}\nvscode.window.onDidChangeTextEditorSelection(handleChangeSel);\n*/","import * as vscode from 'vscode';\nimport { writeFileSync, readFileSync, copyFileSync, closeSync, existsSync, rmSync } from \"fs\";\nimport { _block_head} from './faav'\nexport function _c_fn_body(doc: string | string[], uri: vscode.Uri, symbols: & vscode.SymbolInformation[]) {\n let c_like: lang_element = new lang_element();\n c_like.exclude_strns = /(\\\"[\\s\\S]*?\\\")/gm\n let tmp_doc: string = Array.isArray(doc) ? function (arr: string[]): string {\n let ret: string = \"\";\n arr.forEach(function (strn: string) {\n ret += strn;\n });\n return ret;\n }(doc) : doc;\n let beeped_doc = bee_ep(tmp_doc, c_like.exclude_strns, \"#\");\n let lines: string[] = beeped_doc.split(\"\\n\");\n let orig_lines: string[] = typeof doc == \"string\" ? doc.split(\"\\n\") : doc;\n for (let i = 0; i < lines.length; i++) {\n lines[i] = lines[i].trim();\n }\n c_like.uri = uri;\n if (!c_like.set_lines(lines, orig_lines)) { return; }\n c_like.exclude_comments = /(\\/\\/.*)|(\\/\\*.*(\\/)?)/g;//|([\\\"\\'\\`].*[\\\"\\'\\`])/g;\n c_like.one_line_comment = /^[/]{2}/;\n c_like.one_line_block = /.*\\{.*\\}.*/;\n c_like.open_comment = /^\\/\\*/;\n c_like.close_comment = /\\*\\/$/;\n const butterfly = /\\}.*\\{/;\n c_like.open_block = /\\{/g;//(^\\{([/]{2})?(\\/\\*)?)|(\\{([/]{2})?(\\/[\\*]*)?$)/;\n c_like.close_block = /\\}/g;//(^\\}([/]{2})?(\\/\\*)?)|(\\}([/]{2})?(\\/[\\*]*)?$)/;\n c_like.tst_class = /^(class|struct|enum)\\s|\\s(class|struct|enum)\\s/i;\n c_like.block_head.mark_fn_head = /.*/;\n for (let i = 0; i < lines.length; i++) {\n if (c_like.one_line_comment7(i)) { continue; }\n if (c_like.within_comment7(i)) { continue; }\n //if (skip.run(lines[i])) { continue; }\n if (c_like.class_entry7(i)) { continue; }\n c_like.head7(i);\n if (c_like.one_line_block7(i)) { continue; }\n c_like.block_entry7(i);\n //if (c_like.block_entry7(i)) { continue; }\n if (c_like.close_class7(i)) { continue; }\n c_like.update_block_state(i);\n if (c_like.close_block7(i)) { continue; }\n //if (yea_class) { yea_class = false; continue; }\n }\n symbols.push(...c_like.symbols);\n}\nexport function bee_ep(txt0: string, rgx: RegExp, symb: string): string {\n //const alt_nl = \"/<==>/\";\n let txt = txt0//.replaceAll (\"\\n\", alt_nl);\n let for_beep: RegExpMatchArray | null = txt0.match(rgx);\n if (for_beep == null) { return txt; }\n let len = 0;\n for_beep.forEach(function (strn: string) {\n len = strn.length;\n let new_strn = \"\";\n for (let x = 0; x < len; x++) {\n if (strn[x] != \"\\n\") { new_strn += symb }\n else { new_strn += \"\\n\"; }\n }\n txt = txt.replace(strn, new_strn);\n });\n if (mode.dbg) {\n rmSync(\"/tmp/txt\");\n writeFileSync(\"/tmp/txt\", txt);\n }\n return txt;\n}\nexport function rust_fn_body(doc: string | string[], uri: vscode.Uri, symbols: & vscode.SymbolInformation[]) {\n const exclude_strns: RegExp = /(\\\"[\\s\\S]*?\\\")/gm\n let tmp_doc: string = Array.isArray(doc) ? function (arr: string[]): string {\n let ret: string = \"\";\n arr.forEach(function (strn: string) {\n ret += strn;\n });\n return ret;\n }(doc) : doc;\n let beeped_doc = bee_ep(tmp_doc, exclude_strns, \"#\");\n let lines: string[] = beeped_doc.split(\"\\n\");\n let orig_lines: string[] = typeof doc == \"string\" ? doc.split(\"\\n\") : doc;\n for (let i = 0; i < lines.length; i++) {\n lines[i] = lines[i].trim();\n }\n const exclude_comments: RegExp = /(\\/\\/.*)|(\\/\\*.*(\\/)?)/g;//|([\\\"\\'\\`].*[\\\"\\'\\`])/g;\n const one_line_comment: RegExp = /^[/]{2}/;\n const one_line_block: RegExp = /.*\\{.*\\}.*/;\n const open_comment: RegExp = /^\\/\\*/;\n const close_comment: RegExp = /\\*\\/$/;\n const butterfly = /\\}.*\\{/;\n const open_block: RegExp = /\\{/g;//(^\\{([/]{2})?(\\/\\*)?)|(\\{([/]{2})?(\\/[\\*]*)?$)/;\n const close_block: RegExp = /\\}/g;//(^\\}([/]{2})?(\\/\\*)?)|(\\}([/]{2})?(\\/[\\*]*)?$)/;\n const tst_class: RegExp = /.*(trait|struct|impl|enum)\\s/i;\n let opened_class = false;\n let within_comment: boolean = false;\n let within_quotes = false\n let start_class: number | null = null;\n let start_block: number | null = null;\n let block_state: number = 0;\n let sav_block_state = 0;\n let fn_head: string = \"\";\n let search_curlies: RegExpMatchArray | null = null;\n let ln: string;\n let no_comments = \"\";\n let block_head = new _block_head;\n let step_back = false;\n let step_back_was_used: boolean = false;\n for (let i = 0; i < lines.length; i++) {\n /*\tif (step_back_was_used) {\n step_back_was_used = false;\n step_back = false;\n }\n if (step_back) { i--; step_back_was_used = true; step_back = false; }*/\n ln = lines[i];\n if (one_line_comment.test(ln)) {\n continue;\n }\n if (!within_comment) { within_comment = open_comment.test(lines[i].trim()); }\n if (within_comment) {\n if (close_comment.test(ln.trim())) {\n within_comment = false;\n }\n continue;\n }\n if (start_class == null && block_state == 0) {\n if (tst_class.test(lines[i])) {\n if (open_block.test(lines[i])) {\n opened_class = true;\n }\n start_class = i;\n sav_block_state = block_state;\n continue;\n }\n }\n no_comments = lines[i].replaceAll(exclude_comments, \"\");\n block_head.try_set_info(no_comments, i);\n if (start_block == null && block_state == -1) {\n fn_head = block_head.name;\n start_block = i;\n }\n //if (one_line_block.test(ln) && block_state != 0) { continue; }\n if (one_line_block.test(ln) && block_state == 0 && block_head.name.length > 0) {\n add_symb(\n block_head.lnum,\n i,\n orig_lines[i],\n \"Function\",\n uri,\n symbols\n );\n block_head.name = \"\";\n continue;\n }\n //step_back = butterfly.test(lines[i]);\n if (start_class != null && block_state == 0 && close_block.test(lines[i])) {\n add_symb(\n start_class,\n i,\n orig_lines[start_class],\n \"Class\",\n uri,\n symbols\n );\n start_class = null;\n opened_class = false;\n continue;\n }\n block_state -= (search_curlies = no_comments.match(open_block)) != null ? search_curlies.length : 0;\n if (!opened_class && start_class != null && sav_block_state != block_state) {\n block_state += 1;\n opened_class = true;\n }\n block_state += (search_curlies = no_comments.match(close_block)) != null ? search_curlies.length : 0;\n //\tblock_head.set_info(lines[i], i);\n if (start_block != null && block_state == 0 && block_head.name.length > 0) {\n add_symb(\n block_head.lnum,\n i,\n block_head.name,\n \"Function\",\n uri,\n symbols\n );\n block_head.name = \"\";\n start_block = null;\n }\n }\n}\nexport function _rust_fn_body(doc: string | string[], uri: vscode.Uri, symbols: & vscode.SymbolInformation[]) {\n let rust: lang_element = new lang_element();\n rust.exclude_strns = /(\\\"[\\s\\S]*?\\\")/gm\n let tmp_doc: string = Array.isArray(doc) ? function (arr: string[]): string {\n let ret: string = \"\";\n arr.forEach(function (strn: string) {\n ret += strn;\n });\n return ret;\n }(doc) : doc;\n let beeped_doc = bee_ep(tmp_doc, rust.exclude_strns, \"#\");\n let lines: string[] = beeped_doc.split(\"\\n\");\n let orig_lines: string[] = typeof doc == \"string\" ? doc.split(\"\\n\") : doc;\n for (let i = 0; i < lines.length; i++) {\n lines[i] = lines[i].trim();\n }\n rust.uri = uri;\n if (!rust.set_lines(lines, orig_lines)) { return; }\n rust.exclude_comments = /(\\/\\/.*)|(\\/\\*.*(\\/)?)/g;//|([\\\"\\'\\`].*[\\\"\\'\\`])/g;\n rust.one_line_comment = /^[/]{2}/;\n rust.one_line_block = /.*\\{.*\\}.*/;\n rust.open_comment = /^\\/\\*/;\n rust.close_comment = /\\*\\/$/;\n const butterfly = /\\}.*\\{/;\n rust.open_block = /\\{/g;//(^\\{([/]{2})?(\\/\\*)?)|(\\{([/]{2})?(\\/[\\*]*)?$)/;\n rust.close_block = /\\}/g;//(^\\}([/]{2})?(\\/\\*)?)|(\\}([/]{2})?(\\/[\\*]*)?$)/;\n rust.tst_class = /^(trait(\\<)?|struct(\\<)?|(impl(\\<)?)|enum(\\<)?)|\\s(trait(\\<)?|struct(\\<)?|(impl(\\<)?)|enum(\\<)?)/i;\n //let skip: skip_ln = new skip_ln();\n //skip.arr.push(/.*!/gi);\n for (let i = 0; i < lines.length; i++) {\n if (rust.one_line_comment7(i)) { continue; }\n if (rust.within_comment7(i)) { continue; }\n //if (skip.run(lines[i])) { continue; }\n if (rust.class_entry7(i)) { continue; }\n rust.head7(i);\n if (rust.one_line_block7(i)) { continue; }\n rust.block_entry7(i);\n if (rust.close_class7(i)) { continue; }\n //if (yea_class) { yea_class = false; continue; }\n rust.update_block_state(i);\n if (rust.close_block7(i)) { continue; }\n }\n symbols.push(...rust.symbols);\n}\nexport function add_symb(\n startLine: number,\n endLine: number,\n objName: string,\n objType: string,\n uri: vscode.Uri,\n symbols: & vscode.SymbolInformation[]) {\n\n let set_rng = new vscode.Range(startLine, 0, endLine, 0);\n symbols.push(new vscode.SymbolInformation(\n objName,\n eval(\"vscode.SymbolKind.\" + objType),\n '',\n new vscode.Location(uri, set_rng)));\n}\nexport class lang_element {\n #privateVar: number = 0;\n exclude_strns: RegExp = /(\\\"[\\s\\S]*?\\\")/gm;\n exclude_comments: RegExp = /(\\/\\/.*)|(\\/\\*.*(\\/)?)/g;//|([\\\"\\'\\`].*[\\\"\\'\\`])/g;\n one_line_comment: RegExp = /^[/]{2}/;\n one_line_block: RegExp = /.*\\{.*\\}.*/;\n open_comment: RegExp = /^\\/\\*/;\n close_comment: RegExp = /(\\*\\/)$/;\n butterfly = /\\}.*\\{/;\n open_block: RegExp = /\\{/g;//(^\\{([/]{2})?(\\/\\*)?)|(\\{([/]{2})?(\\/[\\*]*)?$)/;\n close_block: RegExp = /\\}/g;//(^\\}([/]{2})?(\\/\\*)?)|(\\}([/]{2})?(\\/[\\*]*)?$)/;\n tst_class: RegExp = /.*(trait|struct|impl|enum)\\s/i;\n #opened_class: number | null = null;\n #within_comment: boolean = false;\n #within_quotes = false\n #start_class: number | null = null;\n #start_block: number | null = null;\n #block_state: number = 0;\n #sav_block_state = 0;\n #fn_head: string = \"\";\n #search_curlies: RegExpMatchArray | null = null;\n #no_comments = \"\";\n #lines: string[] = [];\n #orig_lines: string[] = [];\n block_head: _block_head = new _block_head;\n rloc: number = 0;\n uri: vscode.Uri | null = vscode.window.activeTextEditor?.document.uri ?? null;\n symbols: vscode.SymbolInformation[] = [];\n class_symbols: vscode.SymbolInformation[] = [];\n set_lines(arr: string[], orig: string[]): boolean {\n if (this.uri == null) { return false; }\n this.#lines = arr;\n this.#orig_lines = orig;\n this.rloc = orig.length;\n return true;\n }\n one_line_comment7(lnum: number): boolean {\n return this.one_line_comment.test(this.#lines[lnum]);\n }\n within_comment7(lnum: number): boolean {\n if (!this.#within_comment) { this.#within_comment = this.open_comment.test(this.#lines[lnum].trim()); }\n if (this.#within_comment) {\n if (this.close_comment.test(this.#lines[lnum].trim())) {\n this.#within_comment = false;\n return true;\n }\n }\n return this.#within_comment;\n }\n class_entry7(i: number): boolean {\n if (this.#start_class != null && this.#opened_class == null && this.open_block.test(this.#lines[i])) {\n this.#opened_class = i;\n return true;\n }\n if (this.#start_class == null && this.#block_state == 0) {\n //let res = this.#lines[i].match(this.tst_class);\n //if (res != null) {\n if (this.tst_class.test(this.#lines[i])) {\n if (this.#lines[i].match(this.open_block) != null) {\n //if (this.open_block.test(this.#lines[i])) {\n this.#opened_class = i;\n }\n this.#start_class = i;\n this.#sav_block_state = this.#block_state;\n }\n }\n return this.#start_class === i || this.#opened_class === i;\n }\n block_entry7(i: number): boolean {\n //\tthis.head7(i);\n if (this.#start_block == null && this.#block_state == -1) {\n this.#fn_head = this.block_head.name;\n this.#start_block = i;\n }\n return this.#start_block === i\n }\n one_line_block7(i: number): boolean | undefined {\n if (this.uri == null) { return undefined }\n if (this.one_line_block.test(this.#lines[i]) && this.#block_state == 0 && this.block_head.name.length > 0) {\n add_symb(\n this.block_head.lnum,\n i,\n this.#orig_lines[i],\n \"Function\",\n this.uri,\n this.symbols\n );\n this.block_head.name = \"\";\n return true;\n }\n return false\n }\n head7(i: number) {\n this.#no_comments = this.#lines[i].replaceAll(this.exclude_comments, \"\");\n if (this.#block_state != 0) { return; }\n this.block_head.try_set_info(this.#no_comments, i);\n }\n close_block7(i: number): boolean | undefined {\n if (this.uri == null) { return undefined }\n if (this.#start_block != null && this.#block_state == 0 && this.block_head.name.length > 0) {\n add_symb(\n this.block_head.lnum,\n i + 1,\n this.#orig_lines[this.block_head.lnum],\n \"Function\",\n this.uri,\n this.symbols\n );\n this.block_head.name = \"\";\n this.#start_block = null;\n return true;\n }\n return false\n }\n close_class7(i: number): boolean | undefined {\n if (this.uri == null) { return undefined }\n if (this.#start_class != null && this.#opened_class != null && this.#block_state == 0 && this.close_block.test(this.#lines[i])) {\n add_symb(\n this.#start_class,\n i + 1,\n this.#orig_lines[this.#start_class],\n \"Class\",\n this.uri,\n this.symbols\n );\n this.block_head.name = \"\";\n this.#start_class = null;\n this.#opened_class = null;\n this.#opened_class = null\n return true;\n }\n return false\n }\n update_block_state(i: number) {\n //\tthis.#no_comments = this.#lines[i].replaceAll(this.exclude_comments, \"\");\n //\tthis.block_head.try_set_info(this.#no_comments, i);\n this.#block_state -= (this.#search_curlies = this.#no_comments.match(this.open_block)) != null ? this.#search_curlies.length : 0;\n if (!this.#opened_class && this.#start_class != null && this.#sav_block_state != this.#block_state) {\n this.#block_state += 1;\n this.#opened_class = i;\n }\n this.#block_state += (this.#search_curlies = this.#no_comments.match(this.close_block)) != null ? this.#search_curlies.length : 0;\n }\n}\nexport function c_fn_body(doc: string, uri: vscode.Uri, symbols: & vscode.SymbolInformation[]) {\n let lines: string[] = doc.split(\"\\n\");\n for (let i = 0; i < lines.length; i++) {\n lines[i] = lines[i].trim();\n }\n const exclude_comments: RegExp = /(\\/\\/.*)|(\\/\\*.*(\\/)?)/g;//|([\\\"\\'\\`].*[\\\"\\'\\`])/g;\n const one_line_comment: RegExp = /^[/]{2}/;\n const one_line_block: RegExp = /.*\\{.*\\}.*/;\n const open_comment: RegExp = /^\\/\\*/;\n const count_quotes: RegExp = /[\\\"\\'\\`]+/g;\n let quote_state: number = 0;\n let tmp_quote_state: number = 0;\n const close_comment: RegExp = /\\*\\/$/;\n const open_block: RegExp = /\\{/;//(^\\{([/]{2})?(\\/\\*)?)|(\\{([/]{2})?(\\/[\\*]*)?$)/;\n const close_block: RegExp = /\\}/;//(^\\}([/]{2})?(\\/\\*)?)|(\\}([/]{2})?(\\/[\\*]*)?$)/;\n const tst_class: RegExp = /.*(\\sclass|\\sstruct)\\s/i;\n let opened_class = false;\n let within_comment: boolean = false;\n let within_quotes = false\n let start_class: number | null = null;\n let start_block: number | null = null;\n let block_state: number = 0;\n let sav_block_state = 0;\n let fn_head: string = \"\";\n let search_curlies: RegExpExecArray | null = null;\n let ln: string;\n let no_comments = \"\";\n let block_head = new _block_head;\n for (let i = 0; i < lines.length; i++) {\n ln = lines[i];\n if (one_line_comment.test(ln)) {\n continue;\n }\n if (!within_comment) { within_comment = open_comment.test(lines[i]); }\n if (within_comment) {\n if (close_comment.test(ln)) {\n within_comment = false;\n }\n continue;\n }\n if (quote_state == 0) { quote_state = count_quotes.exec(lines[i])?.length ?? 0; } // not complete covering\n if (quote_state > 0) {\n if ((tmp_quote_state = count_quotes.exec(lines[i])?.length ?? 0) > 0) {\n quote_state -= tmp_quote_state;\n }\n continue;\n }\n if (one_line_block.test(ln) && block_state == 0) {\n add_symb(\n i,\n i,\n ln,\n \"Function\",\n uri,\n symbols\n );\n continue;\n }\n if (one_line_block.test(ln) && block_state != 0) { continue; }\n if (start_class == null && block_state == 0) {\n if (tst_class.test(lines[i])) {\n if (open_block.test(lines[i])) { opened_class = true; }\n start_class = i;\n sav_block_state = block_state;\n continue;\n }\n }\n if (start_class != null && block_state == 0 && close_block.test(lines[i])) {\n add_symb(\n start_class,\n i,\n lines[start_class],\n \"Class\",\n uri,\n symbols\n );\n start_class = null;\n opened_class = false;\n continue;\n }\n no_comments = lines[i].replaceAll(exclude_comments, \"\");\n block_state -= (search_curlies = open_block.exec(no_comments)) != null ? search_curlies.length : 0;\n if (!opened_class && start_class != null && sav_block_state != block_state) {\n block_state += 1;\n opened_class = true;\n }\n block_state += (search_curlies = close_block.exec(no_comments)) != null ? search_curlies.length : 0;\n block_head.set_info(lines[i], i);\n if (start_block == null && block_state == -1) {\n fn_head = get_c_fn_head(lines, i);\n start_block = i;\n }\n if (start_block != null && block_state == 0) {\n add_symb(\n start_block,\n i,\n fn_head,\n \"Function\",\n uri,\n symbols\n );\n start_block = null;\n }\n }\n}\nexport function get_c_fn_head(doc: string[], lnum: number): string {\n for (let i = lnum; i > -1; i--) {\n if (doc[i].includes(\"(\")) { return doc[i]; }\n }\n return doc[0];\n}\nexport class mode {\n static dbg: boolean = false;\n}","import * as vscode from 'vscode';\nimport { langsName, restrict_search } from './faav'\nimport { handleExtraCMDs, pressF12, EL } from './fancy_f12';\nimport { prnt } from './basic_funx';\nexport class langDefinitionProvider implements vscode.DefinitionProvider {\n async provideDefinition(\n document: vscode.TextDocument,\n position: vscode.Position,\n token: vscode.CancellationToken\n ): Promise<vscode.Location[]> {\n const wordRange = document.getWordRangeAtPosition(position, /[\\w$@_]+/);\n //if (!wordRange) return [];\n let word = document.getText(wordRange);\n const extra_locations = word != undefined && word != \"\" ? await handleExtraCMDs(word) : await handleExtraCMDs();\n const results: vscode.Location[] = [];\n prnt(extra_locations.kind);\n if (extra_locations.kind == \"extra_locations\") {\n results.push(...extra_locations.v);\n }\n let file_ext: vscode.GlobPattern = \"**/*.\" + langsName().file_exts[0];\n let uris = await vscode.workspace.findFiles(\n //\"**/*.d\",\n file_ext,\n restrict_search.exclude_paths, \n restrict_search.max_num_of_res);\n if (langsName().file_exts.length > 1) {\n for (let i = 1; i < langsName().file_exts.length; i++) {\n file_ext = \"**/*.\" + langsName().file_exts[i];\n let uri = await vscode.workspace.findFiles(\n // '**/*.{langsName.file_exts}',\n file_ext,\n restrict_search.exclude_paths,\n restrict_search.max_num_of_res);\n uris.push(...uri);\n }\n }\n for (const uri of uris) {\n if (token.isCancellationRequested) break;\n try {\n const doc = await vscode.workspace.openTextDocument(uri);\n const text = doc.getText();\n let idx = text.indexOf(word);\n // vscode.window.showInformationMessage(idx.toString());\n while (idx !== -1) {\n if (token.isCancellationRequested) break;\n // crude heuristic: treat occurrences followed by '(' or ':' or '=' as possible definitions\n const after = text.substr(idx + word.length, 3);\n const isDef = /[\\s\\(=:\\{]/.test(after);\n if (isDef) {\n const start = doc.positionAt(idx);\n const end = doc.positionAt(idx + word.length);\n results.push(new vscode.Location(uri, new vscode.Range(start, end)));\n }\n idx = text.indexOf(word, idx + 1);\n }\n } catch {\n // ignore files that can't be opened\n }\n }\n return results;\n }\n}","import * as vscode from 'vscode';\nimport { i_c_fn_head_opts, langsName } from './faav';\nimport { langDefinitionProvider } from './goto_impl';\nimport { activate0 as colors } from './colorful';\nimport { ShowDocumentSymbols } from './show_doc_symbs'\nimport { getCMD, prnt } from './basic_funx';\nexport async function uri_to_file_of_opts(): Promise <vscode.Uri[]> {\n return vscode.workspace.findFiles(\n '**/i_c_fn_head.opts',\n \"\", /* exclude none path */\n 1 /* only one result */\n );\n}\nexport async function init(context: & vscode.ExtensionContext) {\n // if (!i_c_fn_head_opts.been_set) { return; }\n try {\n const uri = await uri_to_file_of_opts();\n const doc = await vscode.workspace.openTextDocument(uri[0]);\n txt._0 = doc.getText();\n set_lang(\"D\", context);\n set_lang(\"Rust\", context);\n set_lang(\"C\", context);\n set_lang(\"CPP\", context);\n i_c_fn_head_opts.been_set = true;\n i_c_fn_head_opts.path_to_conf = uri[0].fsPath;\n \n //vscode.window.showInformationMessage(msg);\n // vscode.window.showInformationMessage(txt._0);\n }\n catch (err) {\n prnt(\"Sorry, Dear Dev.. it was failed to init i_c_fn_head (\" + String(err) + \" )\");\n return;\n }\n regDefProvider(context);\n colors(context);\n}\nfunction run_opt(key: string): RegExp {\n return new RegExp(`\\\\/\\\\/\\\\s*run\\\\s+${key}\\\\s*\\\\/\\\\/`);\n}\nfunction set_lang(name: string, context?: vscode.ExtensionContext) {\n //vscode.window.showInformationMessage(txt._0);\n if (run_opt(name).test(txt._0) && name == \"D\") {\n i_c_fn_head_opts.provide_lang_D = true;\n context?.subscriptions.push(\n vscode.languages.registerDocumentSymbolProvider({ language: 'D' }, new ShowDocumentSymbols())\n );\n }\n if (run_opt(name).test(txt._0) && name == \"CPP\") {\n i_c_fn_head_opts.provide_lang_CPP = true;\n context?.subscriptions.push(\n vscode.languages.registerDocumentSymbolProvider({ language: 'cpp' }, new ShowDocumentSymbols())\n );\n }\n if (run_opt(name).test(txt._0) && name == \"C\") {\n i_c_fn_head_opts.provide_lang_C = true;\n context?.subscriptions.push(\n vscode.languages.registerDocumentSymbolProvider({ language: 'c' }, new ShowDocumentSymbols())\n );\n }\n if (run_opt(name).test(txt._0) && name == \"Rust\") {\n i_c_fn_head_opts.provide_lang_Rust = true;\n context?.subscriptions.push(\n vscode.languages.registerDocumentSymbolProvider({ language: 'rust' }, new ShowDocumentSymbols())\n );\n }\n}\nclass txt {\n static _0: string = \"\";\n}\nexport function regDefProvider(context: & vscode.ExtensionContext) {\n const selector: vscode.DocumentSelector = mkDocSel ();\n context.subscriptions.push(\n vscode.languages.registerDefinitionProvider(selector, new langDefinitionProvider())\n );\n}\nfunction mkDocSel(): vscode.DocumentSelector {\n let sel = [] as (vscode.DocumentFilter | string)[];\n let sel_strn: string = \"\";\n if (i_c_fn_head_opts.provide_lang_C) { sel.push({ scheme: 'file', language: 'c' }); }\n if (i_c_fn_head_opts.provide_lang_Rust) { sel.push({ scheme: 'file', language: 'rust' }); }\n if (i_c_fn_head_opts.provide_lang_CPP) { sel.push({ scheme: 'file', language: 'cpp' }); }\n if (i_c_fn_head_opts.provide_lang_D) { sel.push({ scheme: 'file', language: 'D' }); }\n return sel\n}\n","import * as vscode from 'vscode';\nexport function menu() {\n\n async function showQuickPickExample() {\n const items: vscode.QuickPickItem[] = [\n { label: '$(file-text) Open file', description: 'Open a file from workspace', detail: 'Opens the file picker' },\n { label: '$(gear) Settings', description: 'Open settings', detail: 'Show configuration' },\n { label: '$(repo) Clone repo', description: 'Clone a repository', detail: 'Clone from URL' },\n ];\n\n // Single-select QuickPick (simple)\n const single = await vscode.window.showQuickPick(items, {\n placeHolder: 'Choose an action',\n matchOnDescription: true,\n matchOnDetail: true,\n canPickMany: false,\n });\n if (single) {\n vscode.window.showInformationMessage(`Selected: ${single.label}`);\n }\n\n // Multi-select QuickPick (programmatic QuickPick for more control)\n const qp = vscode.window.createQuickPick<vscode.QuickPickItem>();\n qp.items = items;\n qp.canSelectMany = true;\n qp.matchOnDescription = true;\n qp.matchOnDetail = true;\n qp.placeholder = 'Select one or more actions';\n qp.ignoreFocusOut = true;\n\n qp.onDidAccept(() => {\n const selected = qp.selectedItems;\n if (selected.length) {\n vscode.window.showInformationMessage(`Selected: ${selected.map(s => s.label).join(', ')}`);\n }\n qp.hide();\n });\n\n qp.onDidHide(() => qp.dispose());\n qp.show();\n }\n\n}","import * as vscode from 'vscode';\nimport { _c_fn_body, _rust_fn_body, c_fn_body } from './fn_body_n_head';\nexport class ShowDocumentSymbols implements vscode.DocumentSymbolProvider {\n provideDocumentSymbols(document: vscode.TextDocument, token: vscode.CancellationToken): vscode.ProviderResult<vscode.SymbolInformation[]> {\n let symbols: vscode.SymbolInformation[] = [];\n let text0 = document.getText();\n const text = text0.split(\"\\n\");\n\n // Regular expression patterns for different symbols\n const functionPattern: RegExp[] = [\n /(^(\\s*if))/g,\n ];\n const classPattern = /class\\s+([a-zA-Z_$][0-9a-zA-Z_$]*)/g;\n const variablePattern = /const\\s+([a-zA-Z_$][0-9a-zA-Z_$]*)|let\\s+([a-zA-Z_$][0-9a-zA-Z_$]*)|var\\s+([a-zA-Z_$][0-9a-zA-Z_$]*)/g;\n let wrong_ending = /;[\\s]*}?$/\n const func_ret = /^return\\s/;\n const while_op = /[\\s]*while[\\s]*\\(/;\n const for_op = /\\s*for[\\s]*\\(?/;\n const switch_op = /[\\s]*switch[\\s]*\\(?/;\n const if_op = /^[\\s]*if[\\s]*\\(/;\n const scope_op_in_D = /^scope\\s*\\(/;\n const bad_symbs = /[=+\\-]/;\n // Extract functions\n let match: RegExpExecArray | null | undefined = null;\n //console.log(\"start\");\n //console.log(text);\n let yes_D = vscode.window.activeTextEditor?.document.languageId.toLowerCase() === \"d\";\n let functionName: string = \"\";\n let _1st: boolean = true;\n let line: number = 0;\n let pos: vscode.Range | undefined = new vscode.Range(0, 0, 0, 100);\n let point: vscode.Position = new vscode.Position(0, 0);\n let set_rng: vscode.Range;\n let default_range = new vscode.Range(0, 0, 0, 100);\n /*\twhile ((match = select_lang_n_tst_fn_head (text0) ) !== null) {\n const fnName = match[1];\n const position = document.positionAt(match.index);\n symbols.push(new vscode.SymbolInformation(fnName, vscode.SymbolKind.Function, '', new vscode.Location(document.uri, position)));\n }*/\n //dont_clobbe_line_w_curly_bracket(text0, document.uri);\n //\tif (manage_output(text0, document.uri, symbols) != _manage_output.Rust) { return symbols; }\n manage_output(text0, document.uri, symbols);\n return symbols;\n }\n}\nenum _manage_output {\n C,\n D,\n Rust,\n CPP\n}\nexport function manage_output(doc: string, uri: vscode.Uri, symbols: & vscode.SymbolInformation[]): _manage_output | RegExp | null {\n const langId = vscode.window.activeTextEditor?.document.uri.fsPath ?? \"\";\n let regex = /rs$|c$|cpp$|d$/g;\n let lang: string = regex.exec(langId)?.[0] ?? \"\";\n const msg = \"Active lang: \" + langId?.toString();\n //vscode.window.showInformationMessage(msg);\n switch (lang) {\n case \"c\": { c_fn_body(doc, uri, symbols); return _manage_output.C }\n case \"cpp\": { c_fn_body(doc, uri, symbols); return _manage_output.CPP }\n case \"d\": { _c_fn_body(doc, uri, symbols); return _manage_output.D }\n case \"rs\": { _rust_fn_body(doc, uri, symbols); return _manage_output.Rust }// { return rust_head() }\n }\n //\tprnt(msg);\n return null\n}\n","module.exports = require(\"vscode\");","module.exports = require(\"fs\");","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertValidPattern = void 0;\nconst MAX_PATTERN_LENGTH = 1024 * 64;\nconst assertValidPattern = (pattern) => {\n if (typeof pattern !== 'string') {\n throw new TypeError('invalid pattern');\n }\n if (pattern.length > MAX_PATTERN_LENGTH) {\n throw new TypeError('pattern is too long');\n }\n};\nexports.assertValidPattern = assertValidPattern;\n//# sourceMappingURL=assert-valid-pattern.js.map","\"use strict\";\n// parse a single path portion\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AST = void 0;\nconst brace_expressions_js_1 = require(\"./brace-expressions.js\");\nconst unescape_js_1 = require(\"./unescape.js\");\nconst types = new Set(['!', '?', '+', '*', '@']);\nconst isExtglobType = (c) => types.has(c);\n// Patterns that get prepended to bind to the start of either the\n// entire string, or just a single path portion, to prevent dots\n// and/or traversal patterns, when needed.\n// Exts don't need the ^ or / bit, because the root binds that already.\nconst startNoTraversal = '(?!(?:^|/)\\\\.\\\\.?(?:$|/))';\nconst startNoDot = '(?!\\\\.)';\n// characters that indicate a start of pattern needs the \"no dots\" bit,\n// because a dot *might* be matched. ( is not in the list, because in\n// the case of a child extglob, it will handle the prevention itself.\nconst addPatternStart = new Set(['[', '.']);\n// cases where traversal is A-OK, no dot prevention needed\nconst justDots = new Set(['..', '.']);\nconst reSpecials = new Set('().*{}+?[]^$\\\\!');\nconst regExpEscape = (s) => s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n// any single thing other than /\nconst qmark = '[^/]';\n// * => any number of characters\nconst star = qmark + '*?';\n// use + when we need to ensure that *something* matches, because the * is\n// the only thing in the path portion.\nconst starNoEmpty = qmark + '+?';\n// remove the \\ chars that we added if we end up doing a nonmagic compare\n// const deslash = (s: string) => s.replace(/\\\\(.)/g, '$1')\nclass AST {\n type;\n #root;\n #hasMagic;\n #uflag = false;\n #parts = [];\n #parent;\n #parentIndex;\n #negs;\n #filledNegs = false;\n #options;\n #toString;\n // set to true if it's an extglob with no children\n // (which really means one child of '')\n #emptyExt = false;\n constructor(type, parent, options = {}) {\n this.type = type;\n // extglobs are inherently magical\n if (type)\n this.#hasMagic = true;\n this.#parent = parent;\n this.#root = this.#parent ? this.#parent.#root : this;\n this.#options = this.#root === this ? options : this.#root.#options;\n this.#negs = this.#root === this ? [] : this.#root.#negs;\n if (type === '!' && !this.#root.#filledNegs)\n this.#negs.push(this);\n this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;\n }\n get hasMagic() {\n /* c8 ignore start */\n if (this.#hasMagic !== undefined)\n return this.#hasMagic;\n /* c8 ignore stop */\n for (const p of this.#parts) {\n if (typeof p === 'string')\n continue;\n if (p.type || p.hasMagic)\n return (this.#hasMagic = true);\n }\n // note: will be undefined until we generate the regexp src and find out\n return this.#hasMagic;\n }\n // reconstructs the pattern\n toString() {\n if (this.#toString !== undefined)\n return this.#toString;\n if (!this.type) {\n return (this.#toString = this.#parts.map(p => String(p)).join(''));\n }\n else {\n return (this.#toString =\n this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');\n }\n }\n #fillNegs() {\n /* c8 ignore start */\n if (this !== this.#root)\n throw new Error('should only call on root');\n if (this.#filledNegs)\n return this;\n /* c8 ignore stop */\n // call toString() once to fill this out\n this.toString();\n this.#filledNegs = true;\n let n;\n while ((n = this.#negs.pop())) {\n if (n.type !== '!')\n continue;\n // walk up the tree, appending everthing that comes AFTER parentIndex\n let p = n;\n let pp = p.#parent;\n while (pp) {\n for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {\n for (const part of n.#parts) {\n /* c8 ignore start */\n if (typeof part === 'string') {\n throw new Error('string part in extglob AST??');\n }\n /* c8 ignore stop */\n part.copyIn(pp.#parts[i]);\n }\n }\n p = pp;\n pp = p.#parent;\n }\n }\n return this;\n }\n push(...parts) {\n for (const p of parts) {\n if (p === '')\n continue;\n /* c8 ignore start */\n if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {\n throw new Error('invalid part: ' + p);\n }\n /* c8 ignore stop */\n this.#parts.push(p);\n }\n }\n toJSON() {\n const ret = this.type === null\n ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))\n : [this.type, ...this.#parts.map(p => p.toJSON())];\n if (this.isStart() && !this.type)\n ret.unshift([]);\n if (this.isEnd() &&\n (this === this.#root ||\n (this.#root.#filledNegs && this.#parent?.type === '!'))) {\n ret.push({});\n }\n return ret;\n }\n isStart() {\n if (this.#root === this)\n return true;\n // if (this.type) return !!this.#parent?.isStart()\n if (!this.#parent?.isStart())\n return false;\n if (this.#parentIndex === 0)\n return true;\n // if everything AHEAD of this is a negation, then it's still the \"start\"\n const p = this.#parent;\n for (let i = 0; i < this.#parentIndex; i++) {\n const pp = p.#parts[i];\n if (!(pp instanceof AST && pp.type === '!')) {\n return false;\n }\n }\n return true;\n }\n isEnd() {\n if (this.#root === this)\n return true;\n if (this.#parent?.type === '!')\n return true;\n if (!this.#parent?.isEnd())\n return false;\n if (!this.type)\n return this.#parent?.isEnd();\n // if not root, it'll always have a parent\n /* c8 ignore start */\n const pl = this.#parent ? this.#parent.#parts.length : 0;\n /* c8 ignore stop */\n return this.#parentIndex === pl - 1;\n }\n copyIn(part) {\n if (typeof part === 'string')\n this.push(part);\n else\n this.push(part.clone(this));\n }\n clone(parent) {\n const c = new AST(this.type, parent);\n for (const p of this.#parts) {\n c.copyIn(p);\n }\n return c;\n }\n static #parseAST(str, ast, pos, opt) {\n let escaping = false;\n let inBrace = false;\n let braceStart = -1;\n let braceNeg = false;\n if (ast.type === null) {\n // outside of a extglob, append until we find a start\n let i = pos;\n let acc = '';\n while (i < str.length) {\n const c = str.charAt(i++);\n // still accumulate escapes at this point, but we do ignore\n // starts that are escaped\n if (escaping || c === '\\\\') {\n escaping = !escaping;\n acc += c;\n continue;\n }\n if (inBrace) {\n if (i === braceStart + 1) {\n if (c === '^' || c === '!') {\n braceNeg = true;\n }\n }\n else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {\n inBrace = false;\n }\n acc += c;\n continue;\n }\n else if (c === '[') {\n inBrace = true;\n braceStart = i;\n braceNeg = false;\n acc += c;\n continue;\n }\n if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {\n ast.push(acc);\n acc = '';\n const ext = new AST(c, ast);\n i = AST.#parseAST(str, ext, i, opt);\n ast.push(ext);\n continue;\n }\n acc += c;\n }\n ast.push(acc);\n return i;\n }\n // some kind of extglob, pos is at the (\n // find the next | or )\n let i = pos + 1;\n let part = new AST(null, ast);\n const parts = [];\n let acc = '';\n while (i < str.length) {\n const c = str.charAt(i++);\n // still accumulate escapes at this point, but we do ignore\n // starts that are escaped\n if (escaping || c === '\\\\') {\n escaping = !escaping;\n acc += c;\n continue;\n }\n if (inBrace) {\n if (i === braceStart + 1) {\n if (c === '^' || c === '!') {\n braceNeg = true;\n }\n }\n else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {\n inBrace = false;\n }\n acc += c;\n continue;\n }\n else if (c === '[') {\n inBrace = true;\n braceStart = i;\n braceNeg = false;\n acc += c;\n continue;\n }\n if (isExtglobType(c) && str.charAt(i) === '(') {\n part.push(acc);\n acc = '';\n const ext = new AST(c, part);\n part.push(ext);\n i = AST.#parseAST(str, ext, i, opt);\n continue;\n }\n if (c === '|') {\n part.push(acc);\n acc = '';\n parts.push(part);\n part = new AST(null, ast);\n continue;\n }\n if (c === ')') {\n if (acc === '' && ast.#parts.length === 0) {\n ast.#emptyExt = true;\n }\n part.push(acc);\n acc = '';\n ast.push(...parts, part);\n return i;\n }\n acc += c;\n }\n // unfinished extglob\n // if we got here, it was a malformed extglob! not an extglob, but\n // maybe something else in there.\n ast.type = null;\n ast.#hasMagic = undefined;\n ast.#parts = [str.substring(pos - 1)];\n return i;\n }\n static fromGlob(pattern, options = {}) {\n const ast = new AST(null, undefined, options);\n AST.#parseAST(pattern, ast, 0, options);\n return ast;\n }\n // returns the regular expression if there's magic, or the unescaped\n // string if not.\n toMMPattern() {\n // should only be called on root\n /* c8 ignore start */\n if (this !== this.#root)\n return this.#root.toMMPattern();\n /* c8 ignore stop */\n const glob = this.toString();\n const [re, body, hasMagic, uflag] = this.toRegExpSource();\n // if we're in nocase mode, and not nocaseMagicOnly, then we do\n // still need a regular expression if we have to case-insensitively\n // match capital/lowercase characters.\n const anyMagic = hasMagic ||\n this.#hasMagic ||\n (this.#options.nocase &&\n !this.#options.nocaseMagicOnly &&\n glob.toUpperCase() !== glob.toLowerCase());\n if (!anyMagic) {\n return body;\n }\n const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');\n return Object.assign(new RegExp(`^${re}$`, flags), {\n _src: re,\n _glob: glob,\n });\n }\n get options() {\n return this.#options;\n }\n // returns the string match, the regexp source, whether there's magic\n // in the regexp (so a regular expression is required) and whether or\n // not the uflag is needed for the regular expression (for posix classes)\n // TODO: instead of injecting the start/end at this point, just return\n // the BODY of the regexp, along with the start/end portions suitable\n // for binding the start/end in either a joined full-path makeRe context\n // (where we bind to (^|/), or a standalone matchPart context (where\n // we bind to ^, and not /). Otherwise slashes get duped!\n //\n // In part-matching mode, the start is:\n // - if not isStart: nothing\n // - if traversal possible, but not allowed: ^(?!\\.\\.?$)\n // - if dots allowed or not possible: ^\n // - if dots possible and not allowed: ^(?!\\.)\n // end is:\n // - if not isEnd(): nothing\n // - else: $\n //\n // In full-path matching mode, we put the slash at the START of the\n // pattern, so start is:\n // - if first pattern: same as part-matching mode\n // - if not isStart(): nothing\n // - if traversal possible, but not allowed: /(?!\\.\\.?(?:$|/))\n // - if dots allowed or not possible: /\n // - if dots possible and not allowed: /(?!\\.)\n // end is:\n // - if last pattern, same as part-matching mode\n // - else nothing\n //\n // Always put the (?:$|/) on negated tails, though, because that has to be\n // there to bind the end of the negated pattern portion, and it's easier to\n // just stick it in now rather than try to inject it later in the middle of\n // the pattern.\n //\n // We can just always return the same end, and leave it up to the caller\n // to know whether it's going to be used joined or in parts.\n // And, if the start is adjusted slightly, can do the same there:\n // - if not isStart: nothing\n // - if traversal possible, but not allowed: (?:/|^)(?!\\.\\.?$)\n // - if dots allowed or not possible: (?:/|^)\n // - if dots possible and not allowed: (?:/|^)(?!\\.)\n //\n // But it's better to have a simpler binding without a conditional, for\n // performance, so probably better to return both start options.\n //\n // Then the caller just ignores the end if it's not the first pattern,\n // and the start always gets applied.\n //\n // But that's always going to be $ if it's the ending pattern, or nothing,\n // so the caller can just attach $ at the end of the pattern when building.\n //\n // So the todo is:\n // - better detect what kind of start is needed\n // - return both flavors of starting pattern\n // - attach $ at the end of the pattern when creating the actual RegExp\n //\n // Ah, but wait, no, that all only applies to the root when the first pattern\n // is not an extglob. If the first pattern IS an extglob, then we need all\n // that dot prevention biz to live in the extglob portions, because eg\n // +(*|.x*) can match .xy but not .yx.\n //\n // So, return the two flavors if it's #root and the first child is not an\n // AST, otherwise leave it to the child AST to handle it, and there,\n // use the (?:^|/) style of start binding.\n //\n // Even simplified further:\n // - Since the start for a join is eg /(?!\\.) and the start for a part\n // is ^(?!\\.), we can just prepend (?!\\.) to the pattern (either root\n // or start or whatever) and prepend ^ or / at the Regexp construction.\n toRegExpSource(allowDot) {\n const dot = allowDot ?? !!this.#options.dot;\n if (this.#root === this)\n this.#fillNegs();\n if (!this.type) {\n const noEmpty = this.isStart() && this.isEnd();\n const src = this.#parts\n .map(p => {\n const [re, _, hasMagic, uflag] = typeof p === 'string'\n ? AST.#parseGlob(p, this.#hasMagic, noEmpty)\n : p.toRegExpSource(allowDot);\n this.#hasMagic = this.#hasMagic || hasMagic;\n this.#uflag = this.#uflag || uflag;\n return re;\n })\n .join('');\n let start = '';\n if (this.isStart()) {\n if (typeof this.#parts[0] === 'string') {\n // this is the string that will match the start of the pattern,\n // so we need to protect against dots and such.\n // '.' and '..' cannot match unless the pattern is that exactly,\n // even if it starts with . or dot:true is set.\n const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);\n if (!dotTravAllowed) {\n const aps = addPatternStart;\n // check if we have a possibility of matching . or ..,\n // and prevent that.\n const needNoTrav = \n // dots are allowed, and the pattern starts with [ or .\n (dot && aps.has(src.charAt(0))) ||\n // the pattern starts with \\., and then [ or .\n (src.startsWith('\\\\.') && aps.has(src.charAt(2))) ||\n // the pattern starts with \\.\\., and then [ or .\n (src.startsWith('\\\\.\\\\.') && aps.has(src.charAt(4)));\n // no need to prevent dots if it can't match a dot, or if a\n // sub-pattern will be preventing it anyway.\n const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));\n start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';\n }\n }\n }\n // append the \"end of path portion\" pattern to negation tails\n let end = '';\n if (this.isEnd() &&\n this.#root.#filledNegs &&\n this.#parent?.type === '!') {\n end = '(?:$|\\\\/)';\n }\n const final = start + src + end;\n return [\n final,\n (0, unescape_js_1.unescape)(src),\n (this.#hasMagic = !!this.#hasMagic),\n this.#uflag,\n ];\n }\n // We need to calculate the body *twice* if it's a repeat pattern\n // at the start, once in nodot mode, then again in dot mode, so a\n // pattern like *(?) can match 'x.y'\n const repeated = this.type === '*' || this.type === '+';\n // some kind of extglob\n const start = this.type === '!' ? '(?:(?!(?:' : '(?:';\n let body = this.#partsToRegExp(dot);\n if (this.isStart() && this.isEnd() && !body && this.type !== '!') {\n // invalid extglob, has to at least be *something* present, if it's\n // the entire path portion.\n const s = this.toString();\n this.#parts = [s];\n this.type = null;\n this.#hasMagic = undefined;\n return [s, (0, unescape_js_1.unescape)(this.toString()), false, false];\n }\n // XXX abstract out this map method\n let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot\n ? ''\n : this.#partsToRegExp(true);\n if (bodyDotAllowed === body) {\n bodyDotAllowed = '';\n }\n if (bodyDotAllowed) {\n body = `(?:${body})(?:${bodyDotAllowed})*?`;\n }\n // an empty !() is exactly equivalent to a starNoEmpty\n let final = '';\n if (this.type === '!' && this.#emptyExt) {\n final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;\n }\n else {\n const close = this.type === '!'\n ? // !() must match something,but !(x) can match ''\n '))' +\n (this.isStart() && !dot && !allowDot ? startNoDot : '') +\n star +\n ')'\n : this.type === '@'\n ? ')'\n : this.type === '?'\n ? ')?'\n : this.type === '+' && bodyDotAllowed\n ? ')'\n : this.type === '*' && bodyDotAllowed\n ? `)?`\n : `)${this.type}`;\n final = start + body + close;\n }\n return [\n final,\n (0, unescape_js_1.unescape)(body),\n (this.#hasMagic = !!this.#hasMagic),\n this.#uflag,\n ];\n }\n #partsToRegExp(dot) {\n return this.#parts\n .map(p => {\n // extglob ASTs should only contain parent ASTs\n /* c8 ignore start */\n if (typeof p === 'string') {\n throw new Error('string type in extglob ast??');\n }\n /* c8 ignore stop */\n // can ignore hasMagic, because extglobs are already always magic\n const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);\n this.#uflag = this.#uflag || uflag;\n return re;\n })\n .filter(p => !(this.isStart() && this.isEnd()) || !!p)\n .join('|');\n }\n static #parseGlob(glob, hasMagic, noEmpty = false) {\n let escaping = false;\n let re = '';\n let uflag = false;\n for (let i = 0; i < glob.length; i++) {\n const c = glob.charAt(i);\n if (escaping) {\n escaping = false;\n re += (reSpecials.has(c) ? '\\\\' : '') + c;\n continue;\n }\n if (c === '\\\\') {\n if (i === glob.length - 1) {\n re += '\\\\\\\\';\n }\n else {\n escaping = true;\n }\n continue;\n }\n if (c === '[') {\n const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);\n if (consumed) {\n re += src;\n uflag = uflag || needUflag;\n i += consumed - 1;\n hasMagic = hasMagic || magic;\n continue;\n }\n }\n if (c === '*') {\n if (noEmpty && glob === '*')\n re += starNoEmpty;\n else\n re += star;\n hasMagic = true;\n continue;\n }\n if (c === '?') {\n re += qmark;\n hasMagic = true;\n continue;\n }\n re += regExpEscape(c);\n }\n return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];\n }\n}\nexports.AST = AST;\n//# sourceMappingURL=ast.js.map","\"use strict\";\n// translate the various posix character classes into unicode properties\n// this works across all unicode locales\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseClass = void 0;\n// { <posix class>: [<translation>, /u flag required, negated]\nconst posixClasses = {\n '[:alnum:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}', true],\n '[:alpha:]': ['\\\\p{L}\\\\p{Nl}', true],\n '[:ascii:]': ['\\\\x' + '00-\\\\x' + '7f', false],\n '[:blank:]': ['\\\\p{Zs}\\\\t', true],\n '[:cntrl:]': ['\\\\p{Cc}', true],\n '[:digit:]': ['\\\\p{Nd}', true],\n '[:graph:]': ['\\\\p{Z}\\\\p{C}', true, true],\n '[:lower:]': ['\\\\p{Ll}', true],\n '[:print:]': ['\\\\p{C}', true],\n '[:punct:]': ['\\\\p{P}', true],\n '[:space:]': ['\\\\p{Z}\\\\t\\\\r\\\\n\\\\v\\\\f', true],\n '[:upper:]': ['\\\\p{Lu}', true],\n '[:word:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}\\\\p{Pc}', true],\n '[:xdigit:]': ['A-Fa-f0-9', false],\n};\n// only need to escape a few things inside of brace expressions\n// escapes: [ \\ ] -\nconst braceEscape = (s) => s.replace(/[[\\]\\\\-]/g, '\\\\$&');\n// escape all regexp magic characters\nconst regexpEscape = (s) => s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n// everything has already been escaped, we just have to join\nconst rangesToString = (ranges) => ranges.join('');\n// takes a glob string at a posix brace expression, and returns\n// an equivalent regular expression source, and boolean indicating\n// whether the /u flag needs to be applied, and the number of chars\n// consumed to parse the character class.\n// This also removes out of order ranges, and returns ($.) if the\n// entire class just no good.\nconst parseClass = (glob, position) => {\n const pos = position;\n /* c8 ignore start */\n if (glob.charAt(pos) !== '[') {\n throw new Error('not in a brace expression');\n }\n /* c8 ignore stop */\n const ranges = [];\n const negs = [];\n let i = pos + 1;\n let sawStart = false;\n let uflag = false;\n let escaping = false;\n let negate = false;\n let endPos = pos;\n let rangeStart = '';\n WHILE: while (i < glob.length) {\n const c = glob.charAt(i);\n if ((c === '!' || c === '^') && i === pos + 1) {\n negate = true;\n i++;\n continue;\n }\n if (c === ']' && sawStart && !escaping) {\n endPos = i + 1;\n break;\n }\n sawStart = true;\n if (c === '\\\\') {\n if (!escaping) {\n escaping = true;\n i++;\n continue;\n }\n // escaped \\ char, fall through and treat like normal char\n }\n if (c === '[' && !escaping) {\n // either a posix class, a collation equivalent, or just a [\n for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {\n if (glob.startsWith(cls, i)) {\n // invalid, [a-[] is fine, but not [a-[:alpha]]\n if (rangeStart) {\n return ['$.', false, glob.length - pos, true];\n }\n i += cls.length;\n if (neg)\n negs.push(unip);\n else\n ranges.push(unip);\n uflag = uflag || u;\n continue WHILE;\n }\n }\n }\n // now it's just a normal character, effectively\n escaping = false;\n if (rangeStart) {\n // throw this range away if it's not valid, but others\n // can still match.\n if (c > rangeStart) {\n ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c));\n }\n else if (c === rangeStart) {\n ranges.push(braceEscape(c));\n }\n rangeStart = '';\n i++;\n continue;\n }\n // now might be the start of a range.\n // can be either c-d or c-] or c<more...>] or c] at this point\n if (glob.startsWith('-]', i + 1)) {\n ranges.push(braceEscape(c + '-'));\n i += 2;\n continue;\n }\n if (glob.startsWith('-', i + 1)) {\n rangeStart = c;\n i += 2;\n continue;\n }\n // not the start of a range, just a single character\n ranges.push(braceEscape(c));\n i++;\n }\n if (endPos < i) {\n // didn't see the end of the class, not a valid class,\n // but might still be valid as a literal match.\n return ['', false, 0, false];\n }\n // if we got no ranges and no negates, then we have a range that\n // cannot possibly match anything, and that poisons the whole glob\n if (!ranges.length && !negs.length) {\n return ['$.', false, glob.length - pos, true];\n }\n // if we got one positive range, and it's a single character, then that's\n // not actually a magic pattern, it's just that one literal character.\n // we should not treat that as \"magic\", we should just return the literal\n // character. [_] is a perfectly valid way to escape glob magic chars.\n if (negs.length === 0 &&\n ranges.length === 1 &&\n /^\\\\?.$/.test(ranges[0]) &&\n !negate) {\n const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];\n return [regexpEscape(r), false, endPos - pos, false];\n }\n const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']';\n const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']';\n const comb = ranges.length && negs.length\n ? '(' + sranges + '|' + snegs + ')'\n : ranges.length\n ? sranges\n : snegs;\n return [comb, uflag, endPos - pos, true];\n};\nexports.parseClass = parseClass;\n//# sourceMappingURL=brace-expressions.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.escape = void 0;\n/**\n * Escape all magic characters in a glob pattern.\n *\n * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}\n * option is used, then characters are escaped by wrapping in `[]`, because\n * a magic character wrapped in a character class can only be satisfied by\n * that exact character. In this mode, `\\` is _not_ escaped, because it is\n * not interpreted as a magic character, but instead as a path separator.\n */\nconst escape = (s, { windowsPathsNoEscape = false, } = {}) => {\n // don't need to escape +@! because we escape the parens\n // that make those magic, and escaping ! as [!] isn't valid,\n // because [!]] is a valid glob class meaning not ']'.\n return windowsPathsNoEscape\n ? s.replace(/[?*()[\\]]/g, '[$&]')\n : s.replace(/[?*()[\\]\\\\]/g, '\\\\$&');\n};\nexports.escape = escape;\n//# sourceMappingURL=escape.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;\nconst brace_expansion_1 = __importDefault(require(\"brace-expansion\"));\nconst assert_valid_pattern_js_1 = require(\"./assert-valid-pattern.js\");\nconst ast_js_1 = require(\"./ast.js\");\nconst escape_js_1 = require(\"./escape.js\");\nconst unescape_js_1 = require(\"./unescape.js\");\nconst minimatch = (p, pattern, options = {}) => {\n (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);\n // shortcut: comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n return false;\n }\n return new Minimatch(pattern, options).match(p);\n};\nexports.minimatch = minimatch;\n// Optimized checking for the most common glob patterns.\nconst starDotExtRE = /^\\*+([^+@!?\\*\\[\\(]*)$/;\nconst starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);\nconst starDotExtTestDot = (ext) => (f) => f.endsWith(ext);\nconst starDotExtTestNocase = (ext) => {\n ext = ext.toLowerCase();\n return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext);\n};\nconst starDotExtTestNocaseDot = (ext) => {\n ext = ext.toLowerCase();\n return (f) => f.toLowerCase().endsWith(ext);\n};\nconst starDotStarRE = /^\\*+\\.\\*+$/;\nconst starDotStarTest = (f) => !f.startsWith('.') && f.includes('.');\nconst starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.');\nconst dotStarRE = /^\\.\\*+$/;\nconst dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');\nconst starRE = /^\\*+$/;\nconst starTest = (f) => f.length !== 0 && !f.startsWith('.');\nconst starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';\nconst qmarksRE = /^\\?+([^+@!?\\*\\[\\(]*)?$/;\nconst qmarksTestNocase = ([$0, ext = '']) => {\n const noext = qmarksTestNoExt([$0]);\n if (!ext)\n return noext;\n ext = ext.toLowerCase();\n return (f) => noext(f) && f.toLowerCase().endsWith(ext);\n};\nconst qmarksTestNocaseDot = ([$0, ext = '']) => {\n const noext = qmarksTestNoExtDot([$0]);\n if (!ext)\n return noext;\n ext = ext.toLowerCase();\n return (f) => noext(f) && f.toLowerCase().endsWith(ext);\n};\nconst qmarksTestDot = ([$0, ext = '']) => {\n const noext = qmarksTestNoExtDot([$0]);\n return !ext ? noext : (f) => noext(f) && f.endsWith(ext);\n};\nconst qmarksTest = ([$0, ext = '']) => {\n const noext = qmarksTestNoExt([$0]);\n return !ext ? noext : (f) => noext(f) && f.endsWith(ext);\n};\nconst qmarksTestNoExt = ([$0]) => {\n const len = $0.length;\n return (f) => f.length === len && !f.startsWith('.');\n};\nconst qmarksTestNoExtDot = ([$0]) => {\n const len = $0.length;\n return (f) => f.length === len && f !== '.' && f !== '..';\n};\n/* c8 ignore start */\nconst defaultPlatform = (typeof process === 'object' && process\n ? (typeof process.env === 'object' &&\n process.env &&\n process.env.__MINIMATCH_TESTING_PLATFORM__) ||\n process.platform\n : 'posix');\nconst path = {\n win32: { sep: '\\\\' },\n posix: { sep: '/' },\n};\n/* c8 ignore stop */\nexports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;\nexports.minimatch.sep = exports.sep;\nexports.GLOBSTAR = Symbol('globstar **');\nexports.minimatch.GLOBSTAR = exports.GLOBSTAR;\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nconst qmark = '[^/]';\n// * => any number of characters\nconst star = qmark + '*?';\n// ** when dots are allowed. Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nconst twoStarDot = '(?:(?!(?:\\\\/|^)(?:\\\\.{1,2})($|\\\\/)).)*?';\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nconst twoStarNoDot = '(?:(?!(?:\\\\/|^)\\\\.).)*?';\nconst filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);\nexports.filter = filter;\nexports.minimatch.filter = exports.filter;\nconst ext = (a, b = {}) => Object.assign({}, a, b);\nconst defaults = (def) => {\n if (!def || typeof def !== 'object' || !Object.keys(def).length) {\n return exports.minimatch;\n }\n const orig = exports.minimatch;\n const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));\n return Object.assign(m, {\n Minimatch: class Minimatch extends orig.Minimatch {\n constructor(pattern, options = {}) {\n super(pattern, ext(def, options));\n }\n static defaults(options) {\n return orig.defaults(ext(def, options)).Minimatch;\n }\n },\n AST: class AST extends orig.AST {\n /* c8 ignore start */\n constructor(type, parent, options = {}) {\n super(type, parent, ext(def, options));\n }\n /* c8 ignore stop */\n static fromGlob(pattern, options = {}) {\n return orig.AST.fromGlob(pattern, ext(def, options));\n }\n },\n unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),\n escape: (s, options = {}) => orig.escape(s, ext(def, options)),\n filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),\n defaults: (options) => orig.defaults(ext(def, options)),\n makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),\n braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),\n match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),\n sep: orig.sep,\n GLOBSTAR: exports.GLOBSTAR,\n });\n};\nexports.defaults = defaults;\nexports.minimatch.defaults = exports.defaults;\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nconst braceExpand = (pattern, options = {}) => {\n (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);\n // Thanks to Yeting Li <https://github.com/yetingli> for\n // improving this regexp to avoid a ReDOS vulnerability.\n if (options.nobrace || !/\\{(?:(?!\\{).)*\\}/.test(pattern)) {\n // shortcut. no need to expand.\n return [pattern];\n }\n return (0, brace_expansion_1.default)(pattern);\n};\nexports.braceExpand = braceExpand;\nexports.minimatch.braceExpand = exports.braceExpand;\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion. Otherwise, any series\n// of * is equivalent to a single *. Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\nconst makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();\nexports.makeRe = makeRe;\nexports.minimatch.makeRe = exports.makeRe;\nconst match = (list, pattern, options = {}) => {\n const mm = new Minimatch(pattern, options);\n list = list.filter(f => mm.match(f));\n if (mm.options.nonull && !list.length) {\n list.push(pattern);\n }\n return list;\n};\nexports.match = match;\nexports.minimatch.match = exports.match;\n// replace stuff like \\* with *\nconst globMagic = /[?*]|[+@!]\\(.*?\\)|\\[|\\]/;\nconst regExpEscape = (s) => s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\nclass Minimatch {\n options;\n set;\n pattern;\n windowsPathsNoEscape;\n nonegate;\n negate;\n comment;\n empty;\n preserveMultipleSlashes;\n partial;\n globSet;\n globParts;\n nocase;\n isWindows;\n platform;\n windowsNoMagicRoot;\n regexp;\n constructor(pattern, options = {}) {\n (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);\n options = options || {};\n this.options = options;\n this.pattern = pattern;\n this.platform = options.platform || defaultPlatform;\n this.isWindows = this.platform === 'win32';\n this.windowsPathsNoEscape =\n !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;\n if (this.windowsPathsNoEscape) {\n this.pattern = this.pattern.replace(/\\\\/g, '/');\n }\n this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;\n this.regexp = null;\n this.negate = false;\n this.nonegate = !!options.nonegate;\n this.comment = false;\n this.empty = false;\n this.partial = !!options.partial;\n this.nocase = !!this.options.nocase;\n this.windowsNoMagicRoot =\n options.windowsNoMagicRoot !== undefined\n ? options.windowsNoMagicRoot\n : !!(this.isWindows && this.nocase);\n this.globSet = [];\n this.globParts = [];\n this.set = [];\n // make the set of regexps etc.\n this.make();\n }\n hasMagic() {\n if (this.options.magicalBraces && this.set.length > 1) {\n return true;\n }\n for (const pattern of this.set) {\n for (const part of pattern) {\n if (typeof part !== 'string')\n return true;\n }\n }\n return false;\n }\n debug(..._) { }\n make() {\n const pattern = this.pattern;\n const options = this.options;\n // empty patterns and comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n this.comment = true;\n return;\n }\n if (!pattern) {\n this.empty = true;\n return;\n }\n // step 1: figure out negation, etc.\n this.parseNegate();\n // step 2: expand braces\n this.globSet = [...new Set(this.braceExpand())];\n if (options.debug) {\n this.debug = (...args) => console.error(...args);\n }\n this.debug(this.pattern, this.globSet);\n // step 3: now we have a set, so turn each one into a series of\n // path-portion matching patterns.\n // These will be regexps, except in the case of \"**\", which is\n // set to the GLOBSTAR object for globstar behavior,\n // and will not contain any / characters\n //\n // First, we preprocess to make the glob pattern sets a bit simpler\n // and deduped. There are some perf-killing patterns that can cause\n // problems with a glob walk, but we can simplify them down a bit.\n const rawGlobParts = this.globSet.map(s => this.slashSplit(s));\n this.globParts = this.preprocess(rawGlobParts);\n this.debug(this.pattern, this.globParts);\n // glob --> regexps\n let set = this.globParts.map((s, _, __) => {\n if (this.isWindows && this.windowsNoMagicRoot) {\n // check if it's a drive or unc path.\n const isUNC = s[0] === '' &&\n s[1] === '' &&\n (s[2] === '?' || !globMagic.test(s[2])) &&\n !globMagic.test(s[3]);\n const isDrive = /^[a-z]:/i.test(s[0]);\n if (isUNC) {\n return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))];\n }\n else if (isDrive) {\n return [s[0], ...s.slice(1).map(ss => this.parse(ss))];\n }\n }\n return s.map(ss => this.parse(ss));\n });\n this.debug(this.pattern, set);\n // filter out everything that didn't compile properly.\n this.set = set.filter(s => s.indexOf(false) === -1);\n // do not treat the ? in UNC paths as magic\n if (this.isWindows) {\n for (let i = 0; i < this.set.length; i++) {\n const p = this.set[i];\n if (p[0] === '' &&\n p[1] === '' &&\n this.globParts[i][2] === '?' &&\n typeof p[3] === 'string' &&\n /^[a-z]:$/i.test(p[3])) {\n p[2] = '?';\n }\n }\n }\n this.debug(this.pattern, this.set);\n }\n // various transforms to equivalent pattern sets that are\n // faster to process in a filesystem walk. The goal is to\n // eliminate what we can, and push all ** patterns as far\n // to the right as possible, even if it increases the number\n // of patterns that we have to process.\n preprocess(globParts) {\n // if we're not in globstar mode, then turn all ** into *\n if (this.options.noglobstar) {\n for (let i = 0; i < globParts.length; i++) {\n for (let j = 0; j < globParts[i].length; j++) {\n if (globParts[i][j] === '**') {\n globParts[i][j] = '*';\n }\n }\n }\n }\n const { optimizationLevel = 1 } = this.options;\n if (optimizationLevel >= 2) {\n // aggressive optimization for the purpose of fs walking\n globParts = this.firstPhasePreProcess(globParts);\n globParts = this.secondPhasePreProcess(globParts);\n }\n else if (optimizationLevel >= 1) {\n // just basic optimizations to remove some .. parts\n globParts = this.levelOneOptimize(globParts);\n }\n else {\n // just collapse multiple ** portions into one\n globParts = this.adjascentGlobstarOptimize(globParts);\n }\n return globParts;\n }\n // just get rid of adjascent ** portions\n adjascentGlobstarOptimize(globParts) {\n return globParts.map(parts => {\n let gs = -1;\n while (-1 !== (gs = parts.indexOf('**', gs + 1))) {\n let i = gs;\n while (parts[i + 1] === '**') {\n i++;\n }\n if (i !== gs) {\n parts.splice(gs, i - gs);\n }\n }\n return parts;\n });\n }\n // get rid of adjascent ** and resolve .. portions\n levelOneOptimize(globParts) {\n return globParts.map(parts => {\n parts = parts.reduce((set, part) => {\n const prev = set[set.length - 1];\n if (part === '**' && prev === '**') {\n return set;\n }\n if (part === '..') {\n if (prev && prev !== '..' && prev !== '.' && prev !== '**') {\n set.pop();\n return set;\n }\n }\n set.push(part);\n return set;\n }, []);\n return parts.length === 0 ? [''] : parts;\n });\n }\n levelTwoFileOptimize(parts) {\n if (!Array.isArray(parts)) {\n parts = this.slashSplit(parts);\n }\n let didSomething = false;\n do {\n didSomething = false;\n // <pre>/<e>/<rest> -> <pre>/<rest>\n if (!this.preserveMultipleSlashes) {\n for (let i = 1; i < parts.length - 1; i++) {\n const p = parts[i];\n // don't squeeze out UNC patterns\n if (i === 1 && p === '' && parts[0] === '')\n continue;\n if (p === '.' || p === '') {\n didSomething = true;\n parts.splice(i, 1);\n i--;\n }\n }\n if (parts[0] === '.' &&\n parts.length === 2 &&\n (parts[1] === '.' || parts[1] === '')) {\n didSomething = true;\n parts.pop();\n }\n }\n // <pre>/<p>/../<rest> -> <pre>/<rest>\n let dd = 0;\n while (-1 !== (dd = parts.indexOf('..', dd + 1))) {\n const p = parts[dd - 1];\n if (p && p !== '.' && p !== '..' && p !== '**') {\n didSomething = true;\n parts.splice(dd - 1, 2);\n dd -= 2;\n }\n }\n } while (didSomething);\n return parts.length === 0 ? [''] : parts;\n }\n // First phase: single-pattern processing\n // <pre> is 1 or more portions\n // <rest> is 1 or more portions\n // <p> is any portion other than ., .., '', or **\n // <e> is . or ''\n //\n // **/.. is *brutal* for filesystem walking performance, because\n // it effectively resets the recursive walk each time it occurs,\n // and ** cannot be reduced out by a .. pattern part like a regexp\n // or most strings (other than .., ., and '') can be.\n //\n // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}\n // <pre>/<e>/<rest> -> <pre>/<rest>\n // <pre>/<p>/../<rest> -> <pre>/<rest>\n // **/**/<rest> -> **/<rest>\n //\n // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow\n // this WOULD be allowed if ** did follow symlinks, or * didn't\n firstPhasePreProcess(globParts) {\n let didSomething = false;\n do {\n didSomething = false;\n // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}\n for (let parts of globParts) {\n let gs = -1;\n while (-1 !== (gs = parts.indexOf('**', gs + 1))) {\n let gss = gs;\n while (parts[gss + 1] === '**') {\n // <pre>/**/**/<rest> -> <pre>/**/<rest>\n gss++;\n }\n // eg, if gs is 2 and gss is 4, that means we have 3 **\n // parts, and can remove 2 of them.\n if (gss > gs) {\n parts.splice(gs + 1, gss - gs);\n }\n let next = parts[gs + 1];\n const p = parts[gs + 2];\n const p2 = parts[gs + 3];\n if (next !== '..')\n continue;\n if (!p ||\n p === '.' ||\n p === '..' ||\n !p2 ||\n p2 === '.' ||\n p2 === '..') {\n continue;\n }\n didSomething = true;\n // edit parts in place, and push the new one\n parts.splice(gs, 1);\n const other = parts.slice(0);\n other[gs] = '**';\n globParts.push(other);\n gs--;\n }\n // <pre>/<e>/<rest> -> <pre>/<rest>\n if (!this.preserveMultipleSlashes) {\n for (let i = 1; i < parts.length - 1; i++) {\n const p = parts[i];\n // don't squeeze out UNC patterns\n if (i === 1 && p === '' && parts[0] === '')\n continue;\n if (p === '.' || p === '') {\n didSomething = true;\n parts.splice(i, 1);\n i--;\n }\n }\n if (parts[0] === '.' &&\n parts.length === 2 &&\n (parts[1] === '.' || parts[1] === '')) {\n didSomething = true;\n parts.pop();\n }\n }\n // <pre>/<p>/../<rest> -> <pre>/<rest>\n let dd = 0;\n while (-1 !== (dd = parts.indexOf('..', dd + 1))) {\n const p = parts[dd - 1];\n if (p && p !== '.' && p !== '..' && p !== '**') {\n didSomething = true;\n const needDot = dd === 1 && parts[dd + 1] === '**';\n const splin = needDot ? ['.'] : [];\n parts.splice(dd - 1, 2, ...splin);\n if (parts.length === 0)\n parts.push('');\n dd -= 2;\n }\n }\n }\n } while (didSomething);\n return globParts;\n }\n // second phase: multi-pattern dedupes\n // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>\n // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>\n // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>\n //\n // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>\n // ^-- not valid because ** doens't follow symlinks\n secondPhasePreProcess(globParts) {\n for (let i = 0; i < globParts.length - 1; i++) {\n for (let j = i + 1; j < globParts.length; j++) {\n const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);\n if (matched) {\n globParts[i] = [];\n globParts[j] = matched;\n break;\n }\n }\n }\n return globParts.filter(gs => gs.length);\n }\n partsMatch(a, b, emptyGSMatch = false) {\n let ai = 0;\n let bi = 0;\n let result = [];\n let which = '';\n while (ai < a.length && bi < b.length) {\n if (a[ai] === b[bi]) {\n result.push(which === 'b' ? b[bi] : a[ai]);\n ai++;\n bi++;\n }\n else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {\n result.push(a[ai]);\n ai++;\n }\n else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {\n result.push(b[bi]);\n bi++;\n }\n else if (a[ai] === '*' &&\n b[bi] &&\n (this.options.dot || !b[bi].startsWith('.')) &&\n b[bi] !== '**') {\n if (which === 'b')\n return false;\n which = 'a';\n result.push(a[ai]);\n ai++;\n bi++;\n }\n else if (b[bi] === '*' &&\n a[ai] &&\n (this.options.dot || !a[ai].startsWith('.')) &&\n a[ai] !== '**') {\n if (which === 'a')\n return false;\n which = 'b';\n result.push(b[bi]);\n ai++;\n bi++;\n }\n else {\n return false;\n }\n }\n // if we fall out of the loop, it means they two are identical\n // as long as their lengths match\n return a.length === b.length && result;\n }\n parseNegate() {\n if (this.nonegate)\n return;\n const pattern = this.pattern;\n let negate = false;\n let negateOffset = 0;\n for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {\n negate = !negate;\n negateOffset++;\n }\n if (negateOffset)\n this.pattern = pattern.slice(negateOffset);\n this.negate = negate;\n }\n // set partial to true to test if, for example,\n // \"/a/b\" matches the start of \"/*/b/*/d\"\n // Partial means, if you run out of file before you run\n // out of pattern, then that's fine, as long as all\n // the parts match.\n matchOne(file, pattern, partial = false) {\n const options = this.options;\n // UNC paths like //?/X:/... can match X:/... and vice versa\n // Drive letters in absolute drive or unc paths are always compared\n // case-insensitively.\n if (this.isWindows) {\n const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);\n const fileUNC = !fileDrive &&\n file[0] === '' &&\n file[1] === '' &&\n file[2] === '?' &&\n /^[a-z]:$/i.test(file[3]);\n const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);\n const patternUNC = !patternDrive &&\n pattern[0] === '' &&\n pattern[1] === '' &&\n pattern[2] === '?' &&\n typeof pattern[3] === 'string' &&\n /^[a-z]:$/i.test(pattern[3]);\n const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;\n const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;\n if (typeof fdi === 'number' && typeof pdi === 'number') {\n const [fd, pd] = [file[fdi], pattern[pdi]];\n if (fd.toLowerCase() === pd.toLowerCase()) {\n pattern[pdi] = fd;\n if (pdi > fdi) {\n pattern = pattern.slice(pdi);\n }\n else if (fdi > pdi) {\n file = file.slice(fdi);\n }\n }\n }\n }\n // resolve and reduce . and .. portions in the file as well.\n // dont' need to do the second phase, because it's only one string[]\n const { optimizationLevel = 1 } = this.options;\n if (optimizationLevel >= 2) {\n file = this.levelTwoFileOptimize(file);\n }\n this.debug('matchOne', this, { file, pattern });\n this.debug('matchOne', file.length, pattern.length);\n for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {\n this.debug('matchOne loop');\n var p = pattern[pi];\n var f = file[fi];\n this.debug(pattern, p, f);\n // should be impossible.\n // some invalid regexp stuff in the set.\n /* c8 ignore start */\n if (p === false) {\n return false;\n }\n /* c8 ignore stop */\n if (p === exports.GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f]);\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi;\n var pr = pi + 1;\n if (pr === pl) {\n this.debug('** at the end');\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' ||\n file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.'))\n return false;\n }\n return true;\n }\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr];\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee);\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee);\n // found a match.\n return true;\n }\n else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' ||\n swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr);\n break;\n }\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue');\n fr++;\n }\n }\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n /* c8 ignore start */\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr);\n if (fr === fl) {\n return true;\n }\n }\n /* c8 ignore stop */\n return false;\n }\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n let hit;\n if (typeof p === 'string') {\n hit = f === p;\n this.debug('string match', p, f, hit);\n }\n else {\n hit = p.test(f);\n this.debug('pattern match', p, f, hit);\n }\n if (!hit)\n return false;\n }\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true;\n }\n else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial;\n }\n else if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n return fi === fl - 1 && file[fi] === '';\n /* c8 ignore start */\n }\n else {\n // should be unreachable.\n throw new Error('wtf?');\n }\n /* c8 ignore stop */\n }\n braceExpand() {\n return (0, exports.braceExpand)(this.pattern, this.options);\n }\n parse(pattern) {\n (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);\n const options = this.options;\n // shortcuts\n if (pattern === '**')\n return exports.GLOBSTAR;\n if (pattern === '')\n return '';\n // far and away, the most common glob pattern parts are\n // *, *.*, and *.<ext> Add a fast check method for those.\n let m;\n let fastTest = null;\n if ((m = pattern.match(starRE))) {\n fastTest = options.dot ? starTestDot : starTest;\n }\n else if ((m = pattern.match(starDotExtRE))) {\n fastTest = (options.nocase\n ? options.dot\n ? starDotExtTestNocaseDot\n : starDotExtTestNocase\n : options.dot\n ? starDotExtTestDot\n : starDotExtTest)(m[1]);\n }\n else if ((m = pattern.match(qmarksRE))) {\n fastTest = (options.nocase\n ? options.dot\n ? qmarksTestNocaseDot\n : qmarksTestNocase\n : options.dot\n ? qmarksTestDot\n : qmarksTest)(m);\n }\n else if ((m = pattern.match(starDotStarRE))) {\n fastTest = options.dot ? starDotStarTestDot : starDotStarTest;\n }\n else if ((m = pattern.match(dotStarRE))) {\n fastTest = dotStarTest;\n }\n const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();\n if (fastTest && typeof re === 'object') {\n // Avoids overriding in frozen environments\n Reflect.defineProperty(re, 'test', { value: fastTest });\n }\n return re;\n }\n makeRe() {\n if (this.regexp || this.regexp === false)\n return this.regexp;\n // at this point, this.set is a 2d array of partial\n // pattern strings, or \"**\".\n //\n // It's better to use .match(). This function shouldn't\n // be used, really, but it's pretty convenient sometimes,\n // when you just want to work with a regex.\n const set = this.set;\n if (!set.length) {\n this.regexp = false;\n return this.regexp;\n }\n const options = this.options;\n const twoStar = options.noglobstar\n ? star\n : options.dot\n ? twoStarDot\n : twoStarNoDot;\n const flags = new Set(options.nocase ? ['i'] : []);\n // regexpify non-globstar patterns\n // if ** is only item, then we just do one twoStar\n // if ** is first, and there are more, prepend (\\/|twoStar\\/)? to next\n // if ** is last, append (\\/twoStar|) to previous\n // if ** is in the middle, append (\\/|\\/twoStar\\/) to previous\n // then filter out GLOBSTAR symbols\n let re = set\n .map(pattern => {\n const pp = pattern.map(p => {\n if (p instanceof RegExp) {\n for (const f of p.flags.split(''))\n flags.add(f);\n }\n return typeof p === 'string'\n ? regExpEscape(p)\n : p === exports.GLOBSTAR\n ? exports.GLOBSTAR\n : p._src;\n });\n pp.forEach((p, i) => {\n const next = pp[i + 1];\n const prev = pp[i - 1];\n if (p !== exports.GLOBSTAR || prev === exports.GLOBSTAR) {\n return;\n }\n if (prev === undefined) {\n if (next !== undefined && next !== exports.GLOBSTAR) {\n pp[i + 1] = '(?:\\\\/|' + twoStar + '\\\\/)?' + next;\n }\n else {\n pp[i] = twoStar;\n }\n }\n else if (next === undefined) {\n pp[i - 1] = prev + '(?:\\\\/|' + twoStar + ')?';\n }\n else if (next !== exports.GLOBSTAR) {\n pp[i - 1] = prev + '(?:\\\\/|\\\\/' + twoStar + '\\\\/)' + next;\n pp[i + 1] = exports.GLOBSTAR;\n }\n });\n return pp.filter(p => p !== exports.GLOBSTAR).join('/');\n })\n .join('|');\n // need to wrap in parens if we had more than one thing with |,\n // otherwise only the first will be anchored to ^ and the last to $\n const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];\n // must match entire pattern\n // ending in a * or ** will make it less strict.\n re = '^' + open + re + close + '$';\n // can match anything, as long as it's not this.\n if (this.negate)\n re = '^(?!' + re + ').+$';\n try {\n this.regexp = new RegExp(re, [...flags].join(''));\n /* c8 ignore start */\n }\n catch (ex) {\n // should be impossible\n this.regexp = false;\n }\n /* c8 ignore stop */\n return this.regexp;\n }\n slashSplit(p) {\n // if p starts with // on windows, we preserve that\n // so that UNC paths aren't broken. Otherwise, any number of\n // / characters are coalesced into one, unless\n // preserveMultipleSlashes is set to true.\n if (this.preserveMultipleSlashes) {\n return p.split('/');\n }\n else if (this.isWindows && /^\\/\\/[^\\/]+/.test(p)) {\n // add an extra '' for the one we lose\n return ['', ...p.split(/\\/+/)];\n }\n else {\n return p.split(/\\/+/);\n }\n }\n match(f, partial = this.partial) {\n this.debug('match', f, this.pattern);\n // short-circuit in the case of busted things.\n // comments, etc.\n if (this.comment) {\n return false;\n }\n if (this.empty) {\n return f === '';\n }\n if (f === '/' && partial) {\n return true;\n }\n const options = this.options;\n // windows: need to use /, not \\\n if (this.isWindows) {\n f = f.split('\\\\').join('/');\n }\n // treat the test path as a set of pathparts.\n const ff = this.slashSplit(f);\n this.debug(this.pattern, 'split', ff);\n // just ONE of the pattern sets in this.set needs to match\n // in order for it to be valid. If negating, then just one\n // match means that we have failed.\n // Either way, return on the first hit.\n const set = this.set;\n this.debug(this.pattern, 'set', set);\n // Find the basename of the path by looking for the last non-empty segment\n let filename = ff[ff.length - 1];\n if (!filename) {\n for (let i = ff.length - 2; !filename && i >= 0; i--) {\n filename = ff[i];\n }\n }\n for (let i = 0; i < set.length; i++) {\n const pattern = set[i];\n let file = ff;\n if (options.matchBase && pattern.length === 1) {\n file = [filename];\n }\n const hit = this.matchOne(file, pattern, partial);\n if (hit) {\n if (options.flipNegate) {\n return true;\n }\n return !this.negate;\n }\n }\n // didn't get any hits. this is success if it's a negative\n // pattern, failure otherwise.\n if (options.flipNegate) {\n return false;\n }\n return this.negate;\n }\n static defaults(def) {\n return exports.minimatch.defaults(def).Minimatch;\n }\n}\nexports.Minimatch = Minimatch;\n/* c8 ignore start */\nvar ast_js_2 = require(\"./ast.js\");\nObject.defineProperty(exports, \"AST\", { enumerable: true, get: function () { return ast_js_2.AST; } });\nvar escape_js_2 = require(\"./escape.js\");\nObject.defineProperty(exports, \"escape\", { enumerable: true, get: function () { return escape_js_2.escape; } });\nvar unescape_js_2 = require(\"./unescape.js\");\nObject.defineProperty(exports, \"unescape\", { enumerable: true, get: function () { return unescape_js_2.unescape; } });\n/* c8 ignore stop */\nexports.minimatch.AST = ast_js_1.AST;\nexports.minimatch.Minimatch = Minimatch;\nexports.minimatch.escape = escape_js_1.escape;\nexports.minimatch.unescape = unescape_js_1.unescape;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.unescape = void 0;\n/**\n * Un-escape a string that has been escaped with {@link escape}.\n *\n * If the {@link windowsPathsNoEscape} option is used, then square-brace\n * escapes are removed, but not backslash escapes. For example, it will turn\n * the string `'[*]'` into `*`, but it will not turn `'\\\\*'` into `'*'`,\n * becuase `\\` is a path separator in `windowsPathsNoEscape` mode.\n *\n * When `windowsPathsNoEscape` is not set, then both brace escapes and\n * backslash escapes are removed.\n *\n * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped\n * or unescaped.\n */\nconst unescape = (s, { windowsPathsNoEscape = false, } = {}) => {\n return windowsPathsNoEscape\n ? s.replace(/\\[([^\\/\\\\])\\]/g, '$1')\n : s.replace(/((?!\\\\).|^)\\[([^\\/\\\\])\\]/g, '$1$2').replace(/\\\\([^\\/])/g, '$1');\n};\nexports.unescape = unescape;\n//# sourceMappingURL=unescape.js.map","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(265);\n"],"names":["balanced","a","b","str","RegExp","maybeMatch","r","range","start","end","pre","slice","body","length","post","reg","m","match","begs","beg","left","right","result","ai","indexOf","bi","i","push","pop","module","exports","substr","expand","split","join","escSlash","escOpen","escClose","escComma","escPeriod","escapeBraces","map","unescapeBraces","Math","random","numeric","parseInt","charCodeAt","parseCommaParts","parts","p","postParts","shift","apply","embrace","isPadded","el","test","lte","y","gte","isTop","expansions","k","expansion","n","N","isNumericSequence","isAlphaSequence","isSequence","isOptions","x","width","max","incr","abs","pad","some","c","String","fromCharCode","need","z","Array","j","async","uris","ret","file_of_opts","uri_to_file_of_opts","txt","vscode","workspace","openTextDocument","getText","prnt","exclude_paths0","getCMD","exc","exclude_path","err","set_cmd_type","static","msg","console_msg","show","window","createOutputChannel","this","appendLine","set_placeholder0","_txt","cmd_type","activeTextEditor","document","v","cmd_rgx","set_collect_rgx_from_doc","undefined","_collect_rgx_from_doc","toString","open_rgx","close_rgx","construct_rgx","collect_rgx_from_doc","source","_collect_rgx_from_doc0","exec","try_it","strn_2_rgx","_m","replaceAll","placeholder0","strn","check_end_of_rgx","flags","_flags","regex","error","Error","message","showInformationMessage","rgx","uri","fsPath","activate_","context","allConfigData","todoEditors","doneEditors","resetDecorations","visibleTextEditors","forEach","configData","ruleData","decorationType","dispose","configurations","getConfiguration","get","toArray","configuration","globs","paths","rules","buildRuleData","updateDecorations","every","editor","filePath","asRelativePath","fileName","matchingRuleData","flatMap","glob","pattern","includes","minimatch","nocase","process","platform","documentText","regexes","multiLine","ranges","matchAll","index","startPos","positionAt","endPos","Range","lineNum","lineCount","lineAt","text","setDecorations","_updateDecorations","onDidChangeConfiguration","event","affectsConfiguration","subscriptions","onDidChangeVisibleTextEditors","visibleEditors","filter","onDidChangeTextDocument","visibleEditor","intervalId","setInterval","clearInterval","value","isArray","ansiColorNames","Set","rule","color","has","ThemeColor","textDecoration","underline","strikeThrough","createTextEditorDecorationType","fontWeight","bold","fontStyle","italic","matchCase","patterns","menu","res","init","sync_bkp","raw_writeBkp","i_c_fn_head_opts","path_to_conf","console","log","disposable","commands","registerCommand","disposable0","langId","lang","from","doc","file_was_bkuped7","reformat","one_line_comment","open_comment","close_comment","within_comment","prev_strn","strn0","pad_len","count_spaces_from_left","trim","exclude_comments_from_ln","pad_strn_from_left","writeBkp","c_cpp_d_head","rust_head","ln0","ln","open_curly","close_curly","repeat","padding","arr","run","bkp_source_file","path0","path","new_name","suffix","copyFileSync","compare_files","bkuped","indx","existsSync","_1st","_2nd","open_1st","open_2nd","readFileSync","encoding","flag","data","writeFileSync","vsc","languageId","name","file_exts","toLowerCase","lnum","mark_fn_head","set_info","fn_head","get_head","name7","_name7","try_set_info","cmds","f12","new_pressF12","F12_action","cont","more_rgxs","matches","_a_get_files_in_workspace","exclude_paths","calc_locations","handle_rgx_cmd","new_EL","kind","Start","Position","End","_1st_ch_indx","len","Location","file_ext","langsName","findFiles","restrict_search","max_num_of_res","_c_fn_body","symbols","c_like","lang_element","exclude_strns","lines","bee_ep","orig_lines","set_lines","exclude_comments","one_line_block","open_block","close_block","tst_class","block_head","one_line_comment7","within_comment7","class_entry7","head7","one_line_block7","block_entry7","close_class7","update_block_state","close_block7","txt0","symb","for_beep","new_strn","replace","mode","dbg","rmSync","rust_fn_body","opened_class","start_class","start_block","block_state","sav_block_state","search_curlies","no_comments","_block_head","add_symb","_rust_fn_body","rust","startLine","endLine","objName","objType","set_rng","SymbolInformation","eval","butterfly","rloc","class_symbols","orig","c_fn_body","count_quotes","quote_state","tmp_quote_state","get_c_fn_head","provideDefinition","position","token","wordRange","getWordRangeAtPosition","word","extra_locations","handleExtraCMDs","results","isCancellationRequested","idx","after","_0","set_lang","been_set","regDefProvider","run_opt","key","provide_lang_D","languages","registerDocumentSymbolProvider","language","ShowDocumentSymbols","provide_lang_CPP","provide_lang_C","provide_lang_Rust","selector","sel","scheme","mkDocSel","registerDefinitionProvider","langDefinitionProvider","_manage_output","manage_output","C","CPP","D","Rust","provideDocumentSymbols","text0","require","Object","defineProperty","assertValidPattern","TypeError","AST","brace_expressions_js_1","unescape_js_1","types","isExtglobType","startNoDot","addPatternStart","justDots","reSpecials","regExpEscape","s","qmark","star","starNoEmpty","type","constructor","parent","options","hasMagic","pp","part","copyIn","toJSON","isStart","unshift","isEnd","pl","clone","ast","pos","opt","escaping","inBrace","braceStart","braceNeg","acc","charAt","noext","ext","substring","fromGlob","toMMPattern","re","uflag","toRegExpSource","nocaseMagicOnly","toUpperCase","assign","_src","_glob","allowDot","dot","noEmpty","src","_","aps","needNoTrav","startsWith","needNoDot","unescape","repeated","bodyDotAllowed","final","_hasMagic","needUflag","consumed","magic","parseClass","posixClasses","braceEscape","rangesToString","negs","sawStart","negate","rangeStart","WHILE","cls","unip","u","neg","entries","sranges","snegs","escape","windowsPathsNoEscape","__importDefault","mod","__esModule","Minimatch","makeRe","braceExpand","defaults","GLOBSTAR","sep","brace_expansion_1","assert_valid_pattern_js_1","ast_js_1","escape_js_1","nocomment","starDotExtRE","starDotExtTest","f","endsWith","starDotExtTestDot","starDotExtTestNocase","starDotExtTestNocaseDot","starDotStarRE","starDotStarTest","starDotStarTestDot","dotStarRE","dotStarTest","starRE","starTest","starTestDot","qmarksRE","qmarksTestNocase","$0","qmarksTestNoExt","qmarksTestNocaseDot","qmarksTestNoExtDot","qmarksTestDot","qmarksTest","defaultPlatform","env","__MINIMATCH_TESTING_PLATFORM__","Symbol","def","keys","super","list","nobrace","default","mm","nonull","globMagic","set","nonegate","comment","empty","preserveMultipleSlashes","partial","globSet","globParts","isWindows","windowsNoMagicRoot","regexp","allowWindowsEscape","make","magicalBraces","debug","parseNegate","args","rawGlobParts","slashSplit","preprocess","__","isUNC","isDrive","ss","parse","noglobstar","optimizationLevel","firstPhasePreProcess","secondPhasePreProcess","levelOneOptimize","adjascentGlobstarOptimize","gs","splice","reduce","prev","levelTwoFileOptimize","didSomething","dd","gss","next","p2","other","splin","matched","partsMatch","emptyGSMatch","which","negateOffset","matchOne","file","fileDrive","fileUNC","patternDrive","fdi","pdi","fd","pd","fi","pi","fl","fr","pr","swallowee","hit","fastTest","Reflect","twoStar","add","open","close","ex","ff","filename","matchBase","flipNegate","ast_js_2","enumerable","escape_js_2","unescape_js_2","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","call","__webpack_exports__"],"sourceRoot":""}
|
package/empty
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import typescriptEslint from "typescript-eslint";
|
|
2
|
+
|
|
3
|
+
export default [{
|
|
4
|
+
files: ["**/*.ts"],
|
|
5
|
+
}, {
|
|
6
|
+
plugins: {
|
|
7
|
+
"@typescript-eslint": typescriptEslint.plugin,
|
|
8
|
+
},
|
|
9
|
+
|
|
10
|
+
languageOptions: {
|
|
11
|
+
parser: typescriptEslint.parser,
|
|
12
|
+
ecmaVersion: 2022,
|
|
13
|
+
sourceType: "module",
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
rules: {
|
|
17
|
+
"@typescript-eslint/naming-convention": ["warn", {
|
|
18
|
+
selector: "import",
|
|
19
|
+
format: ["camelCase", "PascalCase"],
|
|
20
|
+
}],
|
|
21
|
+
|
|
22
|
+
curly: "warn",
|
|
23
|
+
eqeqeq: "warn",
|
|
24
|
+
"no-throw-literal": "warn",
|
|
25
|
+
semi: "warn",
|
|
26
|
+
},
|
|
27
|
+
}];
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|