More layering and strictness (#9004)

* 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

* remove no longer good parts

* fix issues with startup

* another try

* fix startup
This commit is contained in:
Anthony Dresser
2020-02-11 00:47:17 -06:00
committed by GitHub
parent 3a8b74a311
commit 0f934081e1
97 changed files with 489 additions and 214 deletions

View File

@@ -4,11 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as ConnectionConstants from 'sql/platform/connection/common/constants';
import { QueryEditorInput } from 'sql/workbench/contrib/query/common/queryEditorInput';
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
import { URI } from 'vs/base/common/uri';
import { IEditorInput } from 'vs/workbench/common/editor';
/**
* Gets the 'sql' configuration section for use in looking up settings. Note that configs under
@@ -23,15 +19,3 @@ export function getSqlConfigValue<T>(workspaceConfigService: IConfigurationServi
let config = workspaceConfigService.getValue(ConnectionConstants.sqlConfigSectionName);
return config[configName];
}
export function getEditorUri(input: IEditorInput): string {
let uri: URI;
if (input instanceof QueryEditorInput) {
uri = input.getResource();
}
if (uri) {
return uri.toString(true);
}
return undefined;
}