Skip to content

Commit

Permalink
A bunch of adjusmtens after sixtyfps-lsp was renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Feb 2, 2022
1 parent d0b6ef9 commit 8f3d378
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/nightly_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
uses: sixtyfpsui/sixtyfps/.github/workflows/sixtyfps_tool_binary.yaml@wip/rename
with:
program: "sixtyfps-viewer"
sixtyfps-lsp-binary:
slint-lsp-binary:
uses: sixtyfpsui/sixtyfps/.github/workflows/sixtyfps_tool_binary.yaml@wip/rename
with:
program: "sixtyfps-lsp"
program: "slint-lsp"
docs:
uses: sixtyfpsui/sixtyfps/.github/workflows/build_docs.yaml@wip/rename
wasm_demo:
Expand All @@ -47,14 +47,14 @@ jobs:
include:
- os: ubuntu-latest
toolchain: x86_64-unknown-linux-gnu
binary_built: sixtyfps-lsp
binary_built: slint-lsp
target_dir:
artifact_name: sixtyfps-lsp-x86_64-unknown-linux-gnu
artifact_name: slint-lsp-x86_64-unknown-linux-gnu
- os: windows-latest
toolchain: x86_64-pc-windows-gnu
binary_built: sixtyfps-lsp.exe
binary_built: slint-lsp.exe
target_dir:
artifact_name: sixtyfps-lsp-x86_64-pc-windows-gnu.exe
artifact_name: slint-lsp-x86_64-pc-windows-gnu.exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -71,7 +71,7 @@ jobs:
with:
command: build
toolchain: stable
args: --target ${{ matrix.toolchain }} --release -p sixtyfps-lsp
args: --target ${{ matrix.toolchain }} --release -p slint-lsp
- name: Create artifact directory
run: |
mkdir bin
Expand Down Expand Up @@ -126,11 +126,11 @@ jobs:
with:
command: build
toolchain: stable
args: --target aarch64-apple-darwin --release -p sixtyfps-lsp
args: --target aarch64-apple-darwin --release -p slint-lsp
- name: Create artifact directory
run: |
mkdir bin
cp -a target/aarch64-apple-darwin/release/sixtyfps-lsp bin/sixtyfps-lsp-aarch64-apple-darwin
cp -a target/aarch64-apple-darwin/release/slint-lsp bin/slint-lsp-aarch64-apple-darwin
- name: "Upload LSP Artifact"
uses: actions/upload-artifact@v2
with:
Expand All @@ -151,8 +151,8 @@ jobs:
path: bin
- name: Add macOS AArch64 binary to bundle
run: |
lipo -create -output tmp SixtyFPS\ Live\ Preview.app/Contents/MacOS/sixtyfps-lsp bin/sixtyfps-lsp-aarch64-apple-darwin
mv tmp SixtyFPS\ Live\ Preview.app/Contents/MacOS/sixtyfps-lsp
lipo -create -output tmp SixtyFPS\ Live\ Preview.app/Contents/MacOS/slint-lsp bin/slint-lsp-aarch64-apple-darwin
mv tmp SixtyFPS\ Live\ Preview.app/Contents/MacOS/slint-lsp
rm -rf bin
- name: "Upload LSP macOS bundle Artifact"
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -181,11 +181,11 @@ jobs:
with:
use-cross: true
command: build
args: --target ${{ matrix.target }} --release -p sixtyfps-lsp
args: --target ${{ matrix.target }} --release -p slint-lsp
- name: Create artifact directory
run: |
mkdir bin
cp target/${{ matrix.target }}/release/sixtyfps-lsp bin/sixtyfps-lsp-${{ matrix.target }}
cp target/${{ matrix.target }}/release/slint-lsp bin/slint-lsp-${{ matrix.target }}
- name: "Upload LSP Artifact"
uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sixtyfps_tool_binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
description: binary to build
options:
- sixtyfps-viewer
- sixtyfps-lsp
- slint-lsp
workflow_call:
inputs:
program:
Expand Down
4 changes: 2 additions & 2 deletions tools/lsp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ exists under the `language` server section:
```json
{
"languageserver": {
"sixtyfps": {
"slint": {
"command": "slint-lsp",
"filetypes": ["sixtyfps"]
"filetypes": ["slint"]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/lsp/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ fn handle_notification(
document_cache,
)?;
}
"sixtyfps/showPreview" => {
"slint/showPreview" => {
show_preview_command(
req.params.as_array().map_or(&[], |x| x.as_slice()),
connection,
Expand Down
2 changes: 1 addition & 1 deletion tools/lsp/sublime/Slint.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>name</key>
<string>Miscellaneous</string>
<key>scope</key>
<string>source.sixtyfps</string>
<string>source.slint</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
Expand Down
4 changes: 2 additions & 2 deletions vscode_extension/slint.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sixtyfps",
"scopeName": "source.sixtyfps",
"name": "slint",
"scopeName": "source.slint",
"patterns": [
{
"include": "#document"
Expand Down

0 comments on commit 8f3d378

Please sign in to comment.