constructor(name: string) {
this.ctime = Date.now();
this.mtime = Date.now();
this.size = 0;
this.name = name;
this.entries = new Map();
}
}
Frontier kind: Code frontier
unlabeled · c_9d51ddb42103
1363 tests · 11320 LOC · 45 files · introduces 0 tests · 73 LOC · 1 file
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotPluginConverters.test|title=copilotPluginConverters toSdkInstructionDirectories deduplicates directories|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotPluginConverters.test|title=copilotPluginConverters toSdkInstructionDirectories extracts parent directories of instruction files|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotPluginConverters.test|title=copilotPluginConverters toSdkSkillDirectories deduplicates directories|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotPluginConverters.test|title=copilotPluginConverters toSdkSkillDirectories extracts parent directories of skill URIs|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotPluginConverters.test|title=copilotPluginConverters parsedPluginsEqual returns false for different lengths|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotPluginConverters.test|title=copilotPluginConverters parsedPluginsEqual returns false for different plugin formats|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotPluginConverters.test|title=copilotPluginConverters parsedPluginsEqual returns true for identical empty plugins|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose disposables|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/lifecycle.test|title=Lifecycle dispose single disposable|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 73 introduced LOC across 20 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
constructor(name: string) {
this.ctime = Date.now();
this.mtime = Date.now();
this.size = 0;
this.name = name;
this.entries = new Map();
}
}
IFileSystemProviderWithFileAtomicWriteCapability,
IFileSystemProviderWithFileAtomicDeleteCapability {
private memoryFdCounter = 0;
private readonly fdMemory = new Map<number, { file: File; resource: URI; append: boolean; write: boolean }>();
private _onDidChangeCapabilities = this._register(new Emitter<void>());
readonly onDidChangeCapabilities = this._onDidChangeCapabilities.event;
private _capabilities = FileSystemProviderCapabilities.FileReadWrite | FileSystemProviderCapabilities.FileOpenReadWriteClose | FileSystemProviderCapabilities.FileAppend | FileSystemProviderCapabilities.PathCaseSensitive;
get capabilities(): FileSystemProviderCapabilities { return this._capabilities; }
setReadOnly(readonly: boolean) {
const isReadonly = !!(this._capabilities & FileSystemProviderCapabilities.Readonly);
if (readonly !== isReadonly) {
}
}
root = new Directory('');
// --- manage file metadata
async stat(resource: URI): Promise<IStat> {
return this._lookup(resource, false);
}
async readdir(resource: URI): Promise<[string, FileType][]> {
const entry = this._lookupAsDirectory(resource, false);
const result: [string, FileType][] = [];
return result;
}
// --- manage file contents
async readFile(resource: URI): Promise<Uint8Array> {
const data = this._lookupAsFile(resource, false).data;
if (data) {
throw createFileSystemProviderError('file not found', FileSystemProviderErrorCode.FileNotFound);
}
readFileStream(resource: URI): ReadableStreamEvents<Uint8Array> {
const data = this._lookupAsFile(resource, false).data;
return stream;
}
async writeFile(resource: URI, content: Uint8Array, opts: IFileWriteOptions): Promise<void> {
const basename = resources.basename(resource);
const parent = this._lookupParentDirectory(resource);
this._fireSoon({ type: FileChangeType.UPDATED, resource });
}
// file open/read/write/close
open(resource: URI, opts: IFileOpenOptions): Promise<number> {
let file = this._lookup(resource, true);
const write = isFileOpenForWriteOptions(opts);
return Promise.resolve(fd);
}
close(fd: number): Promise<void> {
const fdData = this.fdMemory.get(fd);
if (fdData?.write) {
return Promise.resolve();
}
read(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number> {
const fdData = this.fdMemory.get(fd);
if (!fdData) {
return Promise.resolve(toWrite.byteLength);
}
write(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number> {
const fdData = this.fdMemory.get(fd);
if (!fdData) {
return Promise.resolve(toWrite.byteLength);
}
// --- manage files/folders
async rename(from: URI, to: URI, opts: IFileOverwriteOptions): Promise<void> {
if (!opts.overwrite && this._lookup(to, true)) {
throw createFileSystemProviderError('file exists already', FileSystemProviderErrorCode.FileExists);
);
}
async delete(resource: URI, opts: IFileDeleteOptions): Promise<void> {
const dirname = resources.dirname(resource);
const basename = resources.basename(resource);
}
}
async mkdir(resource: URI): Promise<void> {
if (this._lookup(resource, true)) {
throw createFileSystemProviderError('file exists already', FileSystemProviderErrorCode.FileExists);
this._fireSoon({ type: FileChangeType.UPDATED, resource: dirname }, { type: FileChangeType.ADDED, resource });
}
// --- lookup
private _lookup(uri: URI, silent: false): Entry;
private _lookup(uri: URI, silent: boolean): Entry | undefined;
private _lookup(uri: URI, silent: boolean): Entry | undefined {
const parts = uri.path.split('/');
let entry: Entry = this.root;
return entry;
}
private _lookupAsDirectory(uri: URI, silent: boolean): Directory {
const entry = this._lookup(uri, silent);
if (entry instanceof Directory) {
throw createFileSystemProviderError('file not a directory', FileSystemProviderErrorCode.FileNotADirectory);
}
private _lookupAsFile(uri: URI, silent: boolean): File {
const entry = this._lookup(uri, silent);
if (entry instanceof File) {
throw createFileSystemProviderError('file is a directory', FileSystemProviderErrorCode.FileIsADirectory);
}
private _lookupParentDirectory(uri: URI): Directory {
const dirname = resources.dirname(uri);
return this._lookupAsDirectory(dirname, false);
}
// --- manage file events
private readonly _onDidChangeFile = this._register(new Emitter<readonly IFileChange[]>());
readonly onDidChangeFile: Event<readonly IFileChange[]> = this._onDidChangeFile.event;
private _bufferedChanges: IFileChange[] = [];
private _fireSoonHandle?: Timeout;
override dispose(): void {
this.fdMemory.clear();
}
}