mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Disable tasks (#7329)
* disable tasks * more disable * disable more tasks
This commit is contained in:
@@ -101,7 +101,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
|||||||
const extHostTerminalService = rpcProtocol.set(ExtHostContext.ExtHostTerminalService, accessor.get(IExtHostTerminalService));
|
const extHostTerminalService = rpcProtocol.set(ExtHostContext.ExtHostTerminalService, accessor.get(IExtHostTerminalService));
|
||||||
// const extHostDebugService = rpcProtocol.set(ExtHostContext.ExtHostDebugService, accessor.get(IExtHostDebugService)); {{SQL CARBON EDIT}} remove debug service
|
// const extHostDebugService = rpcProtocol.set(ExtHostContext.ExtHostDebugService, accessor.get(IExtHostDebugService)); {{SQL CARBON EDIT}} remove debug service
|
||||||
const extHostSearch = rpcProtocol.set(ExtHostContext.ExtHostSearch, accessor.get(IExtHostSearch));
|
const extHostSearch = rpcProtocol.set(ExtHostContext.ExtHostSearch, accessor.get(IExtHostSearch));
|
||||||
const extHostTask = rpcProtocol.set(ExtHostContext.ExtHostTask, accessor.get(IExtHostTask));
|
// const extHostTask = rpcProtocol.set(ExtHostContext.ExtHostTask, accessor.get(IExtHostTask)); {{SQL CARBON EDIT}} remove tasks service
|
||||||
const extHostOutputService = rpcProtocol.set(ExtHostContext.ExtHostOutputService, accessor.get(IExtHostOutputService));
|
const extHostOutputService = rpcProtocol.set(ExtHostContext.ExtHostOutputService, accessor.get(IExtHostOutputService));
|
||||||
|
|
||||||
// manually create and register addressable instances
|
// manually create and register addressable instances
|
||||||
@@ -675,7 +675,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
|||||||
return extHostDocumentContentProviders.registerTextDocumentContentProvider(scheme, provider);
|
return extHostDocumentContentProviders.registerTextDocumentContentProvider(scheme, provider);
|
||||||
},
|
},
|
||||||
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
|
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
|
||||||
return extHostTask.registerTaskProvider(extension, type, provider);
|
return undefined; // {{SQL CARBON EDIT}} disable task
|
||||||
},
|
},
|
||||||
registerFileSystemProvider(scheme, provider, options) {
|
registerFileSystemProvider(scheme, provider, options) {
|
||||||
return extHostFileSystem.registerFileSystemProvider(scheme, provider, options);
|
return extHostFileSystem.registerFileSystemProvider(scheme, provider, options);
|
||||||
@@ -774,30 +774,30 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const tasks: typeof vscode.tasks = {
|
const tasks: typeof vscode.tasks = { // {{SQL CARBON EDIT}} disable tasks api
|
||||||
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
|
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
|
||||||
return extHostTask.registerTaskProvider(extension, type, provider);
|
return undefined;
|
||||||
},
|
},
|
||||||
fetchTasks: (filter?: vscode.TaskFilter): Thenable<vscode.Task[]> => {
|
fetchTasks: (filter?: vscode.TaskFilter): Thenable<vscode.Task[]> => {
|
||||||
return extHostTask.fetchTasks(filter);
|
return undefined;
|
||||||
},
|
},
|
||||||
executeTask: (task: vscode.Task): Thenable<vscode.TaskExecution> => {
|
executeTask: (task: vscode.Task): Thenable<vscode.TaskExecution> => {
|
||||||
return extHostTask.executeTask(extension, task);
|
return undefined;
|
||||||
},
|
},
|
||||||
get taskExecutions(): vscode.TaskExecution[] {
|
get taskExecutions(): vscode.TaskExecution[] {
|
||||||
return extHostTask.taskExecutions;
|
return undefined;
|
||||||
},
|
},
|
||||||
onDidStartTask: (listeners, thisArgs?, disposables?) => {
|
onDidStartTask: (listeners, thisArgs?, disposables?) => {
|
||||||
return extHostTask.onDidStartTask(listeners, thisArgs, disposables);
|
return undefined;
|
||||||
},
|
},
|
||||||
onDidEndTask: (listeners, thisArgs?, disposables?) => {
|
onDidEndTask: (listeners, thisArgs?, disposables?) => {
|
||||||
return extHostTask.onDidEndTask(listeners, thisArgs, disposables);
|
return undefined;
|
||||||
},
|
},
|
||||||
onDidStartTaskProcess: (listeners, thisArgs?, disposables?) => {
|
onDidStartTaskProcess: (listeners, thisArgs?, disposables?) => {
|
||||||
return extHostTask.onDidStartTaskProcess(listeners, thisArgs, disposables);
|
return undefined;
|
||||||
},
|
},
|
||||||
onDidEndTaskProcess: (listeners, thisArgs?, disposables?) => {
|
onDidEndTaskProcess: (listeners, thisArgs?, disposables?) => {
|
||||||
return extHostTask.onDidEndTaskProcess(listeners, thisArgs, disposables);
|
return undefined;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ registerSingleton(IExtHostConfiguration, ExtHostConfiguration);
|
|||||||
registerSingleton(IExtHostCommands, ExtHostCommands);
|
registerSingleton(IExtHostCommands, ExtHostCommands);
|
||||||
registerSingleton(IExtHostDocumentsAndEditors, ExtHostDocumentsAndEditors);
|
registerSingleton(IExtHostDocumentsAndEditors, ExtHostDocumentsAndEditors);
|
||||||
registerSingleton(IExtHostTerminalService, ExtHostTerminalService);
|
registerSingleton(IExtHostTerminalService, ExtHostTerminalService);
|
||||||
registerSingleton(IExtHostTask, ExtHostTask);
|
// registerSingleton(IExtHostTask, ExtHostTask); {{SQL CABON EDIT}} disable exthost tasks
|
||||||
// registerSingleton(IExtHostDebugService, ExtHostDebugService); {{SQL CARBON EDIT}} remove debug service
|
// registerSingleton(IExtHostDebugService, ExtHostDebugService); {{SQL CARBON EDIT}} remove debug service
|
||||||
registerSingleton(IExtHostSearch, ExtHostSearch);
|
registerSingleton(IExtHostSearch, ExtHostSearch);
|
||||||
registerSingleton(IExtensionStoragePaths, ExtensionStoragePaths);
|
registerSingleton(IExtensionStoragePaths, ExtensionStoragePaths);
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ function NotImplementedProxy<T>(name: ServiceIdentifier<T>): { new(): T } {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
registerSingleton(IExtHostTerminalService, WorkerExtHostTerminalService);
|
registerSingleton(IExtHostTerminalService, WorkerExtHostTerminalService);
|
||||||
registerSingleton(IExtHostTask, WorkerExtHostTask);
|
// registerSingleton(IExtHostTask, WorkerExtHostTask); {{SQL CARBON EDIT}} disable tasks
|
||||||
// registerSingleton(IExtHostDebugService, class extends NotImplementedProxy(IExtHostDebugService) { }); {{SQL CARBON EDIT}} remove debug service
|
// registerSingleton(IExtHostDebugService, class extends NotImplementedProxy(IExtHostDebugService) { }); {{SQL CARBON EDIT}} remove debug service
|
||||||
registerSingleton(IExtHostSearch, class extends NotImplementedProxy(IExtHostSearch) { });
|
registerSingleton(IExtHostSearch, class extends NotImplementedProxy(IExtHostSearch) { });
|
||||||
registerSingleton(IExtensionStoragePaths, class extends NotImplementedProxy(IExtensionStoragePaths) {
|
registerSingleton(IExtensionStoragePaths, class extends NotImplementedProxy(IExtensionStoragePaths) {
|
||||||
|
|||||||
Reference in New Issue
Block a user