mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 18:28:02 +00:00
fix: missing typst-preview
This commit is contained in:
parent
d46a135882
commit
28fc0fc036
2 changed files with 44 additions and 2 deletions
42
.github/workflows/release.yml
vendored
42
.github/workflows/release.yml
vendored
|
@ -77,12 +77,33 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: Enter-tainer/typst-preview
|
||||
path: external/typst-preview
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Hack typst-preview
|
||||
run: |
|
||||
mv src/main.rs src/main.rsx
|
||||
working-directory: ./external/typst-preview
|
||||
- name: Build typst-dom
|
||||
run: |
|
||||
yarn
|
||||
yarn build
|
||||
working-directory: ./external/typst-preview/addons/typst-dom
|
||||
- name: Build frontend
|
||||
run: yarn
|
||||
working-directory: ./external/typst-preview/addons/frontend
|
||||
- name: Build typst-preview
|
||||
run: |
|
||||
yarn
|
||||
yarn run compile
|
||||
working-directory: ./external/typst-preview/addons/vscode
|
||||
- name: Build vscode extension
|
||||
run: |
|
||||
yarn
|
||||
|
@ -186,6 +207,27 @@ jobs:
|
|||
submodules: recursive
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: Enter-tainer/typst-preview
|
||||
path: external/typst-preview
|
||||
- name: Hack typst-preview
|
||||
run: |
|
||||
mv src/main.rs src/main.rsx
|
||||
working-directory: ./external/typst-preview
|
||||
- name: Build typst-dom
|
||||
run: |
|
||||
yarn
|
||||
yarn build
|
||||
working-directory: ./external/typst-preview/addons/typst-dom
|
||||
- name: Build frontend
|
||||
run: yarn
|
||||
working-directory: ./external/typst-preview/addons/frontend
|
||||
- name: Build typst-preview
|
||||
run: |
|
||||
yarn
|
||||
yarn run compile
|
||||
working-directory: ./external/typst-preview/addons/vscode
|
||||
- name: Build vscode extension
|
||||
run: |
|
||||
yarn
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use std::{collections::HashSet, os::windows::fs::FileTypeExt};
|
||||
use std::collections::HashSet;
|
||||
|
||||
use log::{debug, warn};
|
||||
use lsp_types::TextEdit;
|
||||
|
@ -173,7 +173,7 @@ fn search_in_workspace(
|
|||
let Ok(de) = path else {
|
||||
continue;
|
||||
};
|
||||
if !de.file_type().is_file() && !de.file_type().is_symlink_file() {
|
||||
if !de.file_type().is_file() {
|
||||
continue;
|
||||
}
|
||||
if !de
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue