Skip to content

Commit 8310c71

Browse files
committed
removed/commented-out console.log lines
1 parent ab39ed4 commit 8310c71

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/extension.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ export function activate(context: vscode.ExtensionContext) {
7878
}
7979
customTaskProvider = vscode.tasks.registerTaskProvider(SaxonTaskProvider.SaxonBuildScriptType, new SaxonTaskProvider(workspaceRoot));
8080

81-
context.subscriptions.push(vscode.workspace.onDidOpenTextDocument(e => {
82-
console.log('onDidOpenTextDocument: ' + e.fileName);
81+
// context.subscriptions.push(vscode.workspace.onDidOpenTextDocument(e => {
82+
// console.log('onDidOpenTextDocument: ' + e.fileName);
8383

84-
}));
84+
// }));
8585
}
8686

8787
class XPathSemanticTokensProvider implements vscode.DocumentSemanticTokensProvider {
@@ -109,7 +109,7 @@ export class XsltSemanticTokensProvider implements vscode.DocumentSemanticTokens
109109
}
110110

111111
async provideDocumentSemanticTokens(document: vscode.TextDocument, token: vscode.CancellationToken): Promise<vscode.SemanticTokens> {
112-
console.log('provideDocumentSemanticTokens');
112+
// console.log('provideDocumentSemanticTokens');
113113
const allTokens = this.xslLexer.analyse(document.getText());
114114
const builder = new vscode.SemanticTokensBuilder();
115115
allTokens.forEach((token) => {
@@ -131,7 +131,7 @@ export class XsltSymbolProvider implements vscode.DocumentSymbolProvider {
131131
}
132132

133133
public async provideDocumentSymbols(document: vscode.TextDocument, token: vscode.CancellationToken): Promise<vscode.DocumentSymbol[] | undefined> {
134-
console.log('provideDocumentSymbols: ' + document.uri);
134+
// console.log('provideDocumentSymbols: ' + document.uri);
135135
const allTokens = this.xslLexer.analyse(document.getText());
136136
const globalInstructionData = this.xslLexer.globalInstructionData;
137137

src/xsltTokenDiagnostics.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ export class XsltTokenDiagnostics {
159159
if (instruction.type === GlobalInstructionType.Variable || instruction.type === GlobalInstructionType.Parameter) {
160160
globalVariableData.push({token: instruction.token, name: instruction.name })
161161
xsltVariableDeclarations.push(instruction.token);
162-
console.log('global-name: ' + instruction.name);
163162
}
164163
});
165164
let nameStartCharRgx = new RegExp(/[A-Z]|_|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]/);
@@ -270,7 +269,7 @@ export class XsltTokenDiagnostics {
270269
xsltVariableDeclarations.push(variableData.token);
271270
}
272271
if (startTagToken){
273-
// TODO: if a top-level element, use global variables instad of inScopeVariablesList;
272+
// if a top-level element, use global variables instad of inScopeVariablesList;
274273
elementStack.push({namespacePrefixes: inheritedPrefixesCopy, currentVariable: variableData, variables: newVariablesList,
275274
symbolName: tagElementName, symbolID: tagIdentifierName, identifierToken: startTagToken, childSymbols: []});
276275
}
@@ -704,10 +703,8 @@ export class XsltTokenDiagnostics {
704703
if (xpathVariableCurrentlyBeingDefined && i === decrementedLength) {
705704
// do nothing: we skip last item in list as it's currently being defined
706705
} else if (data.name === varName && globalVariableName !== data.name) {
707-
console.log('resolved: ' + varName + ' line: ' + data.token.line);
708706
resolved = true;
709707
data.token['referenced'] = true;
710-
console.log('confirmed: ' + data.token.referenced)
711708
break;
712709
}
713710
}
@@ -742,7 +739,6 @@ export class XsltTokenDiagnostics {
742739
private static getDiagnosticsFromUnusedVariableTokens(document: vscode.TextDocument, unusedVariableTokens: BaseToken[], unresolvedVariableTokens: BaseToken[], includeOrImport: boolean): vscode.Diagnostic[] {
743740
let result = [];
744741
for (let token of unusedVariableTokens) {
745-
console.log('testing ' + XsltTokenDiagnostics.getTextForToken(token.line, token, document) + ' ' + token.referenced)
746742
if (token.referenced === undefined) {
747743
result.push(this.createUnusedVarDiagnostic(token));
748744
}

0 commit comments

Comments
 (0)