Skip to content

Commit b50dbbb

Browse files
committed
暂时先这么实现
1 parent f0ac740 commit b50dbbb

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

client/out/languageserver.js

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/languageserver.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ export function activate(context: ExtensionContext) {
164164
if (uri.scheme === 'untitled' && !defaultClient) {
165165
defaultClient = start(context, [
166166
{ scheme: 'untitled', language: 'lua' }
167-
], null);
167+
], {
168+
name: 'untitled',
169+
uri: uri,
170+
index: 0,
171+
});
168172
return;
169173
}
170174

@@ -176,7 +180,11 @@ export function activate(context: ExtensionContext) {
176180
if (!clients.has(parentUri.toString())) {
177181
let client = start(context, [
178182
{ scheme: 'file', language: 'lua', pattern: `${parentUri.fsPath}/**/*` }
179-
], null);
183+
], {
184+
name: parentUri.fsPath,
185+
uri: parentUri,
186+
index: 0,
187+
});
180188
clients.set(parentUri.toString(), client);
181189
}
182190
return;

0 commit comments

Comments
 (0)