mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Refactor and put id as property of TreeContentProvider
This commit is contained in:
22
src/vs/workbench/api/node/mainThreadExplorers.ts
Normal file
22
src/vs/workbench/api/node/mainThreadExplorers.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import {IThreadService} from 'vs/workbench/services/thread/common/threadService';
|
||||
import {ExtHostContext, MainThreadExplorersShape, ExtHostExplorersShape} from './extHost.protocol';
|
||||
|
||||
export class MainThreadExplorers extends MainThreadExplorersShape {
|
||||
private _proxy: ExtHostExplorersShape;
|
||||
|
||||
constructor(
|
||||
@IThreadService threadService: IThreadService
|
||||
) {
|
||||
super();
|
||||
|
||||
this._proxy = threadService.get(ExtHostContext.ExtHostExplorers);
|
||||
}
|
||||
|
||||
$registerTreeContentProvider(treeContentProviderId: string): void {
|
||||
const tree = this._proxy.$provideTextDocumentContent(treeContentProviderId);
|
||||
}
|
||||
|
||||
$unregisterTreeContentProvider(treeContentProviderId: string): void {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user