mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
20 lines
1.1 KiB
TypeScript
20 lines
1.1 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
'use strict';
|
|
|
|
import {JSONLocation} from './jsonLocation';
|
|
import {ISuggestionsCollector} from './jsonCompletion';
|
|
|
|
import {MarkedString} from 'vscode-languageserver';
|
|
|
|
export {ISuggestionsCollector} from './jsonCompletion';
|
|
|
|
|
|
export interface IJSONWorkerContribution {
|
|
getInfoContribution(resource: string, location: JSONLocation) : Thenable<MarkedString[]>;
|
|
collectPropertySuggestions(resource: string, location: JSONLocation, currentWord: string, addValue: boolean, isLast:boolean, result: ISuggestionsCollector) : Thenable<any>;
|
|
collectValueSuggestions(resource: string, location: JSONLocation, propertyKey: string, result: ISuggestionsCollector): Thenable<any>;
|
|
collectDefaultSuggestions(resource: string, result: ISuggestionsCollector): Thenable<any>;
|
|
} |