MCPcopy Index your code
hub / github.com/microsoft/vscode / string

Method string

src/vs/editor/common/config/editorOptions.ts:1348–1353  ·  view source on GitHub ↗
(value: unknown, defaultValue: string)

Source from the content-addressed store, hash-verified

1346class EditorStringOption<K extends EditorOption> extends SimpleEditorOption<K, string> {
1347
1348 public static string(value: unknown, defaultValue: string): string {
1349 if (typeof value !== 'string') {
1350 return defaultValue;
1351 }
1352 return value;
1353 }
1354
1355 constructor(id: K, name: PossibleKeyName<string>, defaultValue: string, schema: IConfigurationPropertySchema | undefined = undefined) {
1356 if (typeof schema !== 'undefined') {

Callers 15

getServerFunction · 0.80
applyTerminalToolsFunction · 0.80
applyExtensionsToolsFunction · 0.80
applyTaskToolsFunction · 0.80
applyEditorToolsFunction · 0.80
applyQuickAccessToolsFunction · 0.80
applyChatToolsFunction · 0.80
applySCMToolsFunction · 0.80
applyCoreToolsFunction · 0.80
applyNotebookToolsFunction · 0.80
applySettingsToolsFunction · 0.80
applySearchToolsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected