Skip to content

ScriptonBasestar/sb-vscode-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SB VSCode Manager

외부 매니저 앱에서 VSCode 명령을 실행할 수 있는 WebSocket 확장

개요

이 확장은 WebSocket 서버를 통해 외부 애플리케이션에서 VSCode의 명령어를 실행할 수 있게 해줍니다.

기능

  • WebSocket 서버 (127.0.0.1:7071)
  • 토큰 기반 인증
  • VSCode 명령어 원격 실행

사용법

설치

  1. 이 프로젝트를 클론합니다
  2. npm install을 실행합니다
  3. npm run compile로 컴파일합니다
  4. npm run package로 .vsix 파일을 생성합니다
  5. VSCode에서 확장을 설치합니다

WebSocket 클라이언트

WebSocket 요청 형식:

{
  "token": "abc123",
  "command": "workbench.action.reloadWindow",
  "args": []
}

응답 형식:

{
  "status": "ok"
}

또는 에러 시:

{
  "status": "error",
  "error": "Error message"
}

보안

  • 로컬호스트(127.0.0.1)에서만 접근 가능
  • 토큰 인증 필요 (기본값: "abc123")

개발

npm run compile  # 컴파일
npm run watch    # 변경사항 감시
npm run package  # 확장 패키징

라이선스

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •