Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cs50/ddb50.vsix
/ functions
Functions
20 in github.com/cs50/ddb50.vsix
⨍
Functions
20
◇
Types & classes
2
↓ 9 callers
Function
addMessage
({ id = uuidv4(), text, fromDuck }, askGpt = true)
static/ddb.js:117
↓ 4 callers
Function
getEnergy
* Gets ddbEnergy from local storage * (can regenerate based on elapsed time) * @param {tf} regen * @returns {number|null} ddbEnergy
static/ddb.js:280
↓ 4 callers
Method
webviewDeltaUpdate
(id: string, content: string)
src/extension.ts:299
↓ 3 callers
Function
resetMessages
()
static/ddb.js:143
↓ 3 callers
Function
setEnergy
* Sets ddbEnergy in local storage, renders changes * @param {number} ddbEnergy
static/ddb.js:326
↓ 2 callers
Method
getGptResponse
(id: string, payload: any, contextMessage: string="", chat = true)
src/extension.ts:198
↓ 2 callers
Function
reply
(prevMsg)
static/ddb.js:139
↓ 2 callers
Function
uuidv4
()
static/ddb.js:342
↓ 1 callers
Method
createDisplayMessage
(message: string)
src/extension.ts:184
↓ 1 callers
Function
getGptResponse
(id, message)
static/ddb.js:89
↓ 1 callers
Method
getHtmlForWebview
(webview: vscode.Webview)
src/extension.ts:308
↓ 1 callers
Function
getTiredMessage
* Gets a random message when ddb is tired * @param {string} id
static/ddb.js:101
↓ 1 callers
Function
increaseEnergy
* Increases ddbEnergy by specified amount, then renders changes * @param {number} increaseAmount
static/ddb.js:258
↓ 1 callers
Function
renderEnergy
* Renders ddb's energy bar in the DOM * @param {number} ddbEnergy
static/ddb.js:200
↓ 1 callers
Function
restoreMessages
()
static/ddb.js:154
Function
activate
(context: vscode.ExtensionContext)
src/extension.ts:15
Method
constructor
( private readonly _extensionUri: vscode.Uri, private readonly context: vscode.ExtensionContex
src/extension.ts:147
Function
deactivate
()
src/extension.ts:367
Function
resize
(e)
static/ddb.js:385
Method
resolveWebviewView
( webviewView: vscode.WebviewView, _context: vscode.WebviewViewResolveContext, _token:
src/extension.ts:152