Another code layering (#4037)

* working on formatting

* fixed basic lint errors; starting moving things to their appropriate location

* formatting

* update tslint to match the version of vscode we have

* remove unused code

* work in progress fixing layering

* formatting

* moved connection management service to platform

* formatting

* add missing file

* moving more servies

* formatting

* moving more services

* formatting

* wip

* moving more services

* formatting

* move css file

* add missing svgs

* moved the rest of services

* formatting

* changing around some references

* formatting

* revert tslint

* revert some changes that brake things

* formatting

* fix tests

* fix testzx

* fix tests

* fix tests

* fix compile issue
This commit is contained in:
Anthony Dresser
2019-02-19 12:11:54 -08:00
committed by GitHub
parent 4a82abc19b
commit d4704e39ac
162 changed files with 382 additions and 371 deletions

View File

@@ -100,7 +100,7 @@ import { MulitExtensionManagementService } from 'vs/platform/extensionManagement
import { ExtensionManagementServerService } from 'vs/workbench/services/extensions/node/extensionManagementServerService';
// {{SQL CARBON EDIT}}
import { FileTelemetryService } from 'sql/platform/telemetry/fileTelemetryService';
import { FileTelemetryService } from 'sql/workbench/services/telemetry/node/fileTelemetryService';
/**
* Services that we require for the Shell
@@ -386,7 +386,7 @@ export class WorkbenchShell extends Disposable {
if (this.environmentService.args['perf-test']) {
let telemetryOutput = this.environmentService.args['telemetry-output'];
this.telemetryService = new FileTelemetryService(telemetryOutput);
// Telemetry
// Telemetry
} else if (this.environmentService.isBuilt && !this.environmentService.isExtensionDevelopment && !this.environmentService.args['disable-telemetry'] && !!product.enableTelemetry) {
const channel = getDelayedChannel<ITelemetryAppenderChannel>(sharedProcess.then(c => c.getChannel('telemetryAppender')));
const config: ITelemetryServiceConfig = {
@@ -516,7 +516,7 @@ export class WorkbenchShell extends Disposable {
// {{SQL CARBON EDIT}}
private diffInDays(nowDate: number, lastUseDate: number): number {
return (nowDate - lastUseDate)/(24*3600*1000);
return (nowDate - lastUseDate) / (24 * 3600 * 1000);
}
onUnexpectedError(error: any): void {