@eclipse-che/theia-factory-plugin
Advanced tools
Comparing version 0.0.1-1547041312 to 0.0.1-1547111869
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.0.1-1547041312", | ||
"version": "0.0.1-1547111869", | ||
"license": "EPL-2.0", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"@theia/plugin-packager": "^0.0.1-1539891078", | ||
"@eclipse-che/plugin": "^0.0.1-1546522786", | ||
"@eclipse-che/plugin": "^0.0.1-1546977605", | ||
"@types/jest": "22.2.3", | ||
@@ -18,0 +18,0 @@ "jest": "22.4.3", |
@@ -12,2 +12,3 @@ /********************************************************************* | ||
import * as che from '@eclipse-che/plugin'; | ||
import { che as cheApi } from '@eclipse-che/api'; | ||
import { TheiaCloneCommand, TheiaCommand } from './theia-commands'; | ||
@@ -39,3 +40,3 @@ | ||
let factory: che.Factory; | ||
let factory: cheApi.factory.Factory; | ||
try { | ||
@@ -66,3 +67,3 @@ factory = await che.factory.getById(factoryId); | ||
*/ | ||
private async getCloneCommands(factory: che.Factory) { | ||
private async getCloneCommands(factory: cheApi.factory.Factory) { | ||
const instance = this; | ||
@@ -82,3 +83,3 @@ | ||
*/ | ||
private getOnProjectsImportedCommands(factory: che.Factory) { | ||
private getOnProjectsImportedCommands(factory: cheApi.factory.Factory) { | ||
if (!factory.ide || !factory.ide.onProjectsLoaded || !factory.ide.onProjectsLoaded.actions) { | ||
@@ -89,3 +90,3 @@ return []; | ||
return factory.ide.onProjectsLoaded.actions.map( | ||
action => new TheiaCommand(action.id, action.properties) | ||
action => new TheiaCommand(action.id!, action.properties) | ||
); | ||
@@ -92,0 +93,0 @@ } |
@@ -11,3 +11,3 @@ /********************************************************************* | ||
import * as theia from '@theia/plugin'; | ||
import * as che from '@eclipse-che/plugin'; | ||
import { che as cheApi } from '@eclipse-che/api'; | ||
import convertToFileURI from './openfile'; | ||
@@ -31,3 +31,3 @@ | ||
constructor(project: che.ProjectConfig, projectsRoot: string) { | ||
constructor(project: cheApi.workspace.ProjectConfig, projectsRoot: string) { | ||
this.locationURI = project.source && project.source.location ? project.source.location : undefined; | ||
@@ -34,0 +34,0 @@ this.folder = projectsRoot + project.path; |
@@ -14,2 +14,4 @@ /********************************************************************* | ||
import * as che from '@eclipse-che/plugin'; | ||
import { che as cheApi } from '@eclipse-che/api'; | ||
const fs = require('fs'); | ||
@@ -36,6 +38,6 @@ | ||
async selectProjectToCloneCommands(workspace: che.Workspace): Promise<TheiaCloneCommand[]> { | ||
async selectProjectToCloneCommands(workspace: cheApi.workspace.Workspace): Promise<TheiaCloneCommand[]> { | ||
const instance = this; | ||
const projects = workspace.config.projects; | ||
const projects = workspace.config!.projects; | ||
if (!projects) { | ||
@@ -42,0 +44,0 @@ return []; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35895
272
0