mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 01:25:38 -05:00
Merge from vscode 1ce89e2cb720d69c496c2815c4696ee4fd4429a6 (#6779)
* Merge from vscode 1ce89e2cb720d69c496c2815c4696ee4fd4429a6 * redisable accounts because of issues
This commit is contained in:
94
src/vs/platform/issue/node/issue.ts
Normal file
94
src/vs/platform/issue/node/issue.ts
Normal file
@@ -0,0 +1,94 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
|
||||
export const IIssueService = createDecorator<IIssueService>('issueService');
|
||||
|
||||
// Since data sent through the service is serialized to JSON, functions will be lost, so Color objects
|
||||
// should not be sent as their 'toString' method will be stripped. Instead convert to strings before sending.
|
||||
export interface WindowStyles {
|
||||
backgroundColor?: string;
|
||||
color?: string;
|
||||
}
|
||||
export interface WindowData {
|
||||
styles: WindowStyles;
|
||||
zoomLevel: number;
|
||||
}
|
||||
|
||||
export const enum IssueType {
|
||||
Bug,
|
||||
PerformanceIssue,
|
||||
FeatureRequest,
|
||||
SettingsSearchIssue
|
||||
}
|
||||
|
||||
export interface IssueReporterStyles extends WindowStyles {
|
||||
textLinkColor?: string;
|
||||
textLinkActiveForeground?: string;
|
||||
inputBackground?: string;
|
||||
inputForeground?: string;
|
||||
inputBorder?: string;
|
||||
inputErrorBorder?: string;
|
||||
inputActiveBorder?: string;
|
||||
buttonBackground?: string;
|
||||
buttonForeground?: string;
|
||||
buttonHoverBackground?: string;
|
||||
sliderBackgroundColor?: string;
|
||||
sliderHoverColor?: string;
|
||||
sliderActiveColor?: string;
|
||||
}
|
||||
|
||||
export interface IssueReporterExtensionData {
|
||||
name: string;
|
||||
publisher: string;
|
||||
version: string;
|
||||
id: string;
|
||||
isTheme: boolean;
|
||||
displayName: string | undefined;
|
||||
repositoryUrl: string | undefined;
|
||||
bugsUrl: string | undefined;
|
||||
}
|
||||
|
||||
export interface IssueReporterData extends WindowData {
|
||||
styles: IssueReporterStyles;
|
||||
enabledExtensions: IssueReporterExtensionData[];
|
||||
issueType?: IssueType;
|
||||
extensionId?: string;
|
||||
}
|
||||
|
||||
export interface ISettingSearchResult {
|
||||
extensionId: string;
|
||||
key: string;
|
||||
score: number;
|
||||
}
|
||||
|
||||
export interface ISettingsSearchIssueReporterData extends IssueReporterData {
|
||||
issueType: IssueType.SettingsSearchIssue;
|
||||
actualSearchResults: ISettingSearchResult[];
|
||||
query: string;
|
||||
filterResultCount: number;
|
||||
}
|
||||
|
||||
export interface IssueReporterFeatures {
|
||||
}
|
||||
|
||||
export interface ProcessExplorerStyles extends WindowStyles {
|
||||
hoverBackground?: string;
|
||||
hoverForeground?: string;
|
||||
highlightForeground?: string;
|
||||
}
|
||||
|
||||
export interface ProcessExplorerData extends WindowData {
|
||||
pid: number;
|
||||
styles: ProcessExplorerStyles;
|
||||
}
|
||||
|
||||
export interface IIssueService {
|
||||
_serviceBrand: any;
|
||||
openReporter(data: IssueReporterData): Promise<void>;
|
||||
openProcessExplorer(data: ProcessExplorerData): Promise<void>;
|
||||
getSystemStatus(): Promise<string>;
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import { IServerChannel } from 'vs/base/parts/ipc/common/ipc';
|
||||
import { Event } from 'vs/base/common/event';
|
||||
import { IIssueService } from 'vs/platform/issue/common/issue';
|
||||
import { IIssueService } from 'vs/platform/issue/node/issue';
|
||||
|
||||
export class IssueChannel implements IServerChannel {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user