Skip to content

Commit 155aa8d

Browse files
committed
changed name of variable coming from package
1 parent 51c3ec7 commit 155aa8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/completion.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { allKeywords, components, keywords } from './types/keywords.js';
1212
import { TextDocument } from 'vscode-languageserver-textdocument';
1313

1414
//this would come from package
15-
const StandardVO = {
15+
const StandardVOCompletion = {
1616
prefixes: ['StandardVO', 'StandardVO.Currency'],
1717
completions: {
1818
StandardVO: ['Currency'],
@@ -29,11 +29,11 @@ export class CompletionItemProvider {
2929
let text = documents.get(_textDocumentPosition.textDocument.uri).getText();
3030
let position = _textDocumentPosition.position;
3131
const offset = document.offsetAt(position);
32-
for (const prefix of StandardVO.prefixes) {
32+
for (const prefix of StandardVOCompletion.prefixes) {
3333
const linePrefix = text.slice(offset - prefix.length - 1, offset);
3434
if (linePrefix.endsWith(prefix + '.')) {
3535
return [
36-
...StandardVO.completions[prefix].map((symbol) => ({
36+
...StandardVOCompletion.completions[prefix].map((symbol) => ({
3737
label: symbol,
3838
kind: CompletionItemKind.Keyword,
3939
data: 2,

0 commit comments

Comments
 (0)