From 3e5c712005c0e9172f1d5a0b9dd97584c899a250 Mon Sep 17 00:00:00 2001 From: Yaotian-Liu Date: Sun, 19 Mar 2023 13:15:00 +0800 Subject: [PATCH] new release 1.1.2 --- .github/workflows/release.yml | 3 ++- main.ts | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99626b7..d7311d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ on: jobs: create_release: if: "contains(github.event.head_commit.message, 'new release')" + permissions: write-all runs-on: ubuntu-latest steps: - name: Checkout Repository @@ -27,7 +28,7 @@ jobs: - name: Get Release Version id: release-version run: | - echo "VER=${{ github.event.head_commit.message }} | cut -d' ' -f3" >> $GITHUB_OUTPUT + echo "VER=$(echo ${{ github.event.head_commit.message }} | cut -d' ' -f3)" >> $GITHUB_OUTPUT - name: Create Release id: create_release diff --git a/main.ts b/main.ts index 9f28cf2..7f95458 100644 --- a/main.ts +++ b/main.ts @@ -203,11 +203,6 @@ class PseudocodeSuggestor extends EditorSuggest { if (!isPseudocode) return null; - // Get last word in current line - // const currentLineToCursor = editor - // .getLine(cursor.line) - // .slice(0, cursor.ch); - return { start: { line: cursor.line, ch: currentLineLastWordStart }, end: cursor,