Skip to content

Commit

Permalink
GLSP-865: Update to latest protocol version (#183)
Browse files Browse the repository at this point in the history
* GLSP-865: Update to latest protocol version

Part of eclipse-glsp/glsp/issues/865

* Upgrade yarn.lock
  • Loading branch information
tortmayr authored Oct 10, 2023
1 parent fa56b69 commit ebc2240
Show file tree
Hide file tree
Showing 5 changed files with 552 additions and 590 deletions.
4 changes: 1 addition & 3 deletions examples/workflow-theia/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"baseUrl": ".",
"resolveJsonModule": true,
"module": "Node16"
"resolveJsonModule": true
},
"include": ["src"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
import {
AnyObject,
GLSPModelSource,
hasArrayProp,
hasObjectProp,
hasStringProp,
GModelRoot,
ISelectionListener,
ModelSource,
SModelRoot,
TYPES,
ViewerOptions
ViewerOptions,
hasArrayProp,
hasObjectProp,
hasStringProp
} from '@eclipse-glsp/client';
import { SelectionService } from '@theia/core';
import { inject, injectable, optional } from '@theia/core/shared/inversify';
Expand Down Expand Up @@ -97,7 +97,7 @@ export class TheiaGLSPSelectionForwarder implements ISelectionListener {
return this.sourceUri;
}

selectionChanged(_root: Readonly<SModelRoot>, selectedElements: string[]): void {
selectionChanged(_root: Readonly<GModelRoot>, selectedElements: string[]): void {
this.handleSelectionChanged(selectedElements);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import {
EditMode,
EditorContextService,
SModelElement,
SModelRoot,
GModelElement,
GModelRoot,
SelectionService,
getElements,
isDeletable,
Expand Down Expand Up @@ -62,7 +62,7 @@ export abstract class AbstractGLSPDiagramContextKeyService {
}
}

protected updateSelectionContextKeys(root: Readonly<SModelRoot>, selectedElementIds: string[]): void {
protected updateSelectionContextKeys(root: Readonly<GModelRoot>, selectedElementIds: string[]): void {
if (selectedElementIds.length < 1) {
this.doResetSelectionContextKeys();
return;
Expand Down Expand Up @@ -91,7 +91,7 @@ export abstract class AbstractGLSPDiagramContextKeyService {
protected abstract registerContextKeys(): void;
protected abstract doUpdateStaticContextKeys(glspDiagramWidget: GLSPDiagramWidget): void;
protected abstract doResetStaticContextKeys(): void;
protected abstract doUpdateSelectionContextKeys(selectedElements: SModelElement[]): void;
protected abstract doUpdateSelectionContextKeys(selectedElements: GModelElement[]): void;
protected abstract doResetSelectionContextKeys(): void;
protected abstract doUpdateEditModeContextKeys(editMode: string): void;
protected abstract doResetEditModeContextKeys(): void;
Expand Down Expand Up @@ -159,7 +159,7 @@ export class GLSPDiagramContextKeyService extends AbstractGLSPDiagramContextKeyS
this.glspEditorDiagramType.reset();
}

protected doUpdateSelectionContextKeys(selectedElements: SModelElement[]): void {
protected doUpdateSelectionContextKeys(selectedElements: GModelElement[]): void {
this.glspEditorHasSelection.set(true);
this.glspEditorHasMultipleSelection.set(selectedElements.length > 1);
this.glspEditorHasDeletableSelection.set(selectedElements.filter(isDeletable).length > 0);
Expand Down
4 changes: 1 addition & 3 deletions packages/theia-integration/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"extends": "@eclipse-glsp/ts-config/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"baseUrl": ".",
"module": "Node16"
"outDir": "lib"
},
"include": ["src"]
}
Loading

0 comments on commit ebc2240

Please sign in to comment.