1 of 11

Приемочные тесты

VSCode extension

2 of 11

  1. Генератор кода плагина
  2. JS/TS
  3. Структура проекта

3 of 11

UI

4 of 11

UI

Дерево

Редактор xml

Результат прогона теста

5 of 11

MVP

Открыть фуф Перейти к КС

Добавить id КС-ов

6 of 11

Дерево

package.json

extension.ts

7 of 11

Редактор xml

  1. Snippets

  • Подсказки при наведении

  • CodeLens

8 of 11

Редактор xml

  • Snippets

  • Подсказки при наведении

  • CodeLens

9 of 11

Редактор xml

  • Snippets

  • Подсказки при наведении

  • CodeLens

10 of 11

CodeLens

class CodelensProvider implements vscode.CodeLensProvider<Codelens>{

public provideCodeLenses(document: vscode.TextDocument, ...{

let codeLenses = [];

...

return codeLenses;

}

}

CodeLens

  • range: vscode.Range
  • command?: vscode.Command

languages.registerCodeLensProvider("xml", codelensProvider);

11 of 11

Результат прогона теста

//Create output channel

var output = vscode.window.createOutputChannel("Acceptance tests");

output.show();

output.clear();

output.appendLine('TestCase ' + testCaseId);

output.appendLine('Expected');