mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
More layering (#9111)
* move handling generated files to the serilization classes * remove unneeded methods * add more folders to strictire compile, add more strict compile options * update ci * wip * add more layering and fix issues * add more strictness * remove unnecessary assertion * add missing checks * fix indentation * wip * remove jsdoc * fix layering * fix compile * fix compile errors * wip * wip * finish layering * fix css * more layering * rip * reworking results serializer * move some files around * move capabilities to platform wip * implement capabilities register provider * fix capabilities service * fix usage of the regist4ry * add contribution * remove no longer good parts * fix issues with startup * another try * fix startup * fix imports * fix tests * fix tests * fix more tests * fix tests * fix more tests * fix broken test * fix tabbing * fix naming
This commit is contained in:
@@ -710,7 +710,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
return extHostDocumentContentProviders.registerTextDocumentContentProvider(scheme, provider);
|
||||
},
|
||||
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
|
||||
return undefined; // {{SQL CARBON EDIT}} disable task
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio'); // {{SQL CARBON EDIT}} disable task
|
||||
},
|
||||
registerFileSystemProvider(scheme, provider, options) {
|
||||
return extHostFileSystem.registerFileSystemProvider(scheme, provider, options);
|
||||
@@ -801,76 +801,79 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
// namespace: debug
|
||||
const debug: typeof vscode.debug = {
|
||||
get activeDebugSession() {
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
return undefined;
|
||||
},
|
||||
get activeDebugConsole() {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
return undefined!;
|
||||
},
|
||||
get breakpoints() {
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
return [];
|
||||
},
|
||||
onDidStartDebugSession(listener, thisArg?, disposables?) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
onDidTerminateDebugSession(listener, thisArg?, disposables?) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
onDidChangeActiveDebugSession(listener, thisArg?, disposables?) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
onDidReceiveDebugSessionCustomEvent(listener, thisArg?, disposables?) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
onDidChangeBreakpoints(listener, thisArgs?, disposables?) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
registerDebugConfigurationProvider(debugType: string, provider: vscode.DebugConfigurationProvider) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
registerDebugAdapterDescriptorFactory(debugType: string, factory: vscode.DebugAdapterDescriptorFactory) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
registerDebugAdapterTrackerFactory(debugType: string, factory: vscode.DebugAdapterTrackerFactory) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
startDebugging(folder: vscode.WorkspaceFolder | undefined, nameOrConfig: string | vscode.DebugConfiguration, parentSessionOrOptions?: vscode.DebugSession | vscode.DebugSessionOptions) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
addBreakpoints(breakpoints: vscode.Breakpoint[]) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
removeBreakpoints(breakpoints: vscode.Breakpoint[]) {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
},
|
||||
asDebugSourceUri(source: vscode.DebugProtocolSource, session?: vscode.DebugSession): vscode.Uri {
|
||||
return undefined;
|
||||
throw new Error('Debug api is not allowed in Azure Data Studio');
|
||||
}
|
||||
};
|
||||
|
||||
const tasks: typeof vscode.tasks = { // {{SQL CARBON EDIT}} disable tasks api
|
||||
registerTaskProvider: (type: string, provider: vscode.TaskProvider) => {
|
||||
return undefined;
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio');
|
||||
},
|
||||
fetchTasks: (filter?: vscode.TaskFilter): Thenable<vscode.Task[]> => {
|
||||
return undefined;
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio');
|
||||
},
|
||||
executeTask: (task: vscode.Task): Thenable<vscode.TaskExecution> => {
|
||||
return undefined;
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio');
|
||||
},
|
||||
get taskExecutions(): vscode.TaskExecution[] {
|
||||
return undefined;
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio');
|
||||
},
|
||||
onDidStartTask: (listeners, thisArgs?, disposables?) => {
|
||||
return undefined;
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio');
|
||||
},
|
||||
onDidEndTask: (listeners, thisArgs?, disposables?) => {
|
||||
return undefined;
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio');
|
||||
},
|
||||
onDidStartTaskProcess: (listeners, thisArgs?, disposables?) => {
|
||||
return undefined;
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio');
|
||||
},
|
||||
onDidEndTaskProcess: (listeners, thisArgs?, disposables?) => {
|
||||
return undefined;
|
||||
throw new Error('Tasks api is not allowed in Azure Data Studio');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ import { ErrorMessageService } from 'sql/workbench/services/errorMessage/browser
|
||||
import { ServerGroupController } from 'sql/workbench/services/serverGroup/browser/serverGroupController';
|
||||
import { IServerGroupController } from 'sql/platform/serverGroup/common/serverGroupController';
|
||||
import { ICapabilitiesService } from 'sql/platform/capabilities/common/capabilitiesService';
|
||||
import { CapabilitiesService } from 'sql/workbench/services/capabilities/common/capabilitiesServiceImpl';
|
||||
import { CapabilitiesService } from 'sql/platform/capabilities/common/capabilitiesServiceImpl';
|
||||
import { ICredentialsService as sqlICredentialsService, CredentialsService } from 'sql/platform/credentials/common/credentialsService';
|
||||
import { IQueryModelService } from 'sql/workbench/services/query/common/queryModel';
|
||||
import { QueryModelService } from 'sql/workbench/services/query/common/queryModelService';
|
||||
@@ -391,7 +391,6 @@ import 'sql/workbench/contrib/query/common/resultsGrid.contribution';
|
||||
import 'sql/workbench/contrib/dataExplorer/browser/dataExplorer.contribution';
|
||||
import 'sql/workbench/contrib/dataExplorer/browser/nodeActions.common.contribution';
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
//editor replacement
|
||||
import 'sql/workbench/contrib/editorReplacement/common/editorReplacer.contribution';
|
||||
|
||||
@@ -404,6 +403,7 @@ import 'sql/workbench/contrib/telemetry/common/telemetry.contribution';
|
||||
|
||||
// connection
|
||||
import 'sql/workbench/contrib/connection/browser/connection.contribution';
|
||||
import 'sql/workbench/contrib/connection/common/connectionProviderExtension';
|
||||
import 'sql/workbench/contrib/objectExplorer/common/serverGroup.contribution';
|
||||
|
||||
// edit data editor
|
||||
|
||||
Reference in New Issue
Block a user