Some progress.

This commit is contained in:
Henning Dieterichs
2019-08-07 17:23:34 +02:00
parent 85692ac720
commit ec664bad91
21 changed files with 4943 additions and 286 deletions

View File

@@ -44,16 +44,24 @@ export class ConnectionHandler {
},
openInBrowser: async ({}) => {
try {
await launchChrome(server.indexUrl);
} catch (e) {
//await launchChrome(server.indexUrl);
open(server.indexUrl);
}
} catch (e) {}
},
setPreferredDataExtractor: async ({ dataExtractorId }) => {
if (this.watcher) {
this.watcher.setPreferredDataExtractor(dataExtractorId);
}
},
getCompletions: async ({ text, column }) => {
const completions = await sources.jsSource.getCompletions(
text,
column
);
return {
completions,
};
},
}
);