-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #456 from axonivy/lsp-connection
XIVY-13138 Change inscription lsp connection
- Loading branch information
Showing
13 changed files
with
973 additions
and
994 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as ivyInscriptionModule } from './inscription/di.config'; | ||
export * from './inscription/action'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Action } from '@eclipse-glsp/client'; | ||
import { InscriptionContext } from '@axonivy/inscription-protocol'; | ||
|
||
export interface EnableInscriptionAction extends Action { | ||
kind: typeof EnableInscriptionAction.KIND; | ||
server?: string; | ||
inscriptionContext?: InscriptionContext; | ||
} | ||
|
||
export namespace EnableInscriptionAction { | ||
export const KIND = 'enableInscription'; | ||
|
||
export function is(object: any): object is EnableInscriptionAction { | ||
return Action.hasKind(object, KIND); | ||
} | ||
|
||
export function create(options: { server?: string; inscriptionContext?: InscriptionContext }): EnableInscriptionAction { | ||
return { kind: KIND, ...options }; | ||
} | ||
} | ||
|
||
export interface ToggleInscriptionAction extends Action { | ||
kind: typeof ToggleInscriptionAction.KIND; | ||
force?: boolean; | ||
} | ||
|
||
export namespace ToggleInscriptionAction { | ||
export const KIND = 'showInscription'; | ||
|
||
export function is(object: any): object is ToggleInscriptionAction { | ||
return Action.hasKind(object, KIND); | ||
} | ||
|
||
export function create(options: { force?: boolean }): ToggleInscriptionAction { | ||
return { kind: KIND, ...options }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,21 @@ | ||
import { Action, hasStringProp } from '@eclipse-glsp/protocol'; | ||
|
||
export interface OpenInscriptionAction extends Action { | ||
kind: typeof OpenInscriptionAction.KIND; | ||
export interface OpenSwtInscriptionAction extends Action { | ||
kind: typeof OpenSwtInscriptionAction.KIND; | ||
elementId: string; | ||
} | ||
|
||
export namespace OpenInscriptionAction { | ||
export namespace OpenSwtInscriptionAction { | ||
export const KIND = 'openInscription'; | ||
|
||
export function is(object: any): object is OpenInscriptionAction { | ||
export function is(object: any): object is OpenSwtInscriptionAction { | ||
return Action.hasKind(object, KIND) && hasStringProp(object, 'elementId'); | ||
} | ||
|
||
export function create(elementId: string): OpenInscriptionAction { | ||
export function create(elementId: string): OpenSwtInscriptionAction { | ||
return { | ||
kind: KIND, | ||
elementId | ||
}; | ||
} | ||
} | ||
|
||
export interface EnableInscriptionAction extends Action { | ||
kind: typeof EnableInscriptionAction.KIND; | ||
server?: string; | ||
app?: string; | ||
pmv?: string; | ||
} | ||
|
||
export namespace EnableInscriptionAction { | ||
export const KIND = 'enableInscription'; | ||
|
||
export function is(object: any): object is EnableInscriptionAction { | ||
return Action.hasKind(object, KIND); | ||
} | ||
|
||
export function create(options: { server?: string; app?: string; pmv?: string }): EnableInscriptionAction { | ||
return { kind: KIND, ...options }; | ||
} | ||
} | ||
|
||
export interface ToggleInscriptionAction extends Action { | ||
kind: typeof ToggleInscriptionAction.KIND; | ||
force?: boolean; | ||
} | ||
|
||
export namespace ToggleInscriptionAction { | ||
export const KIND = 'showInscription'; | ||
|
||
export function is(object: any): object is ToggleInscriptionAction { | ||
return Action.hasKind(object, KIND); | ||
} | ||
|
||
export function create(options: { force?: boolean }): ToggleInscriptionAction { | ||
return { kind: KIND, ...options }; | ||
} | ||
} |
Oops, something went wrong.