-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/nicollasricas/vscode-streamdeck/issues/2
- Loading branch information
1 parent
fa0a7da
commit 05fd790
Showing
17 changed files
with
218 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [2.0.2] - 2019-12-09 | ||
|
||
### Added | ||
|
||
- Change language key | ||
|
||
## Changed | ||
|
||
- "Execute Command" key now support arguments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Stream Deck for Visual Studio Code | ||
|
||
Enables Stream Deck integration within Visual Studio Code. | ||
|
||
## Features | ||
|
||
- Execute any Visual Studio Code command. | ||
- Create and execute terminal commands. | ||
|
||
## WIP Features | ||
|
||
- Advanced terminal creation and command execution with the new released API. | ||
- Support for Stream Deck Multi Actions. | ||
- Folder switch based on the type of project. | ||
|
||
## Getting Started | ||
|
||
1. Download _Visual Studio Code plugin_ on Stream Deck Store or [here](https://github.com/nicollasricas/vscode-streamdeck/releases). | ||
2. Download _Stream Deck for Visual Studio Code_ on Visual Studio Code marketplace. | ||
|
||
## Settings | ||
|
||
You can change the IP and port to the message server in: | ||
|
||
_%appdata%\Elgato\StreamDeck\Plugins\com.nicollasr.streamdeckvsc.sdPlugin\appsettings.json_ | ||
|
||
**Don't forget to change it in Visual Studio Code settings or you won't be able to connect and use the available features.** | ||
|
||
_I recommend using 127.0.0.1 as your IP address instead of localhost_. | ||
|
||
## Getting Commands ID | ||
|
||
In Visual Studio Code open _File->Preferences->Keyboard Shortcuts_, find the command you want, right-click it and _Copy Command Id_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using BarRaider.SdTools; | ||
using StreamDeckVSC.Messages; | ||
using StreamDeckVSC.Settings; | ||
|
||
namespace StreamDeckVSC.Keys | ||
{ | ||
[PluginActionId("com.nicollasr.streamdeckvsc.changelanguage")] | ||
public class ChangeLanguageKey : KeyBase<ChangeLanguageSettings> | ||
{ | ||
public ChangeLanguageKey(SDConnection connection, InitialPayload payload) : base(connection, payload) | ||
{ | ||
} | ||
|
||
public override void KeyPressed(KeyPayload payload) | ||
{ | ||
base.KeyPressed(payload); | ||
|
||
MessageServer.CurrentClient?.Send(new ChangeLanguageMessage(settings.LanguageId)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
|
||
namespace StreamDeckVSC.Messages | ||
{ | ||
public class ChangeLanguageMessage | ||
{ | ||
[JsonProperty("languageId")] | ||
public string LanguageId { get; set; } | ||
|
||
public ChangeLanguageMessage() | ||
{ | ||
} | ||
|
||
public ChangeLanguageMessage(string languageId) => LanguageId = languageId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui,viewport-fit=cover" | ||
/> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
<title>com.streamdeck-vscode.terminal Property Inspector</title> | ||
<link rel="stylesheet" href="css/sdpi.css" /> | ||
<script src="js/pi.js"></script> | ||
</head> | ||
<body> | ||
<div class="sdpi-wrapper"> | ||
<details> | ||
<summary>REQUIREMENTS</summary> | ||
<p> | ||
For this plugin to work you need to install "Stream Deck for Visual Studio Code" from your vscode marketplace. | ||
</p> | ||
<a href="https://marketplace.visualstudio.com/items?itemName=nicollasr.vscode-streamdeck" target="blank"> | ||
Download "Stream Deck for Visual Studio Code" | ||
</a> | ||
<a href="https://code.visualstudio.com/docs/editor/extension-gallery" target="blank"> | ||
How to install extensions | ||
</a> | ||
</details> | ||
|
||
<div class="sdpi-item"> | ||
<div class="sdpi-item-label">Language ID</div> | ||
<input class="sdpi-item-value" type="text" id="languageId" value="" /> | ||
</div> | ||
|
||
<div class="sdpi-item"> | ||
<a href="https://code.visualstudio.com/docs/languages/identifiers" target="blank"> | ||
Language Identifiers | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div class="sdpi-info-label hidden" style="top: -1000;" value=""></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace StreamDeckVSC.Settings | ||
{ | ||
public class ChangeLanguageSettings : KeySettings | ||
{ | ||
[JsonProperty("languageId")] | ||
public string LanguageId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.