diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index b7084999baa..023f7ed309b 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -81,7 +81,7 @@ declare namespace vscode { /** * Whether this line is whitespace only, shorthand - * for [TextLine.firstNonWhitespaceCharacterIndex](#TextLine.firstNonWhitespaceCharacterIndex]) === [TextLine.text.length](#TextLine.text.length). + * for [TextLine.firstNonWhitespaceCharacterIndex](#TextLine.firstNonWhitespaceCharacterIndex) === [TextLine.text.length](#TextLine.text). * * @readonly */ @@ -105,7 +105,7 @@ declare namespace vscode { /** * The file system path of the associated resource. Shorthand - * notation for [TextDocument.uri.fsPath](#TextDocument.uri.fsPath). Independent of the uri scheme. + * notation for [TextDocument.uri.fsPath](#TextDocument.uri). Independent of the uri scheme. * * @readonly */ @@ -954,7 +954,7 @@ declare namespace vscode { } /** - * Represents an end of line character sequence in a [document](#Document). + * Represents an end of line character sequence in a [document](#TextDocument). */ export enum EndOfLine { /** @@ -970,13 +970,13 @@ declare namespace vscode { /** * A complex edit that will be applied in one transaction on a TextEditor. * This holds a description of the edits and if the edits are valid (i.e. no overlapping regions, document was not changed in the meantime, etc.) - * they can be applied on a [document](#Document) associated with a [text editor](#TextEditor). + * they can be applied on a [document](#TextDocument) associated with a [text editor](#TextEditor). * */ export interface TextEditorEdit { /** * Replace a certain text region with a new value. - * You can use \r\n or \n in `value` and they will be normalized to the current [document](#Document). + * You can use \r\n or \n in `value` and they will be normalized to the current [document](#TextDocument). * * @param location The range this operation should remove. * @param value The new text this operation should insert after removing `location`. @@ -985,7 +985,7 @@ declare namespace vscode { /** * Insert text at a location. - * You can use \r\n or \n in `value` and they will be normalized to the current [document](#Document). + * You can use \r\n or \n in `value` and they will be normalized to the current [document](#TextDocument). * Although the equivalent text edit can be made with [replace](#TextEditorEdit.replace), `insert` will produce a different resulting selection (it will get moved). * * @param location The position where the new text should be inserted. @@ -1003,7 +1003,7 @@ declare namespace vscode { /** * Set the end of line sequence. * - * @param endOfLine The new end of line for the [document](#Document). + * @param endOfLine The new end of line for the [document](#TextDocument). */ setEndOfLine(endOfLine: EndOfLine): void; } @@ -1272,9 +1272,9 @@ declare namespace vscode { * A text document content provider allows to add readonly documents * to the editor, such as source from a dll or generated html from md. * - * Content providers are [registered](#workbench.registerTextDocumentContentProvider) + * Content providers are [registered](#workspace.registerTextDocumentContentProvider) * for a [uri-scheme](#Uri.scheme). When a uri with that scheme is to - * be [loaded](#workbench.openTextDocument) the content provider is + * be [loaded](#workspace.openTextDocument) the content provider is * asked. */ export interface TextDocumentContentProvider { @@ -1289,7 +1289,7 @@ declare namespace vscode { * * The editor will use the returned string-content to create a readonly * [document](TextDocument). Resources allocated should be released when - * the corresponding document has been [closed](#workbench.onDidCloseTextDocument). + * the corresponding document has been [closed](#workspace.onDidCloseTextDocument). * * @param uri An uri which scheme matches the scheme this provider was [registered](#workspace.registerTextDocumentContentProvider) for. * @param token A cancellation token. @@ -1431,7 +1431,7 @@ declare namespace vscode { /** * A language selector is the combination of one or many language identifiers - * and [language filters](#LanguageFilter). + * and [language filters](#DocumentFilter). * * @sample `let sel:DocumentSelector = 'typescript'`; * @sample `let sel:DocumentSelector = ['typescript', { language: 'json', pattern: '**∕tsconfig.json' }]`; @@ -2961,13 +2961,13 @@ declare namespace vscode { /** * A memento object that stores state in the context - * of the currently opened [workspace](#workspace.path). + * of the currently opened [workspace](#workspace.rootPath). */ workspaceState: Memento; /** * A memento object that stores state independent - * of the current opened [workspace](#workspace.path). + * of the current opened [workspace](#workspace.rootPath). */ globalState: Memento; @@ -3390,7 +3390,7 @@ declare namespace vscode { * folder has been opened. * * The workspace offers support for [listening](#workspace.createFileSystemWatcher) to fs - * events and for [finding](#workspace#findFiles) files. Both perform well and run _outside_ + * events and for [finding](#workspace.findFiles) files. Both perform well and run _outside_ * the editor-process so that they should be always used instead of nodejs-equivalents. */ export namespace workspace { @@ -3592,8 +3592,8 @@ declare namespace vscode { * (2.3) Else score is `0`. * (3) When selector is a [filter](#DocumentFilter) return the maximum individual score given that each score is `>0`. * (3.1) When [language](#DocumentFilter.language) is set apply rules from #2, when `0` the total score is `0`. - * (3.2) When [scheme](#Document.scheme) is set and equals the [uri](#TextDocument.uri)-scheme score with `10`, else the total score is `0`. - * (3.3) When [pattern](#Document.pattern) is set + * (3.2) When [scheme](#DocumentFilter.scheme) is set and equals the [uri](#TextDocument.uri)-scheme score with `10`, else the total score is `0`. + * (3.3) When [pattern](#DocumentFilter.pattern) is set * (3.3.1) pattern equals the [uri](#TextDocument.uri)-fsPath score with `10`, * (3.3.1) if the pattern matches as glob-pattern score with `5`, * (3.3.1) the total score is `0`