message: Fill code action in test bed on get
diff: @@ -408,26 +408,35 @@ connection.onWorkspaceSymbol((params) => {
  });
  connection.onCodeAction((params) => {
  + const document = documents.get(params.textDocument.uri);
  + const change: WorkspaceChange = new WorkspaceChange();
  + change.createFile(`${folder}/newFile.bat`, { overwrite: true });
  + const a = change.getTextEditChange(document);
  + a.insert({ line: 0, character: 0}, "Code Action", ChangeAnnotation.create('Insert some text', true));
  + const b = change.getTextEditChange({ uri: `${folder}/newFile.bat`, version: null });
  + b.insert({ line: 0, character: 0 }, 'The initial content', ChangeAnnotation.create('Add additional content', true));
  +
  const codeAction: CodeAction = {
  title: "Custom Code Action",
  kind: CodeActionKind.QuickFix,
  data: params.textDocument.uri
  }
  + codeAction.edit = change.edit;
  return [
  codeAction
  ];
  });
  connection.onCodeActionResolve((codeAction) => {
  - const document = documents.get(codeAction.data as string);
  - const change: WorkspaceChange = new WorkspaceChange();
  - change.createFile(`${folder}/newFile.bat`, { overwrite: true });
  - const a = change.getTextEditChange(document);
  - a.insert({ line: 0, character: 0}, "Code Action", ChangeAnnotation.create('Insert some text', true));
  - const b = change.getTextEditChange({ uri: `${folder}/newFile.bat`, version: null });
  - b.insert({ line: 0, character: 0 }, 'The initial content', ChangeAnnotation.create('Add additional content', true));
  -
  - codeAction.edit = change.edit;
  + // const document = documents.get(codeAction.data as string);
  + // const change: WorkspaceChange = new WorkspaceChange();
  + // change.createFile(`${folder}/newFile.bat`, { overwrite: true });
  + // const a = change.getTextEditChange(document);
  + // a.insert({ line: 0, character: 0}, "Code Action", ChangeAnnotation.create('Insert some text', true));
  + // const b = change.getTextEditChange({ uri: `${folder}/newFile.bat`, version: null });
  + // b.insert({ line: 0, character: 0 }, 'The initial content', ChangeAnnotation.create('Add additional content', true));
  +
  + // codeAction.edit = change.edit;
  return codeAction;
  });
  