MCPcopy Create free account
hub / github.com/microsoft/vscode-extension-samples / getNode

Method getNode

tree-view-sample/src/ftpExplorer.ts:173–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171 }
172
173 private getNode(): FtpNode | undefined {
174 if (vscode.window.activeTextEditor) {
175 if (vscode.window.activeTextEditor.document.uri.scheme === 'ftp') {
176 return { resource: vscode.window.activeTextEditor.document.uri, isDirectory: false };
177 }
178 }
179 return undefined;
180 }
181}

Callers 1

revealMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected