Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

APSoC 2022 Enable VSCode Extension in Web

Ayman edited this page Sep 28, 2022 · 13 revisions

Meeting Notes

Date: July 14
  • Meet with Dan decided to be held every monday at 2pm GMT
  • Explore cicero-core to find areas that are causing trouble with webpack bundling
  • Leverage code of template-studio into VSCode extension
  • Think about implementing an Open in VSCode feature into template studio as an optional goal
  • Research is required on the LSP part to better understand trade-offs
Date: July 18
  • Demo of showPreview was shown.
  • Refactoring file writing of modelsManager was discussed.
Date: July 25
  • Dan suggested reusing the desktop extension's code as much as possible.
  • Discussed css modification that can be done to grammar template preview.
  • First PR to be possibly merged in the next week or so.
  • Code is to be cleaned up and features are to be tested in both web and desktop.

Updates

Date: July 15
  • Done with setting up project structure and basic webpack config to get started with.
  • Created a seperate webCommandHandlers module for the time being.
  • Started working on fixing fs.readFileSync() not found error in showPreview command. Problem was detected with glob module which requires some research/digging-up before refactoring and should not be a major issue.
Date: July 17
  • Replaced glob.Sync with vscode.workspace.findFiles. Related docs can be found here
  • Tested showPreview in web mode. Works fine.
  • Next step: Refactor writing logic to file system in downloadModels command.
Date: July 19
  • PR with webpack setup and showPreview function was made here.
Date: July 24
  • Wrote a custom filewriter to enable file writing in web.
  • Enabled Download External Models and Export Class Diagram for a concerto file.
Date: July 29
  • Export Cicero Archive and Parse Clause has been enabled.
  • Referred to template studio to compile cicero-core for web.
Date: Aug 1
  • Dan mentioned a possible refactor in cicero loadTemplate logic.
  • Comments were made on the previous PR.
  • The PR requires more work with comments at various positions etc.
Date: Aug 3
  • Prepared slides and a demo video for ApSoC mid evaluation
Date: Aug 8
  • The extension was pushed to the marketplace for public review
Date: Aug 9
  • Possible fix was remedied through PR#130
Date: Aug 11
  • The next iteration of extension published
Date: Aug 12
  • The same error was observed loading model files now
Date: Aug 15
  • Removed the usage of fspath to fix the bug in PR#132
Date: Aug 15
  • Discussed with dan about how enabling the language server was something that was still a problem.
  • Tried checking TS extension for possible fixes.
  • It was decided to drop the idea of enable language server for web following what standard vscode extensions were doing.
  • Research was also done in the last week regarding possible ways to enable language server in web.
Last Week:
  • Enabled Codegen in web after facing issues while incrementing concerto version in extension
  • Enabled Draft Clause feature
  • Pushed changes to PR#136
  • Added "Open in VSCode" option in template library with MAtt's help.
  • Updated VSCODE README.md as documentation.
  • Pushed the same to the PR

My blog can be found here