MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / get

Method get

src/util.ts:415–421  ·  view source on GitHub ↗
(key: string, defaultValue?: T)

Source from the content-addressed store, hash-verified

413 // eslint-disable-next-line @typescript-eslint/no-explicit-any
414 items = new Map<string, any>()
415 public get<T>(key: string, defaultValue?: T): T | undefined {
416 if (this.items.has(key)) {
417 return <T>this.items.get(key) || defaultValue;
418 } else {
419 return defaultValue;
420 }
421 }
422 // eslint-disable-next-line @typescript-eslint/require-await, @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
423 public async update(key: string, value: any): Promise<void> {
424 this.items.set(key, value);

Callers 15

getChildrenMethod · 0.45
clearWorkspaceFunction · 0.45
runSourceFunction · 0.45
makeTerminalOptionsFunction · 0.45
deleteTerminalFunction · 0.45
chooseTerminalFunction · 0.45
runTextInTermFunction · 0.45
setFocusFunction · 0.45
getLineFromCacheMethod · 0.45
createClientMethod · 0.45
checkClientMethod · 0.45

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected