Skip to content

Commit

Permalink
Merge branch 'release/v1.24.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Jan 14, 2021
2 parents 62dea90 + 2ef85c2 commit df297fe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.24.2

* Добавлена передача кода диагностики для оскрипт-линтера
* Указание диапазона для найденного метода в запросе перехода к определению

## 1.24.1

* Исправления сборки
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Language 1C (BSL)",
"description": "Syntax highlighting for 1C:Enterprise 8.",
"icon": "images/1c-syntax.png",
"version": "1.24.1",
"version": "1.24.2",
"publisher": "1c-syntax",
"galleryBanner": {
"color": "#0000FF",
Expand Down
4 changes: 3 additions & 1 deletion src/features/definitionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ export default class GlobalDefinitionProvider extends AbstractProvider
// continue;
// }
added[element.name] = true;
const start = new vscode.Position(element.line, (element.isproc ? 9 : 7) + 1);
const end = new vscode.Position(start.line, start.character + element.name.length);
const location = new vscode.Location(
element.filename ? vscode.Uri.file(element.filename) : document.uri,
new vscode.Position(element.line, (element.isproc ? 9 : 7) + 1)
new vscode.Range(start, end)
);
result.push(location);
}
Expand Down
1 change: 1 addition & 0 deletions src/features/lintProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export default class LintProvider {
errorMessage,
vscode.DiagnosticSeverity.Error
);
vscodeDiagnostic.code = "oscript-check";
if (!errorFiles[fileName]) {
errorFiles[fileName] = new Array<vscode.Diagnostic>();
}
Expand Down

0 comments on commit df297fe

Please sign in to comment.