Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 智能补全能力在特定 case 补全出现乱码 #4279

Open
ensorrow opened this issue Dec 26, 2024 · 0 comments · May be fixed by #4280
Open

[BUG] 智能补全能力在特定 case 补全出现乱码 #4279

ensorrow opened this issue Dec 26, 2024 · 0 comments · May be fixed by #4280
Labels
🐞 bug Something isn't working

Comments

@ensorrow
Copy link
Contributor

描述你的问题(Describe the bug)
image

复现路径(To Reproduce)
总只有三行代码,在第二行时尝试应用五行代码可复现。

registry.registerCodeEditsProvider(async (editor, position, contextBean, token) => {
      return {
        items: [
          {
            insertText: `import React from 'react';

export function Todo() {
  const [todos, setTodos] = React.useState<string[]>([]);
}`,
            range: Range.fromPositions(
              {
                lineNumber: 1,
                column: 1,
              },
              {
                lineNumber: 4,
                column: Infinity,
              },
            ),
          },
        ],
      };
}

预期表现(Expected behavior)
代码正常改写

环境信息(Environment)

  • OS: [e.g. macOS 11.2 Apple M1/Windows10/Windows11]
  • Browser: [e.g. chrome, safari, electron]
  • OpenSumi Version: [e.g. 2.13.0]
@ensorrow ensorrow added the 🐞 bug Something isn't working label Dec 26, 2024
@Ricbet Ricbet linked a pull request Dec 27, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant