Skip to content

yjt98765/eqasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to build eQASM VS Code Extension

See the extension introduction for basic information regarding the eQASM extension. This file briefly introduces the processes for building this extension from source code.

Implementation

The services provided by this extension mainly come from two components, i.e., a language server and a syntax highlighting file.

Build

To build this extension, you need to first build the language server and then compile the extension.

Build language server

cd eqasm_languageserver\org.pcl.eqasm.parent
gradlew build

The building process may take a few minutes.

Copy language server to extension folder

  • Expand the compressed file (either org.pcl.eqasm.ide-1.0.0-SNAPSHOT.tar or org.pcl.eqasm.ide-1.0.0-SNAPSHOT.zip) in eqasm_languageserver\org.pcl.eqasm.parent\org.pcl.eqasm.ide\build\distributions\ folder to eqasm_extension\src\

Build extension

  • Prerequisite: node and yarn
  • Run the following commands
cd eqasm_extension
yarn install

The building process can typically be done within a minute. node_modules and out folders will be generated

Debug

You can debug the extension with VS Code using the following commands:

cd eqasm_extension
code .

Press F5 or select Debug -> Start debugging in the menu, a new VS Code window will pop up. This window works as if the extension has already been installed.

Package

The eqasm_extension\ folder can be packaged into a .vsix file using the following commands:

cd eqasm_extension
vsce package

vsce can be installed with npm install -g vsce.

Useful links

About

Visual Studio Code eQASM Extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •