mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-27 07:10:30 -04:00
Merge VS Code 1.31.1 (#4283)
This commit is contained in:
@@ -270,8 +270,8 @@ class LinkDetector implements editorCommon.IEditorContribution {
|
||||
let newDecorations: IModelDeltaDecoration[] = [];
|
||||
if (links) {
|
||||
// Not sure why this is sometimes null
|
||||
for (let i = 0; i < links.length; i++) {
|
||||
newDecorations.push(LinkOccurrence.decoration(links[i], useMetaKey));
|
||||
for (const link of links) {
|
||||
newDecorations.push(LinkOccurrence.decoration(link, useMetaKey));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -361,8 +361,7 @@ class LinkDetector implements editorCommon.IEditorContribution {
|
||||
endColumn: position.column
|
||||
}, 0, true);
|
||||
|
||||
for (let i = 0; i < decorations.length; i++) {
|
||||
const decoration = decorations[i];
|
||||
for (const decoration of decorations) {
|
||||
const currentOccurrence = this.currentOccurrences[decoration.id];
|
||||
if (currentOccurrence) {
|
||||
return currentOccurrence;
|
||||
|
||||
Reference in New Issue
Block a user