Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img alt="Consistem" src="https://raw.githubusercontent.com/consistem/vscode-objectscript/master/images/logo-consistem-horizontal.png" width="280" />
<img alt="Consistem" src="images/logo-consistem-horizontal.png" width="280" />
</p>

# Consistem ObjectScript extension for VS Code
Expand Down
Binary file modified images/logo-consistem-horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 33 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,11 @@
"command": "vscode-objectscript.ccs.atualizarConfiguracoes",
"group": "7_config@1",
"when": "vscode-objectscript.connectActive"
},
{
"command": "vscode-objectscript.ccs.gerenciarBasesTeste",
"group": "8_bases@1",
"when": "vscode-objectscript.connectActive"
}
]
},
Expand Down Expand Up @@ -1097,6 +1102,12 @@
"category": "ObjectScript",
"icon": "$(plug)"
},
{
"command": "vscode-objectscript.ccs.gerenciarBasesTeste",
"title": "Regerar Base de Testes",
"category": "Consistem",
"icon": "$(database)"
},
{
"category": "ObjectScript",
"command": "vscode-objectscript.jumpToTagAndOffset",
Expand Down Expand Up @@ -1826,12 +1837,32 @@
"scope": "resource"
},
"objectscript.unitTest.legacyRequestTimeout": {
"description": "Timeout in milliseconds applied to legacy unit test API calls. Set to 0 for no timeout.",
"description": "Timeout in milliseconds applied to each unit test class execution. Set to 0 for no timeout.",
"type": "integer",
"default": 6000000,
"default": 600000,
"minimum": 0,
"scope": "resource"
},
"objectscript.unitTest.usarExecutorAntigo": {
"description": "Volta ao executor de testes anterior (sempre executa no namespace TESTEUNITARIO). Temporário, apenas para rollback durante a validação do executor novo.",
"type": "boolean",
"default": false,
"scope": "resource"
},
"objectscript.unitTest.incluirAsserts": {
"description": "Quais asserts o executor de testes deve retornar. 'somenteFalhas' reduz muito o volume de dados em classes que passam.",
"type": "string",
"enum": [
"somenteFalhas",
"todos"
],
"enumDescriptions": [
"Apenas os asserts que falharam, mais as mensagens de log",
"Todos os asserts, inclusive os que passaram"
],
"default": "somenteFalhas",
"scope": "resource"
},
"objectscript.commentToken": {
"description": "The line comment characters for ObjectScript in classes and MAC and INC routines.",
"type": "string",
Expand Down
8 changes: 8 additions & 0 deletions src/ccs/sourcecontrol/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,12 @@ export class SourceControlApi {
): Promise<AxiosResponse<T>> {
return this.client.post<T>(route, data, config);
}

public get<T = unknown>(route: string, config?: AxiosRequestConfig<unknown>): Promise<AxiosResponse<T>> {
return this.client.get<T>(route, config);
}

public delete<T = unknown>(route: string, config?: AxiosRequestConfig<unknown>): Promise<AxiosResponse<T>> {
return this.client.delete<T>(route, config);
}
}
13 changes: 13 additions & 0 deletions src/ccs/sourcecontrol/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ export const ROUTES = {
`/namespaces/${encodeURIComponent(namespace)}/converterArquivoCustomizado`,
analizarVersaoItem: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/analizarVersaoItem`,
atualizarConfig: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/atualizarConfig`,
resolveUnitTests: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/unitTests/resolve`,
executarClasseTeste: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/unitTests/executarClasse`,
situacaoExecucaoTeste: (namespace: string, idExecucao: string) =>
`/namespaces/${encodeURIComponent(namespace)}/unitTests/execucao/${encodeURIComponent(idExecucao)}`,
paginaResultadoTeste: (namespace: string, idExecucao: string) =>
`/namespaces/${encodeURIComponent(namespace)}/unitTests/resultado/${encodeURIComponent(idExecucao)}`,
gerarBaseTeste: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/unitTests/gerarBase`,
listarBasesTeste: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/unitTests/bases`,
regerarBaseTeste: (namespace: string) => `/namespaces/${encodeURIComponent(namespace)}/unitTests/bases/regerar`,
prepararAmbienteTeste: (namespace: string) =>
`/namespaces/${encodeURIComponent(namespace)}/unitTests/prepararAmbiente`,
situacaoGeracaoBase: (namespace: string, idGeracao: string) =>
`/namespaces/${encodeURIComponent(namespace)}/unitTests/gerarBase/${encodeURIComponent(idGeracao)}`,
} as const;

export type RouteKey = keyof typeof ROUTES;
Loading