From 38c2868bb5f792493818ab552ff4f853f2769767 Mon Sep 17 00:00:00 2001 From: Ilya Rodionov Date: Wed, 22 Aug 2018 23:10:00 +0300 Subject: [PATCH 1/2] Remove out of date params from doc comments. --- src/vs/editor/common/model.ts | 4 ---- src/vs/monaco.d.ts | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/vs/editor/common/model.ts b/src/vs/editor/common/model.ts index d37319c25b5e7..66a35fabb4854 100644 --- a/src/vs/editor/common/model.ts +++ b/src/vs/editor/common/model.ts @@ -747,7 +747,6 @@ export interface ITextModel { /** * Get the word under or besides `position`. * @param position The position to look for a word. - * @param skipSyntaxTokens Ignore syntax tokens, as identified by the mode. * @return The word under or besides `position`. Might be null. */ getWordAtPosition(position: IPosition): IWordAtPosition; @@ -755,7 +754,6 @@ export interface ITextModel { /** * Get the word under or besides `position` trimmed to `position`.column * @param position The position to look for a word. - * @param skipSyntaxTokens Ignore syntax tokens, as identified by the mode. * @return The word under or besides `position`. Will never be null. */ getWordUntilPosition(position: IPosition): IWordAtPosition; @@ -814,7 +812,6 @@ export interface ITextModel { /** * Get the word under or besides `position`. * @param position The position to look for a word. - * @param skipSyntaxTokens Ignore syntax tokens, as identified by the mode. * @return The word under or besides `position`. Might be null. */ getWordAtPosition(position: IPosition): IWordAtPosition; @@ -822,7 +819,6 @@ export interface ITextModel { /** * Get the word under or besides `position` trimmed to `position`.column * @param position The position to look for a word. - * @param skipSyntaxTokens Ignore syntax tokens, as identified by the mode. * @return The word under or besides `position`. Will never be null. */ getWordUntilPosition(position: IPosition): IWordAtPosition; diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index 76dcf491ff9c1..0d0895e902e13 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -181,7 +181,7 @@ declare namespace monaco { good.scheme === 'file'; good.path === '/coding/c#/project1'; good.fragment === ''; - + const bad = Uri.parse('file://' + '/coding/c#/project1'); bad.scheme === 'file'; bad.path === '/coding/c'; // path is now broken @@ -1666,14 +1666,12 @@ declare namespace monaco.editor { /** * Get the word under or besides `position`. * @param position The position to look for a word. - * @param skipSyntaxTokens Ignore syntax tokens, as identified by the mode. * @return The word under or besides `position`. Might be null. */ getWordAtPosition(position: IPosition): IWordAtPosition; /** * Get the word under or besides `position` trimmed to `position`.column * @param position The position to look for a word. - * @param skipSyntaxTokens Ignore syntax tokens, as identified by the mode. * @return The word under or besides `position`. Will never be null. */ getWordUntilPosition(position: IPosition): IWordAtPosition; @@ -1684,14 +1682,12 @@ declare namespace monaco.editor { /** * Get the word under or besides `position`. * @param position The position to look for a word. - * @param skipSyntaxTokens Ignore syntax tokens, as identified by the mode. * @return The word under or besides `position`. Might be null. */ getWordAtPosition(position: IPosition): IWordAtPosition; /** * Get the word under or besides `position` trimmed to `position`.column * @param position The position to look for a word. - * @param skipSyntaxTokens Ignore syntax tokens, as identified by the mode. * @return The word under or besides `position`. Will never be null. */ getWordUntilPosition(position: IPosition): IWordAtPosition; From 47ab09936cbeea5f452243f12f850f44c801f145 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 27 Aug 2018 09:47:42 +0200 Subject: [PATCH 2/2] Remove empty line in uri jsdoc --- src/vs/base/common/uri.ts | 1 - src/vs/monaco.d.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/vs/base/common/uri.ts b/src/vs/base/common/uri.ts index eec9ccb001a06..971bd2f13b00f 100644 --- a/src/vs/base/common/uri.ts +++ b/src/vs/base/common/uri.ts @@ -275,7 +275,6 @@ export default class URI implements UriComponents { good.scheme === 'file'; good.path === '/coding/c#/project1'; good.fragment === ''; - const bad = URI.parse('file://' + '/coding/c#/project1'); bad.scheme === 'file'; bad.path === '/coding/c'; // path is now broken diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index 5db15b7f9a543..a7154a7bd8566 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -181,7 +181,6 @@ declare namespace monaco { good.scheme === 'file'; good.path === '/coding/c#/project1'; good.fragment === ''; - const bad = Uri.parse('file://' + '/coding/c#/project1'); bad.scheme === 'file'; bad.path === '/coding/c'; // path is now broken