Просмотр исходного кода

fix: disable virtual extmarks for file/agent mentions (#4731)

Tommy D. Rossi 2 месяцев назад
Родитель
Сommit
673dbeee09

+ 0 - 1
packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

@@ -81,7 +81,6 @@ export function Autocomplete(props: {
     const extmarkId = input.extmarks.create({
     const extmarkId = input.extmarks.create({
       start: extmarkStart,
       start: extmarkStart,
       end: extmarkEnd,
       end: extmarkEnd,
-      virtual: true,
       styleId,
       styleId,
       typeId: props.promptPartTypeId(),
       typeId: props.promptPartTypeId(),
     })
     })

+ 0 - 1
packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

@@ -310,7 +310,6 @@ export function Prompt(props: PromptProps) {
         const extmarkId = input.extmarks.create({
         const extmarkId = input.extmarks.create({
           start,
           start,
           end,
           end,
-          virtual: true,
           styleId,
           styleId,
           typeId: promptPartTypeId,
           typeId: promptPartTypeId,
         })
         })