Skip to content

Commit bcb0dfa

Browse files
committed
Changed client to start server on ini format.
Added test text completions for map.ini
1 parent 6696c8f commit bcb0dfa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client/src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function activate(context: ExtensionContext) {
2121
path.join('server', 'out', 'server.js')
2222
);
2323

24-
console.log("Extension activated");
24+
console.log("ZeroSyntax Client Active");
2525

2626
// If the extension is launched in debug mode then the debug server options are used
2727
// Otherwise the run options are used
@@ -36,7 +36,7 @@ export function activate(context: ExtensionContext) {
3636
// Options to control the language client
3737
const clientOptions: LanguageClientOptions = {
3838
// Register the server for plain text documents
39-
documentSelector: [{ scheme: 'file', language: 'plaintext' }],
39+
documentSelector: [{ scheme: 'file', language: 'ini' }],
4040
synchronize: {
4141
// Notify the server about file changes to '.clientrc files contained in the workspace
4242
fileEvents: workspace.createFileSystemWatcher('**/.clientrc')

server/src/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ connection.onCompletion(
238238
// info and always provide the same completion items.
239239
return [
240240
{
241-
label: 'TypeScript',
241+
label: 'ObjectCreationList',
242242
kind: CompletionItemKind.Text,
243243
data: 1
244244
},
245245
{
246-
label: 'JavaScript',
246+
label: 'W3DModelDraw',
247247
kind: CompletionItemKind.Text,
248248
data: 2
249-
}
249+
},
250250
];
251251
}
252252
);

0 commit comments

Comments
 (0)