Rename project id and change key binding

This commit is contained in:
Akshita 2019-04-11 14:38:54 -07:00
Родитель 469523a3ea
Коммит 563e1228a6
4 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -837,8 +837,8 @@
"keybindings": [ "keybindings": [
{ {
"command": "o.showOutput", "command": "o.showOutput",
"key": "Ctrl+L L", "key": "Ctrl+Shift+F9",
"mac": "Cmd+L L" "mac": "Cmd+Shift+F9"
}, },
{ {
"command": "csharp.setNextStatement", "command": "csharp.setNextStatement",

Просмотреть файл

@ -46,7 +46,7 @@ export class TelemetryObserver {
break; break;
case EventType.ProjectConfigurationReceived: case EventType.ProjectConfigurationReceived:
let projectConfig = (<ProjectConfiguration>event).projectConfiguration; let projectConfig = (<ProjectConfiguration>event).projectConfiguration;
telemetryProps['ProjectId'] = projectConfig.ProjectGuid; telemetryProps['ProjectId'] = projectConfig.ProjectId;
telemetryProps['TargetFrameworks'] = projectConfig.TargetFrameworks.join("|"); telemetryProps['TargetFrameworks'] = projectConfig.TargetFrameworks.join("|");
telemetryProps['References'] = projectConfig.References.join("|"); telemetryProps['References'] = projectConfig.References.join("|");
telemetryProps['FileExtensions'] = projectConfig.FileExtensions.join("|"); telemetryProps['FileExtensions'] = projectConfig.FileExtensions.join("|");

Просмотреть файл

@ -431,7 +431,7 @@ export interface UnresolvedDependenciesMessage {
} }
export interface ProjectConfigurationMessage { export interface ProjectConfigurationMessage {
ProjectGuid: string; ProjectId: string;
TargetFrameworks: string[]; TargetFrameworks: string[];
References: string[]; References: string[];
FileExtensions: string[]; FileExtensions: string[];

Просмотреть файл

@ -49,14 +49,14 @@ suite('TelemetryReporterObserver', () => {
expect(property).to.have.property("installStage", "completeSuccess"); expect(property).to.have.property("installStage", "completeSuccess");
}); });
test(`${ProjectConfiguration.name}: Telemetry props contains project file path and target framework`, () => { test(`${ProjectConfiguration.name}: Telemetry props contains project id and target framework`, () => {
const targetFrameworks = new Array("tfm1", "tfm2"); const targetFrameworks = new Array("tfm1", "tfm2");
const projectId = "projectFilePath"; const projectId = "sample";
const references = new Array("ref1", "ref2"); const references = new Array("ref1", "ref2");
const fileExtensions = new Array(".cs", ".cshtml"); const fileExtensions = new Array(".cs", ".cshtml");
let event = new ProjectConfiguration({ let event = new ProjectConfiguration({
TargetFrameworks: targetFrameworks, TargetFrameworks: targetFrameworks,
ProjectGuid: projectId, ProjectId: projectId,
References: references, References: references,
FileExtensions: fileExtensions FileExtensions: fileExtensions
}); });