This repository was archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
APSoC 2022 Enable VSCode Extension in Web
Ayman edited this page Sep 28, 2022
·
13 revisions
- 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
- Demo of showPreview was shown.
- Refactoring file writing of modelsManager was discussed.
- 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.
- 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 withglob
module which requires some research/digging-up before refactoring and should not be a major issue.
- Replaced
glob.Sync
withvscode.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.
- PR with webpack setup and showPreview function was made here.
- Wrote a custom
filewriter
to enable file writing in web. - Enabled
Download External Models
andExport Class Diagram
for a concerto file.
-
Export Cicero Archive
andParse Clause
has been enabled. - Referred to template studio to compile
cicero-core
for web.
- 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.
- Prepared slides and a demo video for ApSoC mid evaluation
- The extension was pushed to the marketplace for public review
- Possible fix was remedied through PR#130
- The next iteration of extension published
- The same error was observed loading model files now
- Removed the usage of fspath to fix the bug in PR#132
- 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.
- 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