上下文:我正在尝试为vscode编写一个扩展,它将连接到已经在运行的语言服务器。我之所以要这样做,是因为我可以在IDE中运行语言服务器,并将调试器附加到它。
我正在尝试使用websockets连接。这是我的分机中的代码:
import * as vscode from 'vscode';
import WebSocket from 'ws';
import { TextDecoder } from 'util';
// Import the language client, language client options and server
在更改远程服务器上的(唯一的)磁盘并重新安装OS (Ubuntu22.04) vscode到该服务器的远程连接之后,消息失败:
Could not establish connection to "oric": Remote host key has changed, port forwarding is disabled.
我在主机的known_hosts文件中删除了对服务器oric的引用,但这并没有解决问题。
我如何告诉vscode,这个名称相同的服务器实际上是新的/不同于它以前知道的服务器?
谢谢。