We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a file that triggers the error. Say "take every funk" when cursor is in private function at the bottom
import * as vscode from "vscode"; import { join } from "path"; import { COLORS } from "./constants"; import { SymbolColor } from "./constants"; export type DecorationMap = { [k in SymbolColor]?: vscode.TextEditorDecorationType; }; export interface NamedDecoration { name: SymbolColor; decoration: vscode.TextEditorDecorationType; } export default class Decorations { decorations: NamedDecoration[]; decorationMap: DecorationMap; constructor() { const iconWidth = "1rem"; const iconPath = join(__dirname, "..", "images", "hat.svg"); this.decorations = COLORS.map((color) => ({ name: color, decoration: vscode.window.createTextEditorDecorationType({ // borderStyle: "solid", // borderColor: new vscode.ThemeColor(`cursorless.${color}Border`), // borderWidth: "2px 0px 0px 0px", // borderRadius: "4px", // backgroundColor: new vscode.ThemeColor(`cursorless.${color}Background`), rangeBehavior: vscode.DecorationRangeBehavior.ClosedClosed, after: { margin: `-1rem 0 0 -${iconWidth}`, width: iconWidth, height: iconWidth, color: new vscode.ThemeColor(`cursorless.${color}Border`), contentIconPath: iconPath, }, }), })); this.decorationMap = Object.fromEntries( this.decorations.map(({ name, decoration }) => [name, decoration]) ); } private constructWrapperSvg() { const svg = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M19 13H5v-2h14v2z"/></svg>`; return vscode.Uri.parse(`data:image/svg+xml;utf8,${svg}`); } }
The text was updated successfully, but these errors were encountered:
Not sure if related but the following doesn't work:
class TestCase { talonCommand!: string; extractPrimitiveTargetKeys() {} }
If you say "take funk" with your cursor in extractPrimitiveTargetKeys, you get an error Cannot read property 'type' of null.
extractPrimitiveTargetKeys
Cannot read property 'type' of null
Strangely the following works so maybe it's just a tree-sitter error
class TestCase { talonCommand: string = ""; extractPrimitiveTargetKeys() {} }
Sorry, something went wrong.
All of these things now work for me, so they were probably fixed when @AndreasArvidsson was hacking on our typescript pattern matchers 👍👍
No branches or pull requests
Here's a file that triggers the error. Say "take every funk" when cursor is in private function at the bottom
The text was updated successfully, but these errors were encountered: