mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 00:09:30 +01:00
fix compile
This commit is contained in:
@@ -173,6 +173,9 @@ async function startWebSocketServer(agentService: AgentService, logService: ILog
|
||||
handleBrowseDirectory(uri) {
|
||||
return agentService.browseDirectory(URI.parse(uri));
|
||||
},
|
||||
handleWriteFile(params) {
|
||||
return agentService.writeFile(params);
|
||||
},
|
||||
async handleRestoreSession(session) {
|
||||
return agentService.restoreSession(URI.parse(session));
|
||||
},
|
||||
|
||||
@@ -77,6 +77,7 @@ class MockSideEffectHandler implements IProtocolSideEffectHandler {
|
||||
async handleListSessions(): Promise<ISessionSummary[]> { return []; }
|
||||
async handleRestoreSession(_session: string): Promise<void> { }
|
||||
handleGetResourceMetadata() { return { resources: [] }; }
|
||||
handleWriteFile() { return Promise.resolve({}); }
|
||||
async handleAuthenticate(_params: { resource: string; token: string }) { return { authenticated: true }; }
|
||||
async handleBrowseDirectory(uri: string): Promise<{ entries: { name: string; type: 'file' | 'directory' }[] }> {
|
||||
this.browsedUris.push(URI.parse(uri));
|
||||
|
||||
Reference in New Issue
Block a user