Update dashboard, profiler and query icons (#2135)

This commit is contained in:
Karl Burtram
2018-08-03 00:32:12 -04:00
committed by GitHub
parent cb3604c0a1
commit 397b54a8c3
2 changed files with 24 additions and 7 deletions

View File

@@ -20,6 +20,7 @@ import { Event, Emitter } from 'vs/base/common/event';
import { generateUuid } from 'vs/base/common/uuid';
import { IDialogService, IConfirmation, IConfirmationResult } from 'vs/platform/dialogs/common/dialogs';
import { escape } from 'sql/base/common/strings';
import URI from 'vs/base/common/uri';
export class ProfilerInput extends EditorInput implements IProfilerSession {
@@ -116,7 +117,19 @@ export class ProfilerInput extends EditorInput implements IProfilerSession {
}
public getName(): string {
return nls.localize('profilerInput.profiler', 'Profiler');
let name: string = nls.localize('profilerInput.profiler', 'Profiler');
if (!this._connection) {
return name;
}
name += ': ' + this._connection.serverName.substring(0, 20);
return name;
}
public getResource(): URI {
return URI.from({
scheme: ProfilerInput.SCHEMA,
path: 'profiler'
});
}
public get data(): TableDataView<Slick.SlickData> {