Skip to content

Commit 999ff01

Browse files
refactor(language-service): temporarily remove references codeLens (#4364)
1 parent 80a89d3 commit 999ff01

File tree

5 files changed

+3
-69
lines changed

5 files changed

+3
-69
lines changed

packages/language-core/lib/codegen/script/template.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ function* generateCtx(
102102
className.offset,
103103
'string',
104104
false,
105-
true,
106105
);
107106
}
108107
yield `>${endOfLine}`;
@@ -138,7 +137,6 @@ function* generateTemplateContext(
138137
className.offset,
139138
'boolean',
140139
true,
141-
!style.module,
142140
);
143141
}
144142
}
@@ -168,17 +166,13 @@ function* generateCssClassProperty(
168166
offset: number,
169167
propertyType: string,
170168
optional: boolean,
171-
referencesCodeLens: boolean
172169
): Generator<Code> {
173170
yield `${newLine} & { `;
174171
yield [
175172
'',
176173
'style_' + styleIndex,
177174
offset,
178-
{
179-
...codeFeatures.navigationWithoutRename,
180-
__referencesCodeLens: referencesCodeLens,
181-
},
175+
codeFeatures.navigationWithoutRename,
182176
];
183177
yield `'`;
184178
yield [

packages/language-core/lib/codegen/template/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,15 @@ export function* generateTemplate(options: TemplateCodegenOptions): Generator<Co
6161
ctx,
6262
slot.name,
6363
slot.loc,
64-
{
65-
...ctx.codeFeatures.withoutHighlightAndCompletion,
66-
__referencesCodeLens: true,
67-
},
64+
ctx.codeFeatures.withoutHighlightAndCompletion,
6865
slot.nodeLoc
6966
);
7067
}
7168
else {
7269
yield* wrapWith(
7370
slot.tagRange[0],
7471
slot.tagRange[1],
75-
{
76-
...ctx.codeFeatures.withoutHighlightAndCompletion,
77-
__referencesCodeLens: true,
78-
},
72+
ctx.codeFeatures.withoutHighlightAndCompletion,
7973
`default`,
8074
);
8175
}

packages/language-core/lib/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export type RawVueCompilerOptions = Partial<Omit<VueCompilerOptions, 'target' |
1414
};
1515

1616
export interface VueCodeInformation extends CodeInformation {
17-
__referencesCodeLens?: boolean;
1817
__hint?: {
1918
setting: string;
2019
label: string;

packages/language-service/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { create as createCssPlugin } from './lib/plugins/css';
1717
import { create as createVueAutoDotValuePlugin } from './lib/plugins/vue-autoinsert-dotvalue';
1818
import { create as createVueAutoWrapParenthesesPlugin } from './lib/plugins/vue-autoinsert-parentheses';
1919
import { create as createVueAutoAddSpacePlugin } from './lib/plugins/vue-autoinsert-space';
20-
import { create as createVueReferencesCodeLensPlugin } from './lib/plugins/vue-codelens-references';
2120
import { create as createVueDirectiveCommentsPlugin } from './lib/plugins/vue-directive-comments';
2221
import { create as createVueDocumentDropPlugin } from './lib/plugins/vue-document-drop';
2322
import { create as createVueDocumentLinksPlugin } from './lib/plugins/vue-document-links';
@@ -79,7 +78,6 @@ export function getVueLanguageServicePlugins(
7978
createVueTemplatePlugin('pug', ts, getVueOptions, getTsPluginClient),
8079
createVueSfcPlugin(),
8180
createVueTwoslashQueriesPlugin(ts, getTsPluginClient),
82-
createVueReferencesCodeLensPlugin(),
8381
createVueDocumentLinksPlugin(),
8482
createVueDocumentDropPlugin(ts, getTsPluginClient),
8583
createVueAutoDotValuePlugin(ts, getTsPluginClient),

packages/language-service/lib/plugins/vue-codelens-references.ts

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)