Skip to content

Commit ed1f949

Browse files
authored
Fix signature runnable ID (#248)
1 parent f57e75c commit ed1f949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension/typescriptContext/serverPlugin/src/common/baseContextProviders.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ export class SignatureRunnable extends FunctionLikeContextRunnable {
149149
const sourceFile = declaration.getSourceFile();
150150
const start = ts.getLineAndCharacterOfPosition(sourceFile, startPos);
151151
const end = ts.getLineAndCharacterOfPosition(sourceFile, endPos);
152-
return `${SignatureRunnable.name}:${declaration.getSourceFile().fileName}:[${start.line},${start.character},${end.line},${end.character}]`;
152+
return `SignatureRunnable:${declaration.getSourceFile().fileName}:[${start.line},${start.character},${end.line},${end.character}]`;
153153
} else {
154154
const hash = session.host.createHash('md5'); // CodeQL [SM04514] The 'md5' algorithm is used to compute a shorter string to represent a symbol in a map. It has no security implications.
155155
const sourceFile = declaration.getSourceFile();
156156
hash.update(sourceFile.fileName);
157157
hash.update(`[${startPos},${endPos}]`);
158-
return `${SignatureRunnable.name}:${hash.digest('base64')}`;
158+
return `SignatureRunnable:${hash.digest('base64')}`;
159159
}
160160
}
161161
}

0 commit comments

Comments
 (0)