parent
cd624aa05e
commit
e7cdffd8d4
2 changed files with 3 additions and 2 deletions
src/server
|
@ -222,7 +222,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
|
||||||
): Promise<CompletionItem> {
|
): Promise<CompletionItem> {
|
||||||
if (item == null) return undefined
|
if (item == null) return undefined
|
||||||
|
|
||||||
let { uri, position, source, name } = item.data
|
let { uri, position, source, name, data } = item.data
|
||||||
const filepath = this.client.toPath(uri)
|
const filepath = this.client.toPath(uri)
|
||||||
if (!filepath) return undefined
|
if (!filepath) return undefined
|
||||||
let document = workspace.getDocument(uri)
|
let document = workspace.getDocument(uri)
|
||||||
|
@ -232,7 +232,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
|
||||||
filepath,
|
filepath,
|
||||||
position
|
position
|
||||||
),
|
),
|
||||||
entryNames: [source ? { name, source } : name]
|
entryNames: [source ? { name, source, data } : name]
|
||||||
}
|
}
|
||||||
|
|
||||||
let response: ServerResponse.Response<Proto.CompletionDetailsResponse>
|
let response: ServerResponse.Response<Proto.CompletionDetailsResponse>
|
||||||
|
|
|
@ -106,6 +106,7 @@ export function convertCompletionEntry(
|
||||||
uri,
|
uri,
|
||||||
position,
|
position,
|
||||||
name: tsEntry.name,
|
name: tsEntry.name,
|
||||||
|
data: tsEntry.data,
|
||||||
source: tsEntry.source || ''
|
source: tsEntry.source || ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue