-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { CompletionList, DocumentContext, Position } from "@gxwf/server-common/src/languageTypes"; | ||
import { inject, injectable } from "inversify"; | ||
import { WorkflowTestsSchemaService } from "../../schema/service"; | ||
import { TYPES } from "../../types"; | ||
|
||
export interface WorkflowTestsCompletionService { | ||
doComplete(documentContext: DocumentContext, position: Position): Promise<CompletionList | null>; | ||
} | ||
|
||
/** | ||
* Simple wrapper around the YAMLCompletionHelper to combine it with custom completion logic. | ||
*/ | ||
@injectable() | ||
export class WorkflowTestsCompletionServiceImpl implements WorkflowTestsCompletionService { | ||
constructor(@inject(TYPES.WorkflowTestsSchemaService) protected schemaService: WorkflowTestsSchemaService) {} | ||
|
||
public async doComplete(documentContext: DocumentContext, position: Position): Promise<CompletionList | null> { | ||
Check warning on line 17 in server/packages/workflow-tests-language-service/src/services/completion/completion.ts GitHub Actions / build (ubuntu-latest)
Check warning on line 17 in server/packages/workflow-tests-language-service/src/services/completion/completion.ts GitHub Actions / build (ubuntu-latest)
Check warning on line 17 in server/packages/workflow-tests-language-service/src/services/completion/completion.ts GitHub Actions / build (windows-latest)
Check warning on line 17 in server/packages/workflow-tests-language-service/src/services/completion/completion.ts GitHub Actions / build (windows-latest)
Check warning on line 17 in server/packages/workflow-tests-language-service/src/services/completion/completion.ts GitHub Actions / build (ubuntu-latest)
Check warning on line 17 in server/packages/workflow-tests-language-service/src/services/completion/completion.ts GitHub Actions / build (ubuntu-latest)
Check warning on line 17 in server/packages/workflow-tests-language-service/src/services/completion/completion.ts GitHub Actions / build (windows-latest)
|
||
// TODO: Add custom completion logic specific to workflow test files here | ||
const result = null; | ||
return result; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { WorkflowTestsCompletionService, WorkflowTestsCompletionServiceImpl } from "./completion"; | ||
|
||
export { WorkflowTestsCompletionService, WorkflowTestsCompletionServiceImpl }; |