Jean Pierre
44e644467d
Enable go to definition for markdown links ( #148017 )
...
* Enable go to definition for markdown links
* Add markdown definitionProvider tests
2022-05-02 10:07:40 -07:00
Matt Bierner
8449a9f5cb
Fix md rename when file does not exist
...
Fixes #148147
- Don't try renaming non-existent files
- Also fixes a bug where renaming in untitled files would insert `untitled:`
2022-04-30 19:52:44 -04:00
Matt Bierner
3e182633c7
Adding some more tests for markdown references
2022-04-30 19:14:03 -04:00
Matt Bierner
c41728c479
Fixes #147896 ( #148101 )
...
* Fixes #147896
* Replace all
* Fix windows slash check
* Skip test on windows for now
2022-04-26 15:45:15 -04:00
Benjamin Pasero
72b4be55fa
skip markdown rename tests ( #147896 )
2022-04-22 08:07:49 +02:00
Matt Bierner
59b6227bf3
Use un-encoded file paths are rename placeholder
2022-04-21 22:23:53 -04:00
Matt Bierner
7b1168660a
Fix resolving of links on rename
...
We should resolve relative to the file the rename is triggered in
2022-04-21 22:23:53 -04:00
Matt Bierner
b438e8438d
Fixing rename to use correct file paths relative to containing files
2022-04-21 22:23:52 -04:00
Matt Bierner
0610f195fb
Try automatically adding .md file extension to new paths on rename
2022-04-21 22:23:51 -04:00
Matt Bierner
0ac39e800d
Add support for renaming files in markdown using F2
...
This lets you trigger F2 on a file path in a markdown link to both rename the file and also update all references to it
2022-04-21 22:23:51 -04:00
Matt Bierner
9fbd962973
Differentiate md refs request on file path vs on fragment
2022-04-21 22:23:50 -04:00
Akat
b499467f9f
fix(markdown): avoid considering link references/sources in code sections ( #146826 )
2022-04-07 14:50:37 -07:00
Matt Bierner
b4b7380576
Fix md references not checking authority
...
Simply compare by string for now
2022-04-05 15:31:43 -07:00
Matt Bierner
a56c9f10b7
Enable find all references and rename of auto links and http(s) links in markdown
...
For #146777 , #146277
2022-04-05 15:18:18 -07:00
Matt Bierner
0496c2b3a7
Add basic file references provider for markdown
...
Fixes #146267
2022-04-05 11:56:40 -07:00
Matt Bierner
d0767451a9
Adding test for renaming the definition itself
2022-04-04 15:56:29 -07:00
Matt Bierner
baa7434480
Use header text as placeholder for md rename
...
For #146291
2022-04-04 15:56:28 -07:00
Matt Bierner
ca267e3f5e
Error on rename in bare file links in definition
2022-04-01 11:15:24 -07:00
Matt Bierner
114b340f7a
Fix explicit references to own file
2022-04-01 11:15:24 -07:00
Matt Bierner
8b7086afdb
Fixing false positive ref link being detected
2022-03-31 19:09:14 -07:00
Matt Bierner
c39d09a4c0
Working on initial support for renaming refs in md
...
For #146291
2022-03-31 18:28:23 -07:00
Matt Bierner
6b573340bd
Fixing references on header when looking at file extensions
2022-03-31 15:31:41 -07:00
Matt Bierner
57dffde3d4
Trying to clean up md link structure by moving defintion up a level
2022-03-31 15:11:35 -07:00
Matt Bierner
0e65adbda8
Initial work on rename in markdown
...
For #146291
Also fixes references triggered on a definition link
2022-03-31 15:11:34 -07:00
Matt Bierner
e32a13be77
Fix references to header to return just the span of the header itself and not its body
2022-03-31 11:56:37 -07:00
Matt Bierner
2510e3dca6
Refactoring md refs provider to prep for re-use
2022-03-30 16:33:32 -07:00
Matt Bierner
8a4f35d96a
Better comment
2022-03-30 15:49:56 -07:00
Matt Bierner
6c7ba2de69
Fix refs to own file being included in md ref results from other file
...
For #146277
2022-03-30 15:22:15 -07:00
Matt Bierner
982a353285
workspaceFile -> workspacePath
2022-03-30 15:14:34 -07:00
Matt Bierner
f3cb3510b8
Use joinLines helper
2022-03-30 15:14:34 -07:00
Matt Bierner
bea2ce0111
Add assertReferencesEqual helper
2022-03-30 15:14:33 -07:00
Matt Bierner
f68db8f6ba
Compare normalized fragments for md references
...
For #146277
2022-03-30 15:14:33 -07:00
Matt Bierner
767178d1b9
Remove duplicate function
2022-03-30 15:14:33 -07:00
Matt Bierner
17783a09e5
Add support for reference to ref links in md
...
For #146277
2022-03-30 14:36:03 -07:00
Matt Bierner
2754cef4a7
Fix finding references from link without header ref
2022-03-30 11:38:50 -07:00
Matt Bierner
ebd490f28e
Improve markdown references
...
For #146277
- Find all references on links
- Better support for links without a file extension
2022-03-30 11:38:50 -07:00
Matt Bierner
d06c17bd1b
Respect includeDeclaration for markdown references
2022-03-29 18:28:28 -07:00
Matt Bierner
8adb42079b
Fix slow positionAt impl for markdown references
...
- Use `vscode-languageserver-textdocument` instead of custom impl
- Reuse `InMemoryDocument` across tests and working code
- Use `SkinnyTextDocument` in more places
- Fixes some test errors that seem to be caused by bad `InMemoryDocument` impl
2022-03-29 18:19:52 -07:00
Matt Bierner
338ae07ccb
Initial work on md references provider
...
#146277
2022-03-29 18:19:52 -07:00
Matt Bierner
407b66a6d4
Remove extra await
2022-03-29 18:19:51 -07:00
Matt Bierner
0c3a241171
💄
2022-03-29 18:19:50 -07:00
Matt Bierner
3ce5c78cb9
Extract workspaceContents to own file
2022-03-29 18:19:49 -07:00
Matt Bierner
2783263582
Clean up link provider
2022-03-29 18:19:47 -07:00
Matt Bierner
22fb4e9de8
Better align language provider names and export styles
...
- Use named exports
- use `Md*` for providers
2022-03-29 13:35:48 -07:00
Matt Bierner
4949f13d13
Organize imports
2022-03-29 13:25:40 -07:00
Matt Bierner
7736c87cb0
Move markdown preview files to own folder
2022-03-29 13:25:35 -07:00
Matt Bierner
82c70007a3
Make sure we decode path components for md path completions
...
Fixes #145447
2022-03-22 16:58:37 -07:00
Matt Bierner
d2db6fb2d0
Remove negative lookbehind in regexp
...
Fixes #145655
2022-03-22 14:34:46 -07:00
Johannes
0f648cd7db
add eslint rule to disallow look behind regex feature, ignore in git and markdown fyi @lszomoru, @mjbvz
2022-03-22 16:02:19 +01:00
BamBamboozled
b6f6a37cbd
Add support for references when no [] exists ( #144781 )
...
* add single reference linking regex
* add less invasive regex
* add lookahead to exclude [tag]: <url> case
* add tests for references when no [] exists
* revert integration test script
* make test description clearer
* remove vim swap file (whoops)
Co-authored-by: Jayce <grate.resales.0r@icloud.com >
Co-authored-by: Jefferson Chen <jc@Jeffersons-MBP.attlocal.net >
2022-03-17 12:55:31 -07:00