-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend Documentation
Thariq Ridha edited this page Apr 26, 2021
·
14 revisions
The front-end is a working VSCode Extension that makes use of VSCode's Autocompletion API to provide a autocomplete suggestion from our backend server.
Currently, whenever the user types in a Python file, the extension submits a POST request containing the entire file contents along with cursor position. It expects to receive a response that it will then provide as an autocomplete suggestion.
- TypeScript
npm install -g typescript
These should not have to be installed explicitly as they are described inpackage-lock.json
- node-url
- axios
- Clone repository and open in terminal
- Open VSCode (Latest stable build, known to work on 1.55.2)
- Open
frontend
folder (File -> Open...) - Click Run -> Start Debugging (F5)
- A new VSCode window should have opened. In it, open a Python file or create a new file and save as
.py
- Start typing, autocomplete suggestions should be provided.