mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
definition and docs
This commit is contained in:
parent
ff09e59985
commit
c6c45135c2
2 changed files with 15 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ export class LanguageServiceDefaultsImpl implements monaco.languages.typescript.
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
setExtraLibs(libs: Array<{ content: string; filePath?: string }> = []): IDisposable {
|
setExtraLibs(libs: Array<{ content: string; filePath?: string }>): IDisposable {
|
||||||
const paths = [];
|
const paths = [];
|
||||||
|
|
||||||
if (libs && libs.length > 0) {
|
if (libs && libs.length > 0) {
|
||||||
|
|
|
||||||
16
src/monaco.d.ts
vendored
16
src/monaco.d.ts
vendored
|
|
@ -135,11 +135,23 @@ declare module monaco.languages.typescript {
|
||||||
*
|
*
|
||||||
* @param content The file content
|
* @param content The file content
|
||||||
* @param filePath An optional file path
|
* @param filePath An optional file path
|
||||||
* @returns A disposabled which will remove the file from the
|
* @returns A disposable which will remove the file from the
|
||||||
* language service upon disposal.
|
* language service upon cleanup.
|
||||||
*/
|
*/
|
||||||
addExtraLib(content: string, filePath?: string): IDisposable;
|
addExtraLib(content: string, filePath?: string): IDisposable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add multiple source files to the language service.
|
||||||
|
* Use this for multiple typescript (definition) files that won't be loaded
|
||||||
|
* as editor document, like `jquery.d.ts`.
|
||||||
|
* This method is optimised for performance and raises change events only once
|
||||||
|
* for the whole list.
|
||||||
|
* @param libs An array of entries to register.
|
||||||
|
* @returns A disposable which will remove the file from the
|
||||||
|
* language service upon cleanup.
|
||||||
|
*/
|
||||||
|
setExtraLibs(libs: Array<{ content: string; filePath?: string }>): IDisposable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set TypeScript compiler options.
|
* Set TypeScript compiler options.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue