--- a/src/Tools/VSCode/extension/src/completion.ts Mon Jun 12 15:44:08 2017 +0200
+++ b/src/Tools/VSCode/extension/src/completion.ts Mon Jun 12 15:52:49 2017 +0200
@@ -11,26 +11,6 @@
{
const line_text = document.lineAt(position).text
- let i = position.character
- while (i > 0 && line_text.charAt(i - 1) !== "\\") { i = i - 1 }
- const start = i - 1
-
- let result = undefined as CompletionList
- if (start >= 0 && line_text.charAt(start) == "\\") {
- const s = line_text.substring(start + 1, position.character)
- if (symbol.is_ascii_identifier(s)) {
- const items =
- symbol.complete_name(s).map((sym) =>
- {
- return {
- label: sym,
- detail: `(symbol ${symbol.get_unicode(sym)})`,
- range: new Range(new Position(position.line, start), position)
- }
- })
- result = new CompletionList(items)
- }
- }
- return result
+ return new CompletionList([])
}
}
--- a/src/Tools/VSCode/extension/src/extension.ts Mon Jun 12 15:44:08 2017 +0200
+++ b/src/Tools/VSCode/extension/src/extension.ts Mon Jun 12 15:52:49 2017 +0200
@@ -123,14 +123,12 @@
/* completion */
-/* FIXME unused
const completion_provider = new completion.Completion_Provider
for (const mode of ["isabelle", "isabelle-ml"]) {
context.subscriptions.push(
languages.registerCompletionItemProvider(mode, completion_provider))
}
-*/
/* start server */
--- a/src/Tools/VSCode/extension/src/symbol.ts Mon Jun 12 15:44:08 2017 +0200
+++ b/src/Tools/VSCode/extension/src/symbol.ts Mon Jun 12 15:52:49 2017 +0200
@@ -75,18 +75,6 @@
}
-/* completion */
-
-export function complete_name(prefix: string): [string]
-{
- let result = [] as [string]
- for (const entry of names) {
- if (entry[1].startsWith(prefix)) { result.push(entry[0]) }
- }
- return result.sort()
-}
-
-
/* prettify symbols mode */
interface PrettyStyleProperties