Skip to content

Commit bbcfe00

Browse files
committed
v0.9.1
1 parent 3dfaed7 commit bbcfe00

File tree

6 files changed

+20
-13
lines changed

6 files changed

+20
-13
lines changed

.github/workflows/release.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,36 @@ jobs:
3232
strategy:
3333
matrix:
3434
platforms:
35-
- os: ubuntu-20.04
35+
- os: ubuntu-18.04
3636
target: x86_64-unknown-linux-gnu
37+
dir: server/mcshader-lsp
3738
- os: windows-latest
38-
target: x86_64-windows-msvc
39+
target: x86_64-windows-msvc.exe
40+
dir: server/mcshader-lsp.exe
3941
- os: macos-10.15
4042
target: x86_64-apple-darwin
43+
dir: server/mcshader-lsp
4144
steps:
4245
- uses: actions/checkout@v2
46+
- name: Install latest nightly
47+
uses: actions-rs/toolchain@v1
48+
with:
49+
toolchain: nightly
50+
default: true
4351
- name: Build server
44-
run: cargo build --release
52+
run: cargo build --release --out-dir . -Z unstable-options
4553
- name: Upload release file
4654
uses: actions/upload-release-asset@v1
4755
env:
4856
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4957
with:
5058
upload_url: ${{ needs.empty-release.outputs.upload_url }}
51-
asset_path: target/release/mcshader-lsp
59+
asset_path: ${{ matrix.platforms.dir }}
5260
asset_name: mcshader-lsp-${{ matrix.platforms.target }}
5361
asset_content_type: application/octet-stream
5462
release-vscode-extension:
5563
runs-on: ubuntu-20.04
56-
needs: empty-release
64+
needs: [release-server, empty-release]
5765
steps:
5866
- uses: actions/checkout@v2
5967
- run: npm i

.vscodeignore

-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ server/
77
*.py
88
.gitignore
99
**/*.yml
10-
**/*.md
1110
**/*.txt

client/src/extension.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ export class Extension {
8282
const exists = await fs.stat(dest).then(() => true, () => false)
8383
if (!exists) await this.state.updateServerVersion(undefined)
8484

85-
this.state.updateServerVersion('borger')
86-
8785
const release = await getReleaseInfo(this.package.version)
8886

8987
const platform = platforms[`${process.arch} ${process.platform}`]
@@ -94,7 +92,7 @@ export class Extension {
9492

9593
if (release.tag_name === this.state.serverVersion) return
9694

97-
const artifact = release.assets.find(artifact => artifact.name === `mcshader-lsp-${platform}`)
95+
const artifact = release.assets.find(artifact => artifact.name === `mcshader-lsp-${platform}${(process.platform === 'win32' ? '.exe' : '')}`)
9896

9997
const userResponse = await vscode.window.showInformationMessage(
10098
this.state.serverVersion == undefined ?

client/src/lspClient.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ export class LanguageClient extends lsp.LanguageClient {
1111
constructor(ext: Extension) {
1212
super('vscode-mc-shader', 'VSCode MC Shader', {
1313
command: process.env['MCSHADER_DEBUG'] ?
14-
ext.context.asAbsolutePath(path.join('server', 'target', 'debug', 'mcshader-lsp')) :
15-
path.join(ext.context.globalStoragePath, 'mcshader-lsp')
14+
ext.context.asAbsolutePath(path.join('server', 'target', 'debug', 'mcshader-lsp')) +
15+
(process.platform === 'win32' ? '.exe' : '') :
16+
path.join(ext.context.globalStoragePath, 'mcshader-lsp')
1617
}, {
1718
documentSelector: [{scheme: 'file', language: 'glsl'}],
1819
outputChannel: lspOutputChannel,

client/src/persistent_state.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ export class PersistentState {
77
log.info('working with state', { serverVersion })
88
}
99

10-
get serverVersion(): string | undefined {
10+
public get serverVersion(): string | undefined {
1111
return this.state.get('serverVersion')
1212
}
13+
1314
async updateServerVersion(value: string | undefined) {
1415
await this.state.update('serverVersion', value)
1516
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-mc-shader",
33
"displayName": "Minecraft GLSL Shaders",
44
"description": "A Visual Studio Code extension for linting/etc Minecraft GLSL Shaders",
5-
"version": "0.9.0",
5+
"version": "0.9.1",
66
"publisher": "Strum355",
77
"author": "Noah Santschi-Cooney (Strum355)",
88
"license": "MIT",

0 commit comments

Comments
 (0)