Skip to content

Commit cb09e09

Browse files
committed
Update index.ts
1 parent 56300cf commit cb09e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/vscode/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function resolveServerPath() {
199199
}
200200

201201
if (path.isAbsolute(config.server.path)) {
202-
const serverPath = require.resolve('@vue/language-server', { paths: [config.server.path] });
202+
const serverPath = require.resolve('./index.js', { paths: [config.server.path] });
203203
const tsPluginPath = require.resolve('@vue/typescript-plugin', { paths: [path.dirname(serverPath)] });
204204
fs.writeFileSync(tsPluginPackPath, `module.exports = require("${tsPluginPath}");`);
205205
return serverPath;
@@ -210,7 +210,7 @@ function resolveServerPath() {
210210
continue;
211211
}
212212
try {
213-
const serverPath = require.resolve('@vue/language-server', {
213+
const serverPath = require.resolve('./index.js', {
214214
paths: [vscode.Uri.joinPath(workspaceFolder.uri, config.server.path).fsPath],
215215
});
216216
const tsPluginPath = require.resolve('@vue/typescript-plugin', { paths: [path.dirname(serverPath)] });

0 commit comments

Comments
 (0)