Files
cline-multi-mirror/standalone/runtime-files/vscode/stub-utils.js
T
Bee 06e0973c04 Apply biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports (#5545)
* Enable biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports

* Apply new rules with format

* remove unused currentReplaceContent

* update nextTerminalId

* fix all format issues

* update biome config

* add back applyContextOptimizations and killAllChromeBrowsers
2025-08-19 11:57:50 -07:00

20 lines
507 B
JavaScript

function createStub(path) {
return new Proxy(() => {}, {
get: (_target, prop) => {
const fullPath = `${path}.${String(prop)}`
console.log(`Accessed stub: ${fullPath}`)
return createStub(fullPath)
},
apply: (_target, _thisArg, args) => {
console.log(`Called stub: ${path} with args:`, args)
return createStub(path)
},
construct: (_target, args) => {
console.log(`Constructed stub: ${path} with args:`, args)
return createStub(path)
},
})
}
module.exports = { createStub }