File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed
packages/language-service/lib/features Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export function register(context: LanguageServiceContext) {
9
9
return async ( item : vscode . CodeAction , token = NoneCancellationToken ) => {
10
10
11
11
const data : ServiceCodeActionData | undefined = item . data ;
12
+ delete item . data ;
12
13
13
14
if ( data ) {
14
15
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export function register(context: LanguageServiceContext) {
12
12
return async ( item : vscode . CodeLens , token = NoneCancellationToken ) => {
13
13
14
14
const data : ServiceCodeLensData | ServiceReferencesCodeLensData | undefined = item . data ;
15
+ delete item . data ;
15
16
16
17
if ( data ?. kind === 'normal' ) {
17
18
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export function register(context: LanguageServiceContext) {
11
11
return async ( item : vscode . CompletionItem , token = NoneCancellationToken ) => {
12
12
13
13
const data : ServiceCompletionData | undefined = item . data ;
14
+ delete item . data ;
14
15
15
16
if ( data ) {
16
17
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ export function register(context: LanguageServiceContext) {
9
9
return async ( item : vscode . DocumentLink , token = NoneCancellationToken ) => {
10
10
11
11
const data : DocumentLinkData | undefined = item . data ;
12
+ delete item . data ;
13
+
12
14
if ( data ) {
13
15
const plugin = context . plugins [ data . pluginIndex ] ;
14
16
if ( ! plugin [ 1 ] . resolveDocumentLink ) {
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ export function register(context: LanguageServiceContext) {
8
8
return async ( item : vscode . InlayHint , token = NoneCancellationToken ) => {
9
9
10
10
const data : InlayHintData | undefined = item . data ;
11
+ delete item . data ;
12
+
11
13
if ( data ) {
12
14
const plugin = context . plugins [ data . pluginIndex ] ;
13
15
if ( ! plugin [ 1 ] . resolveInlayHint ) {
Original file line number Diff line number Diff line change @@ -5,19 +5,21 @@ import { NoneCancellationToken } from '../utils/cancellation';
5
5
6
6
export function register ( context : LanguageServiceContext ) {
7
7
8
- return async ( symbol : vscode . WorkspaceSymbol , token = NoneCancellationToken ) => {
8
+ return async ( item : vscode . WorkspaceSymbol , token = NoneCancellationToken ) => {
9
+
10
+ const data : WorkspaceSymbolData | undefined = item . data ;
11
+ delete item . data ;
9
12
10
- const data : WorkspaceSymbolData | undefined = symbol . data ;
11
13
if ( data ) {
12
14
const plugin = context . plugins [ data . pluginIndex ] ;
13
15
if ( ! plugin [ 1 ] . resolveWorkspaceSymbol ) {
14
- return symbol ;
16
+ return item ;
15
17
}
16
18
17
- Object . assign ( symbol , data . original ) ;
18
- symbol = await plugin [ 1 ] . resolveWorkspaceSymbol ( symbol , token ) ;
19
+ Object . assign ( item , data . original ) ;
20
+ item = await plugin [ 1 ] . resolveWorkspaceSymbol ( item , token ) ;
19
21
}
20
22
21
- return symbol ;
23
+ return item ;
22
24
} ;
23
25
}
You can’t perform that action at this time.
0 commit comments